
shmem_display Verilog HDL Function
The shmem_display Verilog HDL function displays a block of data from the BFM shared memory.
Location altpcietb_bfm_driver_rp.v
Syntax Verilog HDL: dummy_return:=shmem_display(addr, leng, word_size, flag_addr,
msg_type);
Arguments
addr
BFM shared memory starting address for displaying data.
leng
Length, in bytes, of data to display.
word_size
Size of the words to display. Groups individual bytes into
words. Valid values are 1, 2, 4, and 8.
flag_addr
Adds a <== flag to the end of the display line containing this
address. Useful for marking specific data. Set to a value greater
than 2**21 (size of BFM shared memory) to suppress the flag.
msg_type
Specifies the message type to be displayed at the beginning of
each line. See “BFM Log and Message Procedures” on page 18–
37 for more information about message types. Set to one of the
constants defined in Table 18–36 on page 18–41.
shmem_fill Procedure
The shmem_fill procedure fills a block of BFM shared memory with a specified data pattern.
Location altpcietb_bfm_driver_rp.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.
UG-01145_avmm
2015.05.14
shmem_display Verilog HDL Function
14-33
Avalon-MM Testbench and Design Example
Altera Corporation
Send Feedback
Kommentare zu diesen Handbüchern