beautypg.com

Verifying a master dut, Slave bfm test program, Basic slave test program api definition – Altera Mentor Verification IP Altera Edition AMBA AXI4-Stream User Manual

Page 185

background image

VHDL Tutorials

Verifying a Master DUT

Mentor Verification IP AE AMBA AXI4-Stream User Guide, V10.3

185

April 2014

Verifying a Master DUT

A master DUT component is connected to a slave BFM at the signal-level. A slave test program,
written at the transaction-level, generates stimulus using the slave BFM to verify the master
DUT.

Figure 11-2

illustrates a typical top-level test bench environment.

Figure 11-2. Master DUT Top-Level Test Bench Environment

A top-level file instantiates and connects all the components required to test and monitor the
DUT, and controls the system clock (ACLK) and reset (ARESETn) signals.

Slave BFM Test Program

The slave test program contains a

Basic Slave Test Program API Definition

that implements a

simplified interface for you to start verifying a master DUT with minimal effort. The API
allows the slave BFM to control back-pressure to the master DUT by configuring the delay for
the assertion of the TREADY signal. No other slave test program editing is required in this case.

The

Advanced Slave Test Program API Definition

allows the slave BFM to receive protocol

transfers and insert a delay for the assertion of the TREADY signal. No further analysis of the
protocol transfer content is performed. If analysis is required, you need to edit the slave test
program to add this feature.

For a complete code listing of the slave test program, refer to “

VHDL Slave BFM Code

Example

” on page 216.

Basic Slave Test Program API Definition

The Basic Slave Test Program API contains the following:

Slave
BFM

Master
DUT

Slave test program

Top-level file