Simulate the design – Altera PCI Compiler User Manual

Page 245

Advertising
background image

Altera Corporation

User Guide Version 11.1

5–11

October 2011

PCI Compiler

Getting Started

Simulate the
Design

SOPC Builder automatically sets up the simulation environment for the
PCI Compiler.

SOPC Builder creates the pci_sim directory in your project directory and
copies the testbench files from
<path>/pci_compiler/testbench/sopc/<language>/<core> to the pci_sim
directory.

1

The testbench files must be edited to add the PCI transactions
that will be performed on the system. If you regenerate your
system, SOPC Builder will not overwrite the testbench files in
the pci_sim directory. If you want to use the default testbench
files, first delete the pci_sim directory and then regenerate your
system.

This section of the walkthrough uses the following components:

The system you created using SOPC Builder

Scripts created by SOPC Builder in the c:\sopc_pci\chip_top_sim
directory

The ModelSim software

1

You can also use any other supported third-party simulator.

The PCI testbench files located in the c:\sopc_pci\pci_sim directory

SOPC Builder creates IP functional simulation models for all the system
components. The IP functional simulation models are the .vo or .vho files
generated by SOPC Builder in your project directory.

f

For more information on IP functional simulation models, refer to the

Simulating Altera IP in Third-Party Simulation Tools

chapter in volume 3 of

the Quartus II Handbook.

The SOPC Builder-generated top-level file also integrates the simulation
modules of the system components and testbenches (if available),
including the PCI testbench. The Altera-provided PCI testbench can be
used to verify the basic functionality of your PCI compiler system. SOPC
Builder automatically configures the PCI testbench and copies the
necessary files to your project directory in the pci_sim directory. The
default configuration of the PCI testbench is predefined to run basic PCI
configuration transactions to the PCI device in your SOPC Builder
generated system. You can edit the PCI testbench mstr_tranx.v or
mstr_tranx.vhd

file to add more interesting PCI transactions.

Advertising