Xilinx UG181 Welder User Manual


 
SPI-4.2 Lite v4.3 User Guide www.xilinx.com 125
UG181 June 27, 2008
R
Chapter 7
Simulating and Implementing the Core
The SPI-4.2 Lite core is provided as a Xilinx technology-specific netlist and simulation
model. The following sections describe how to simulate and implement the SPI-4.2 Lite
core in a user design.
Functional Simulation
Functional simulation of the SPI-4.2 Lite core is performed with the provided simulation
models (UniSim models). The simulation models provide cycle-accurate simulations for
use in the verification of the user's application. The SPI-4.2 Lite core has been verified with
the Mentor Graphics® ModelSim® PE/SE/EE simulator. While other simulation tools can
be used to simulate the core, they have not been tested and functionality cannot be
guaranteed. Before attempting functional simulation, perform the following steps to
ensure that the simulator environment is properly configured:
1. Compile the Xilinx UniSim libraries (if not already compiled). For details, see Xilinx
Answer Record 15338.
2. Compile the simulation model, user application, and user test environment. An
example functional simulation script is provided with the example design, which
compiles the example design and demonstration test bench. You may use this script as
an example for creating their test environment. For details about the functional
simulation script, see the SPI-4.2 Lite Getting Started Guide.
Generating a Simulation Model
The functional simulation model generated by the SPI-4.2 Lite core is created using the
NETGEN tool. Following is the NETGEN command that is used to generate simulation
model for the Sink core:
netgen -sim -ofmt <vhdl|verilog> <component_name>_pl4_lite_snk_top.ngc
<component_name>_pl4_snk_top.vhd
Generating a Simulation Model with Initialized Calendar
You can program the Sink and Source status calendars in the following ways:
Using the CORE Generator GUI, initialize the content of the calendar block RAM.
Using the appropriate calendar programming signals during system operation.
If you choose to program the calendar during system operation, use the provided function
simulation models to verify you design. However, if you choose to initialize the calendar
by defining the initial content of the calendar BRAM, you must generate the functional
simulation models using the steps provided in this section.