
External Memory BFM API
fill()
fill()Prototype:
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)
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
Arguments:
voidReturns:
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
Description:
Verilog HDL, VHDLLanguage support:
read()
read()Prototype:
Verilog HDL: bit[CDT_ADDRESS_W-1:0] address
VHDL: data, bit[CDT_ADDRESS_W-1:0] address, bfm_id, req_if(bfm_id)
Arguments:
logic[DATA_W-1:0]Returns:
Retrieves the memory content from an address you specify.Description:
Verilog HDL, VHDLLanguage support:
Altera Corporation
External Memory BFM
Send Feedback
13-5
External Memory BFM API
Komentáře k této Příručce