beautypg.com

Bfm configuration procedures, Ebfm_cfg_rp_ep procedure – Altera Arria V Avalon-ST User Manual

Page 208

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)

16-38

BFM Configuration Procedures

2014.12.15

Altera Corporation

Testbench and Design Example

Send Feedback

This manual is related to the following products: