Avalon-mm verilog hdl and vhdl testbenches, Avalon-mm verilog hdl testbench description, Avalon-mm verilog hdl and vhdl testbenches -1 – Altera Avalon Verification IP Suite User Manual
Page 211: Avalon-mm verilog hdl testbench description -1

17
Avalon-MM Verilog HDL and VHDL Testbenches
Send Feedback
Altera provides the Avalon-MM example testbench for both Verilog HDL and VHDL.
There are two versions of the Avalon-MM testbench. The first version tests a single Avalon-MM Master and
Slave pair. The second version includes two Avalon-MM Masters. Each Avalon-MM Master connects to
two Avalon-MM Slaves.
All of the testbench examples are included in
ug_avalon_verification.zip
. This file is available on the Altera
website as
.
Avalon-MM Verilog HDL Testbench Description
At the top-level, the Verilog HDL version of the Avalon-MM testbench includes two modules:
• The System Under Test- This module includes the Avalon-MM Master and Slaves components, the
Avalon-MM Master and Slave BFMs, and the Interconnect.
• The Test Program- The module includes Master Command, Master Response, and Slave Threads.
Figure 17-1: Verilog HDL Testbench for Two Avalon-MM Masters and Slaves
Interconnect
Avalon-MM
Master BFM
Avalon-MM
Master BFM
Avalon-MM
Slave BFM
Avalon-MM
Slave BFM
System Under Test
Master
Command
Thread
Test Program
Master
Response
Thread
Slave
Thread
The Master Command Thread performs the following functions:
• Generates random commands
• Passes the commands to Avalon-MM Master BFM
• Saves the commands in a FIFO for command and response verification
©
2014 Altera Corporation. All rights reserved. ALTERA, ARRIA, CYCLONE, ENPIRION, MAX, MEGACORE, NIOS, QUARTUS and STRATIX words
and logos are trademarks of Altera Corporation and registered in the U.S. Patent and Trademark Office and in other countries. All other
words and logos identified as trademarks or service marks are the property of their respective holders as described at
www.altera.com/common/legal.html
. Altera warrants performance of its semiconductor products to current specifications in accordance with
Altera's standard warranty, but reserves the right to make changes to any products and services at any time without notice. Altera assumes
no responsibility or liability arising out of the application or use of any information, product, or service described herein except as expressly
agreed to in writing by Altera. Altera customers are advised to obtain the latest version of device specifications before relying on any published
information and before placing orders for products or services.
www.altera.com
101 Innovation Drive, San Jose, CA 95134