Avalon-mm testbench and design example, Avalon-mm testbench and design example -1 – Altera Arria 10 Avalon-MM User Manual

Page 151

Advertising
background image

Avalon-MM Testbench and Design Example

14

2015.05.14

UG-01145_avmm

Subscribe

Send Feedback

This chapter introduces the Root Port or Endpoint design example including a testbench, BFM, and a test

driver module. You can create this design example for using design flows described in Getting Started with

the Arria 10 Hard IP for PCI Express .
When configured as an Endpoint variation, the testbench instantiates a design example and a Root Port

BFM, which provides the following functions:
• A configuration routine that sets up all the basic configuration registers in the Endpoint. This configu‐

ration allows the Endpoint application to be the target and initiator of PCI Express transactions.

• A Verilog HDL procedure interface to initiate PCI Express transactions to the Endpoint.
The testbench uses a test driver module, altera_avalon_dma to exercise the DMA of the design example.

The test driver module displays information from the Endpoint Configuration Space registers, so that you

can correlate to the parameters you specified using the parameter editor.
When configured as a Root Port, the testbench instantiates a Root Port design example and an Endpoint

model, which provides the following functions:
• A configuration routine that sets up all the basic configuration registers in the Root Port and the

Endpoint BFM. This configuration allows the Endpoint application to be the target and initiator of

PCI Express transactions.

• A Verilog HDL procedure interface to initiate PCI Express transactions to the Endpoint BFM.
The testbench uses a test driver module, altpcietb_bfm_driver_avmm, to exercise the target memory and

DMA channel in the Endpoint BFM. The test driver module displays information from the Root Port

Configuration Space registers, so that you can correlate to the parameters you specified using the

parameter editor. The Endpoint model consists of an Endpoint variation combined with the DMA

application described above.
Note: The Altera testbench and Root Port or Endpoint BFM provide a simple method to do basic testing

of the Application Layer logic that interfaces to the variation. However, the testbench and Root

Port BFM are not intended to be a substitute for a full verification environment. To thoroughly test

your application, Altera suggests that you obtain commercially available PCI Express verification

IP and tools, or do your own extensive hardware testing or both.

©

2015 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.

ISO

9001:2008

Registered

www.altera.com

101 Innovation Drive, San Jose, CA 95134

Advertising