Ebfm_barwr_imm procedure, Ebfm_barwr_imm procedure -23 – Altera Arria 10 Avalon-MM User Manual

Page 173

Advertising
background image

Location

altpcietb_bfm_rdwr.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.

lcladdr

BFM shared memory address of the data to be written.

byte_len

Length, in bytes, of the data written. Can be 1 to the minimum

of the bytes remaining in the BAR space or BFM shared

memory.

tclass

Traffic class used for the PCI Express transaction.

ebfm_barwr_imm Procedure

The

ebfm_barwr_imm

procedure writes up to four bytes of data to an offset from the specified Endpoint

BAR.

Location

altpcietb_bfm_driver_rp.v

Syntax

ebfm_barwr_imm(bar_table, bar_num, pcie_offset, imm_data, byte_len, tclass)

UG-01145_avmm

2015.05.14

ebfm_barwr_imm Procedure

14-23

Avalon-MM Testbench and Design Example

Altera Corporation

Send Feedback

Advertising