User guide

214 www.xilinx.com System Generator for DSP User Guide
UG640 (v 12.2) July 23, 2010
Chapter 2: Hardware/Software Co-Design
6. Continuing from step 5, create a new Xilinx C Project: File > New > Xilinx C Project >
Hello World (default project template)
7. Click Next and Finish
Note:
At this point, both the Xilinx C application and Xilinx Software Platform should have
already been created for you. (In the previous version of SDK, you would have to manually create
each step separately.)
8. The next task is to develop C-code to interface with the System Generator pcore. The
default file helloworld.c is created for you and it can be used as your starting point.
For your convenience, a complete C-code source file is provided for you named
sg_hello_world.c and is located in the SDK_CoDebug folder.
9. Under the “hello_world_0” C application, within the src folder, delete the
helloworld.c and replace it with the ...sg_hello_world.c. The easiest way to add a new
C-code file is to simply drag and drop it from Windows Explorer into the src directory.