Ebfm_cfgrd_wait procedure, Ebfm_cfgrd_wait procedure -27 – Altera Arria 10 Avalon-MM User Manual

Page 177

Advertising
background image

Location

altpcietb_bfm_driver_rp.v

Syntax

ebfm_cfgwr_imm_nowt(bus_num, dev_num, fnc_num, imm_regb_adr, regb_len, imm_

data)

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 written. Maximum length is four

bytes, The

regb_ln

the

regb_ad

arguments cannot cross a

DWORD boundary.

imm_data

Data to be written
This argument is

reg [31:0]

.

In both languages, the bits written depend on the length. The

following encodes are defined.
• 4: [31:0]

• 3: [23:0]

• 2: [15:0]

• 1: [7:0]

ebfm_cfgrd_wait Procedure

The

ebfm_cfgrd_wait

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

and stores the data in BFM shared memory. This procedure waits until the read completion has been

returned.

Location

altpcietb_bfm_driver_rp.v

Syntax

ebfm_cfgrd_wait(bus_num, dev_num, fnc_num, regb_ad, regb_ln, lcladdr,

compl_status)

UG-01145_avmm

2015.05.14

ebfm_cfgrd_wait Procedure

14-27

Avalon-MM Testbench and Design Example

Altera Corporation

Send Feedback

Advertising