Avalon-mm slave bfm, Chapter 3. avalon-mm slave bfm, Chapter 3, avalon-mm slave bfm – Altera Avalon Verification IP Suite User Manual
Page 44

May 2011
Altera Corporation
Avalon Verification IP Suite User Guide
3. Avalon-MM Slave BFM
The Avalon-MM Slave BFM implements the slave side of the Avalon-MM interface
protocol. This is a standard memory-mapped protocol including reads and writes
typical of simple peripherals and the reads, writes, burst reads, and burst writes for
typical memory devices. This BFM also includes a procedural interface to monitor
incoming commands, pass these to the test program, accept response transactions
from the test program, and drive responses.
shows the top-level modules for a testbench that uses the Avalon-MM
Slave BFM to verify an Avalon-MM Master device. In addition to the Altera-provided
Avalon-MM Slave BFM, the example testbench shown in
includes a test
program and the DUT. The test program, written in HDL, programs the Avalon-MM
master to issue Avalon-MM transactions, programs the Avalon-MM Slave BFM to
respond, and analyzes the results.
1
The BFMs allow illegal response transactions so that you can test the error-handling
functionality of your DUT; consequently, the BFMs cannot be relied upon to guarantee
protocol compliance. The Avalon Monitors components verify protocol compliance.
f
For more information about the Avalon-MM specification supported in SOPC Builder,
refer to the
.
f
For more information about the Avalon-MM specification supported in Qsys, refer to
the
Figure 3–1. Top-Level Module to Verify an Avalon-MM Master
Testbench
HDL
HDL
Avalon-MM
read or write
response or
waitrequest
Test Program
Avalon-MM
Slave BFM
DUT
Avalon-MM
Master