Ebfm_barrd_wait procedure, Ebfm_barrd_wait procedure -24 – Altera Arria 10 Avalon-MM User Manual

Page 174

Advertising
background image

Location

altpcietb_bfm_driver_rp.v

Arguments

bar_table

Address of the Endpoint

bar_table

structure in BFM shared

memory. The

bar_table

structure stores the address assigned

to each BAR so that the driver code does not need to be aware

of the actual assigned addresses only the application specific

offsets from the BAR.

bar_num

Number of the BAR used with

pcie_offset

to determine PCI

Express address.

pcie_offset

Address offset from the BAR base.

imm_data

Data to be written. In Verilog HDL, this argument is

reg

[31:0]

.In both languages, the bits written depend on the

length as follows:
Length Bits Written
• 4: 31 downto 0

• 3: 23 downto 0

• 2: 15 downto 0

• 1: 7 downto 0

byte_len

Length of the data to be written in bytes. Maximum length is 4

bytes.

tclass

Traffic class to be used for the PCI Express transaction.

ebfm_barrd_wait Procedure

The

ebfm_barrd_wait

procedure reads a block of data from the offset of the specified Endpoint BAR and

stores it in BFM shared memory. The length can be longer than the configured maximum read request

size; the procedure breaks the request up into multiple transactions as needed. This procedure waits until

all of the completion data is returned and places it in shared memory.

Location

altpcietb_bfm_driver_rp.v

Syntax

ebfm_barrd_wait(bar_table, bar_num, pcie_offset, lcladdr, byte_len, tclass)

14-24

ebfm_barrd_wait Procedure

UG-01145_avmm

2015.05.14

Altera Corporation

Avalon-MM Testbench and Design Example

Send Feedback

Advertising