Black box HDL can be co-simulated with Simulink® using the System Generator interface to either the Vivado® simulator or the ModelSim simulation software from Model Technology, Inc.
Xilinx® Simulator
To use the Xilinx simulator for co-simulating the HDL associated with the black box, select Vivado Simulator as the option for the Simulation mode parameter on the black box. The model is then ready to be simulated and the HDL co-simulation takes place automatically.
ModelSim Simulator
To use the ModelSim simulator by Model Technology, Inc., you must first add the ModelSim block that appears in the Tools library of the Xilinx Blockset to your Simulink diagram.
For each black box that you wish to have co-simulated using the ModelSim simulator, you need to open its block parameterization dialog and set it to use the ModelSim session represented by the black box that was just added. You do this by making the following two settings:
- Change the Simulation Mode field from Inactive to External co-simulator.
- 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 block help page for details. The model is then ready to be simulated with these options, and the HDL co-simulation takes place automatically.