Ebfm_barrd_wait procedure, Ebfm_barrd_nowt procedure – Altera Arria V Hard IP for PCI Express User Manual

Page 252

Advertising
background image

17–30

Chapter 17: Testbench and Design Example

BFM Procedures and Functions

Arria V Hard IP for PCI Express

December 2013

Altera Corporation

User Guide

ebfm_barrd_wait Procedure

The

ebfm_barrd_wait

procedure reads a block of data from the offset of the specified

Endpoint BAR and stores it in BFM shared memory. The length can be longer than the
configured maximum read request size; the procedure breaks the request up into
multiple transactions as needed. This procedure waits until all of the completion data
is returned and places it in shared memory.

ebfm_barrd_nowt Procedure

The

ebfm_barrd_nowt

procedure reads a block of data from the offset of the specified

Endpoint BAR and stores the data in BFM shared memory. The length can be longer
than the configured maximum read request size; the procedure breaks the request up
into multiple transactions as needed. This routine returns as soon as the last read
transaction has been accepted by the VC interface module, allowing subsequent reads
to be issued immediately.

Table 17–22. ebfm_barrd_wait Procedure

Location

altpcietb_bfm_driver_rp.v

Syntax

ebfm_barrd_wait(bar_table, bar_num, pcie_offset, lcladdr, byte_len, tclass)

Arguments

bar_table

Address of the Endpoint

bar_table

structure in BFM shared memory. The

bar_table structure stores the address assigned to each BAR so that the driver code
does not need to be aware of the actual assigned addresses only the Application
Layer specific offsets from the BAR.

bar_num

Number of the BAR used with

pcie_offset

to determine PCI Express address.

pcie_offset

Address offset from the BAR base.

lcladdr

BFM shared memory address where the read data is stored.

byte_len

Length, in bytes, of the data to be read. Can be 1 to the minimum of the bytes
remaining in the BAR space or BFM shared memory.

tclass

Traffic class used for the PCI Express transaction.

Table 17–23. ebfm_barrd_nowt Procedure

Location

altpcietb_bfm_driver_rp.v

Syntax

ebfm_barrd_nowt(bar_table, bar_num, pcie_offset, lcladdr, byte_len, tclass)

Arguments

bar_table

Address of the Endpoint

bar_table

structure in BFM shared memory.

bar_num

Number of the BAR used with

pcie_offset

to determine PCI Express address.

pcie_offset

Address offset from the BAR base.

lcladdr

BFM shared memory address where the read data is stored.

byte_len

Length, in bytes, of the data to be read. Can be 1 to the minimum of the bytes
remaining in the BAR space or BFM shared memory.

tclass

Traffic Class to be used for the PCI Express transaction.

Advertising