User guide

210 www.xilinx.com System Generator for DSP User Guide
UG640 (v 12.2) July 23, 2010
Chapter 2: Hardware/Software Co-Design
9. You are now ready to generate a hardware co-simulation block for this subsystem.
Double-click on the Sysgen Token on this Subsystem and set its parameters as shown
below.
10. Click the Generate button to start generating a Hardware C0-Simulation block. This
may take a few minutes.
Step 4 Create a Software Application Project and Co-Debug the Sysgen Design
Using an Integrated Design Flow between Sysgen and SDK
General Flow for this Exercise
Importing an XPS design into System Generator allows you to co-debug your DSP design
in SDK with real live data generated from the MicroBlaze while observing signals on the
Simulink model. System Generator's Hardware Co-Simulation technology allows the
MicroBlaze to be running in hardware and for the rest of the DSP design to be simulated (in
software) in System Generator. This gives you visibility into all the signals of the DSP
design and is useful for finding hardware and interface/protocol bugs.
In this section of the exercise, you will co-debug a System Generator design using SDK and
System Generator. This will involve single-steping the C-code and oberving expected
output signals inside the SDK console as well as on the waveform Scope of the Simulink
model. This co-debug methodology enables you to examine and verify signal values at
different points in the C-code and Simulink signals.