Ebfm_cfgrd_nowt procedure, Ebfm_cfgrd_nowt procedure -28 – Altera Arria 10 Avalon-MM User Manual

Page 178

Advertising
background image

Location

altpcietb_bfm_driver_rp.v

Arguments

bus_num

PCI Express bus number of the target device.

dev_num

PCI Express device number of the target device.

fnc_num

Function number in the target device to be accessed.

regb_ad

Byte-specific address of the register to be written.

regb_ln

Length, in bytes, of the data read. Maximum length is four

bytes. The

regb_ln

and the

regb_ad

arguments cannot cross a

DWORD boundary.

lcladdr

BFM shared memory address of where the read data should be

placed.

compl_status

Completion status for the configuration transaction.
This argument is reg [2:0].
In both languages, this is the completion status as specified in

the PCI Express specification. The following encodings are

defined.
• 3’b000: SC— Successful completion

• 3’b001: UR— Unsupported Request

• 3’b010: CRS — Configuration Request Retry Status

• 3’b100: CA — Completer Abort

ebfm_cfgrd_nowt Procedure

The

ebfm_cfgrd_nowt

procedure reads up to four bytes of data from the specified configuration register

and stores the data in the BFM shared memory. This procedure returns as soon as the VC interface

module has accepted the transaction, allowing other reads to be issued in the interim. Use this procedure

only when successful completion status is expected and a subsequent read or write with a wait can be used

to guarantee the completion of this operation.

Location

altpcietb_bfm_driver_rp.v

Syntax

ebfm_cfgrd_nowt(bus_num, dev_num, fnc_num, regb_ad, regb_ln, lcladdr)

14-28

ebfm_cfgrd_nowt Procedure

UG-01145_avmm

2015.05.14

Altera Corporation

Avalon-MM Testbench and Design Example

Send Feedback

Advertising