Find_mem_bar procedure – Altera Arria 10 Avalon-MM User Manual

Page 197

Advertising
background image

Location

altpcietb_bfm_driver_rp.v

Arguments

bar_table

Address of the Endpoint

bar_table

structure in BFM shared

memory.

bar_num

BAR number to analyze.

Bus_num

Set configuration bus number.

dev_num

Set configuration device number.

Fun_num

Set configuration function number.

Direction

When 0 the direction is read.
When 1 the direction is write.

msi_address

Specifies the location in shared memory where the MSI

message data will be stored.

msi_data

The 16-bit message data that will be stored when an MSI

message is sent. The lower bits of the message data will be

modified with the message number as per the PCI specifica‐

tions.

Msi_number

Returns the MSI number to be used for these interrupts.

Msi_traffic_class

Returns the MSI traffic class value.

Multi_message_enable

Returns the MSI multi message enable status.

msi_expected

Returns the expected MSI data value, which is

msi_data

modified by the

msi_number

chosen.

find_mem_bar Procedure

The

find_mem_bar

procedure locates a BAR which satisfies a given memory space requirement.

Location

altpcietb_bfm_driver_rp.v

Syntax

Find_mem_bar(bar_table,allowed_bars,min_log2_size, sel_bar)

UG-01145_avmm

2015.05.14

find_mem_bar Procedure

14-47

Avalon-MM Testbench and Design Example

Altera Corporation

Send Feedback

Advertising