User guide

Table Of Contents
Chapter 2: Getting Started with the Cyclone V Hard IP for PCI Express 2–11
Qsys Design Flow
December 2013 Altera Corporation Cyclone V Hard IP for PCI Express
User Guide
Understanding the Files Generated
Table 210 provides an overview of the files and directories Qsys generates.
Simulating the Example Design
Follow these steps to compile the testbench for simulation and run the chaining DMA
testbench.
1. Start your simulation tool. This example uses the ModelSim
®
software.
2. From the ModelSim transcript window, in the testbench directory
(./example_design/altera_pcie_<device>_hip_ast/<variant>/testbench/mentor)
type the following commands:
a.
do msim_setup.tcl
r
b. h r (This is the ModelSim help command.)
c. ld_debug r (This command compiles all design files and elaborates the
top-level design without any optimization.)
d. run -all r
Example 2–1 shows a partial transcript from a successful simulation. As this transcript
illustrates, the simulation includes the following stages:
Link training
Configuration
DMA reads and writes
Table 2–10. Qsys Generation Output Files
Directory Description
<testbench_dir>/<variant_name>/
synthesis
includes the top-level HDL file for the Hard I for PCI Express and the .qip file that
lists all of the necessary assignments and information required to process the IP
core in the Quartus II compiler. Generally, a single .qip file is generated for each IP
core.
<testbench_dir>/<variant_name>/
synthesis/submodules
Includes the HDL files necessary for Quartus II synthesis.
<testbench_dir>/<variant_name>/
testbench/
Includes testbench subdirectories for the Aldec, Cadence and Mentor simulation
tools with the required libraries and simulation scripts.
<testbench_dir>/<variant_name>/
testbench/<cad_vendor>
Includes the HDL source files and scripts for the simulation testbench.