If you are performing the standard (non-burst mode) hardware co-simulation, your Simulink model will contain a JTAG hardware co-simulation block. This block was created automatically when Model Composer finished compiling your design into an FPGA bitstream (see Compiling a Model for Hardware Co-Simulation). The block is stored in a Simulink library with this file name:
The hardware co-simulation block was moved into your Simulink model at the end of the compilation procedure. In the following procedure, you will have to wire up this block in your Simulink model to perform hardware co-simulation.
To perform the standard hardware co-simulation:
- Connect the hardware co-simulation block to the Simulink blocks that supply its inputs and receive its outputs.
- Double-click the hardware co-simulation block to display the properties
dialog box for the block.
- Fill out the block parameters in the properties dialog box.
The properties are described in Block Parameters for the JTAG Hardware Co-Simulation Block.
- To set up the board for performing JTAG hardware co-simulation, you should
connect a cable to the board’s JTAG port.
For a description of the setup procedure for a JTAG hardware co-simulation, using a KC705 board as an example, see Setting Up a KC705 Board for JTAG Hardware Co-Simulation.
- In the Simulink model, simulate the
model and the hardware by selecting or clicking the Run simulation
Running the simulation will simulate both the Model Composer design (or subsystem) in your Simulink model and the Xilinx device on your target board. You can then examine the results of the two simulations and compare the results to determine if the design implemented in hardware will operate as expected.