Bfm configuration procedures, Ebfm_cfg_rp_ep procedure, Bfm configuration procedures -29 – Altera Arria 10 Avalon-MM User Manual

Page 179

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

bytes. The

regb_ln

and

regb_ad

arguments cannot cross a

DWORD boundary.

lcladdr

BFM shared memory address where the read data should be

placed.

BFM Configuration Procedures

The BFM configuration procedures are available in altpcietb_bfm_driver_rp.v. These procedures

support configuration of the Root Port and Endpoint Configuration Space registers.
All Verilog HDL arguments are type

integer

and are input-only unless specified otherwise.

ebfm_cfg_rp_ep Procedure

The

ebfm_cfg_rp_ep

procedure configures the Root Port and Endpoint Configuration Space registers for

operation.

Location

altpcietb_bfm_driver_rp.v

Syntax

ebfm_cfg_rp_ep(bar_table, ep_bus_num, ep_dev_num, rp_max_rd_req_size,

display_ep_config, addr_map_4GB_limit)

UG-01145_avmm

2015.05.14

BFM Configuration Procedures

14-29

Avalon-MM Testbench and Design Example

Altera Corporation

Send Feedback

Advertising