Performing Burst Mode Hardware Co-Simulation - 2020.2 English

Vivado Design Suite User Guide: Model-Based DSP Design Using System Generator (UG897)

Document ID
UG897
Release Date
2020-11-18
Version
2020.2 English

To perform the burst mode hardware co-simulation, you will execute the MATLAB M-code test bench that was generated automatically during compilation (see Compiling a Model for Hardware Co-Simulation).

This test bench resides in the Target directory specified when the design was compiled for the hardware co-simulation compilation target.

The test bench is named as follows:

  • If you compiled the top-level design the test bench will be named:
    <design_name>_hwcosim_test.m
    
  • If you compiled a subsystem of the design the test bench will be named:
    <design_name>_<sub_system>_hwcosim_test.m
    
    Note: If your board contains a Zynq® SoC device, you must install the Vitis™ unified software platform with the Vivado® Design Suite to perform hardware co-simulation.

To perform burst mode hardware co-simulation:

  1. Set up the board for performing hardware co-simulation.
    • For JTAG hardware co-simulation, you will 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.

    • For Point-to-Point Ethernet hardware co-simulation, you will connect a cable to the board’s JTAG port and another cable to the board’s Ethernet port. When you perform the hardware co-simulation, the Xilinx device on the board is programmed using the JTAG port, and the programmed device is then simulated using the Ethernet port.
  2. If you are performing Point-to-Point Ethernet hardware co-simulation:
    1. Set up the Local Area Network on the PC to allow you to perform hardware co-simulation.

      This procedure is described in Setting Up the Local Area Network on the PC.

      As part of this procedure, you can specify that the PC’s Ethernet adapter can use jumbo frames (frames larger than 1500 bytes) for data transfers. Using jumbo frames can speed up the Point-to-Point Ethernet hardware co-simulation. Jumbo frames are described in Using Jumbo Frames for Point-to-Point Ethernet Hardware Co-Simulation.

    2. If your PC is operating behind a firewall, disable the firewall while the hardware co-simulation runs.
    3. Optionally, disable any virus protection program running on the PC while the hardware co-simulation runs.
  3. Run the test bench script from the MATLAB console. To run the test bench script, you can open the MATLAB console, change directory to the Target directory and run the script by name.

    The script runs the Simulink model to determine the stimulus data driven to the Xilinx Gateway In blocks (from the other Simulink source blocks or MATLAB variables), and captures the expected output produced by the Xilinx block design (BD), and exports the data to the Target directory as these separate data files:

    <design_name>_<sub_system>_<port_name>.dat

    The test bench then compares actual to expected outputs.

    If the test fails this will be printed on the console, and the failing comparisons will be listed in this file:

    <design_name>_<sub_system>_hwcosim_test.result