22 www.xilinx.com SPI-4.2 v8.5 Getting Started Guide
UG154 March 24, 2008
Chapter 3: Quick Start Example Design
R
To run a VHDL or Verilog functional simulation of the example design using NCSIM:
1. Set the current directory to:
<quickstart>
/simulation/functional/
2. Execute the simulation script:
% simulate_ncsim.sh
ms-dos> simulate_ncsim.bat
To run a Verilog functional simulation of the example design using VCS:
1. Set the current directory to:
<quickstart>
/simulation/functional/
2. Execute the simulation script:
% simulate vcs.sh
The simulation script compiles the functional simulation models, the loopback and the
demonstration test bench, adds relevant signals to the wave window, and runs the
simulation. To observe the operation of the core, inspect the simulation transcript and the
waveform.
Timing Simulation
Timing simulation is available only with purchase of the core (Full license) or with access
to the Full System Hardware Evaluation license. With a Simulation Only Evaluation
license the core cannot be run through the implementation tools, which is required for
timing based simulation.
Instructions for running a timing simulation of the SPI-4.2 core using either VHDL or
Verilog are given below. A timing simulation model is generated when the core is run
through the Xilinx tools using the implement script. Calendar information specified in a
COE file is included in the timing simulation netlist.
To run a VHDL or Verilog l simulation of the example design using MTI:
1. Set the current directory to:
<quickstart>
/simulation/timing/
2. Launch the ModelSim simulator.
3. Launch the simulation script:
modelsim> do simulate_mti.do
To run a VHDL or Verilog simulation of the example design using NCSIM:
1. Set the current directory to:
<quickstart>/simulation/timing/
2. Execute the simulation script:
ms-dos> simulate_ncsim.bat
% simulate_ncsim.sh
To run a Verilog simulation of the example design using VCS:
1. Set the current directory to:
<quickstart>
/simulation/timing/
2. Execute the simulation script:
% simulate_vcs.sh