Chapter 3: Getting Started with the Avalon-MM Arria V GZ Hard IP for PCI Express
3–13
Simulating the Example Design
November 2012
Altera Corporation
Arria V GZ Hard IP for PCI Express
User Guide
f
For more information about IP functional simulation models, refer to
in volume 3 of the
Quartus II Handbook
.
Complete the following steps to run the Qsys testbench:
1. In a terminal window, change to the
<project_dir>
/
ep_g1x4/testbench/mentor
directory.
2. Start the ModelSim simulator.
3. To run the simulation, type the following commands in a terminal window:
a.
do msim_setup.tcl
r
b. ld -debug
r
(The -debug argument stops optimizations, improving visibility
in the ModelSim waveforms.)
c. run 140000 ns
r
The driver performs the following transactions with status of the transactions
displayed in the ModelSim simulation message window:
■
Various configuration accesses to the Avalon-MM Arria V GZ Hard IP for PCI
Express in your system after the link is initialized
■
Setup of the Address Translation Table for requests that are coming from the DMA
component
■
Setup of the DMA controller to read 512 Bytes of data from the Transaction Layer
Direct BFM’s shared memory
■
Setup of the DMA controller to write the same data back to the Transaction Layer
Direct BFM’s shared memory
■
Data comparison and report of any mismatch