Dma_set_rclast procedure, Ebfm_display_verb procedure – Altera IP Compiler for PCI Express User Manual
Page 287

Chapter 15: Testbench and Design Example
15–55
BFM Procedures and Functions
August 2014
Altera Corporation
IP Compiler for PCI Express User Guide
dma_set_rclast Procedure
The dma_set_rclast procedure starts the DMA operation by writing to the endpoint
DMA register the value of the last descriptor to process (RCLast).
ebfm_display_verb Procedure
The ebfm_display_verb procedure calls the procedure ebfm_display when the global
variable DISPLAY_ALL is set to 1.
Arguments
bar_table
Address of the endpoint bar_table structure in BFM shared memory
allowed_bars
One hot 6 bits BAR selection
min_log2_size
Number of bit required for the specified address space
sel_bar
BAR number to use
Table 15–69.
find_mem_bar
Procedure
Table 15–70.
dma_set_rclast
Procedure
Location
altpcietb_bfm_driver_chaining.v
Syntax
Dma_set_rclast(bar_table, setup_bar, dt_direction, dt_rclast)
Arguments
bar_table
Address of the endpoint bar_table structure in BFM shared memory
setup_bar
BAR number to use
dt_direction
When 0 read, When 1 write
dt_rclast
Last descriptor number
Table 15–71.
ebfm_display_verb
Procedure
Location
altpcietb_bfm_driver_chaining.v
Syntax
ebfm_display_verb(msg_type, message)
Arguments
msg_type
Message type for the message. Should be one of the constants
message
In VHDL, this argument is VHDL type string and contains the message text to
be displayed. In Verilog HDL, the message string is limited to a maximum of 100
characters. Also, because Verilog HDL does not allow variable length strings, this
routine strips off leading characters of 8'h00 before displaying the message.