P-Tile Avalon® Streaming Intel® FPGA IP for PCI Express* User Guide

ID 683059
Date 4/10/2023

A newer version of this document is available. Customers should click here to go to the newest version.

Document Table of Contents shmem_fill Procedure

The shmem_fill procedure fills a block of BFM shared memory with a specified data pattern.



shmem_fill(addr, mode, leng, init)



BFM shared memory starting address for filling data.


Data pattern used for filling the data. Should be one of the constants defined in section Shared Memory Constants.


Length, in bytes, of data to fill. If the length is not a multiple of the incrementing data pattern width, then the last data pattern is truncated to fit.


Initial data value used for incrementing data pattern modes. This argument is reg [63:0].

The necessary least significant bits are used for the data patterns that are smaller than 64 bits.

Did you find the information on this page useful?

Characters remaining:

Feedback Message