Black box HDL can be co-simulated with Simulink® using the Model Composer interface to either the AMD Vivado™ simulator or the Questa simulation software from Model Technology, Inc.
AMD Simulator
To co-simulate the HDL for the black box using the AMD simulator, select Vivado Simulator as the Simulation mode parameter on the black box. The model is then ready to be simulated and the HDL co-simulation takes place automatically.
Questa Simulator
To use the Questa simulator by Model Technology, Inc., add the Questa block from the Tools library of the AMD HDL Blockset to your Simulink diagram.
To co-simulate each black box using the Questa simulator, open its block parameterization dialog and set it to use the corresponding Questa session. The Questa session is represented by the black box that was recently added. Do this by making the following two settings:
- Change the Simulation Mode field from Inactive to External co-simulator.
- Enter the name of the Questa block (for example,
Questa) in the HDL co-simulator to use field.
The block parameter dialog for the Questa block includes some parameters that you can use to control various options for the Questa 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.