User guide
System Generator for DSP User Guide www.xilinx.com 337
UG640 (v 12.2) July 23, 2010
HDL Co-Simulation
1. Change the Simulation Mode field from Inactive to External co-simulator.
2. Enter the name of the ModelSim block (e.g., ModelSim) in the HDL Co-Simulator to use
field.
The block parameter dialog for the ModelSim block includes some parameters that you
can use to control various options for the ModelSim session. See the Modelsim
block help
pages for details. The model is then ready to be simulated with these options, and the HDL
co-simulation takes place automatically.
Co-Simulating Multiple Black Boxes
System Generator allows many black boxes to share a common ModelSim co-simulation
session. I.e., many black boxes can be set to "use" the same ModelSim block. In this case,
System Generator automatically combines all black box HDL components into a single
shared top-level co-simulation component. This is transparent to the user. It does mean,
however, that only one ModelSim simulation license is needed to co-simulate several black
boxes in the Simulink simulation.
For an example of how to do this, see Simulating Several Black Boxes Simultaneously.
Multiple black boxes can also be co-simulated with ISE® Simulator by just selecting ISE
Simulator as the option for Simulation mode on each black box.