R-tile Avalon® Streaming Intel® FPGA IP for PCI Express* Design Example User Guide

ID 683544
Date 6/20/2022
Public

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

Document Table of Contents

2.4.5.10.5. shmem_fill Procedure

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

Location

altrpcietb_g3bfm_shmem.v

Syntax

shmem_fill(addr, mode, leng, init)

Arguments

addr

BFM shared memory starting address for filling data.

mode

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

leng

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.

init

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.