Avalon Verification IP Suite: User Guide

ID 683439
Date 2/17/2022
Public
Document Table of Contents

15.3. External Memory BFM API

fill()

Prototype:

fill()

Arguments:

Verilog HDL:

logic[DATA_W-1:0] data

bit[DATA_W-1:0] increment

bit[CDT_ADDRESS_W-1:0] address low

bit[CDT_ADDRESS_W-1:0] address high

VHDL:

logic[DATA_W-1:0] data

bit[DATA_W-1:0] increment

bit[CDT_ADDRESS_W-1:0] address low

bit[CDT_ADDRESS_W-1:0] address high

bfm_id req_if(bfm_id)

Returns:

void

Description:

Overwrites the memory content at the starting address specified by address_low until the ending address specified by address_high. The data field indicates the data value. The increment field indicates the data value increment from one address to the next address. For example, fill (data[1], increment[2], address_low[10], address_high[12]) fills the memory as follows:
  • memory[address=10] is filled with data value 1
  • memory[address=11] is filled with data value 3
  • memory[address=12] is filled with data value 5
Language support: Verilog HDL, VHDL