Вы находитесь на странице: 1из 9

Simple Guide for creating a simple application in Xilinx EDK

Software and Real-time debugging it using Software


Development Kit(SDK)

Version 1.0

Fahad Al Ghazali
Steps to create a project in EDK Platform Studio and running it
1. First Click on Xilinx Platform Studio Icon

2. Check Base System Builder Wizard Option and click ok .


3. Give File location using File Browser and the name of xmp file. Uncheck Set project
repositories and click OK

4. Then select I would like to create a new design , select board and choose between
option of Microblaze or PowerPC.
5. Choose option of frequency as per given, On-chip H/W Debug module, BRAM of 64
kb and Enable FPU. All the above mentioned selections are application dependent, but
these options will be required for our example application. Then configure I/O interfaces
like RS232, Display or LED switches as per shown in the diagram. After that on next
page DIP_switches option must be checked

6. After clicking on next, Add peripheral should be clicked to add WPS Timer. One timer
option should be selected. In the next window Peripheral self test option may be turned
off.
7. Then click ok on each of the next windows and finish
the bsb configuration wizard. After that the main window
of XPS appears

8. Go to Applications Tab Create a new Application software by right clicking on “Add


software application project” option . Give name as ‘test_1’ and click OK.

9. Right-click on application software of TestApp_memory and uncheck Mark Initialize


BRAM. Similarly check the Mark Initialize BRAM option in the software test_1
10. Right click on project named ‘test_1’ and click on the option of generate linker script

11. Go to Hardware Menu and and click on Generate


Bitstream. This bitstream will take 5-6 minutes.

12. After getting the message of Done! on console of xilinx platform studio, click on
Applications tab and right click on ‘sources’ heading of test_1 project and select add
new file. Give the location of file ./// project location/ test_1/test_1.c

13. Open the file for editing and copy the code from
test_1.c file given in this folder to test_1.c file of the
project. Then go to software menu and click on Build all
user applications.
14. After getting the done! Signal from console go to Device Configuration->Update
Bitstream.
15. Launch Impact software application and download the bitstream to xc2vp7 FPGA.
The bitstream will be created in ..//Implementation/download.bit. Open the hyperterminal
for receiving RS232 communication and Download the file

16. Enter any values of n1 and n2 and observing the changing status of LEDs.
Using Software Development Kit Debugging Functionality

1. Close impact software, Click Software-> Launch Software Platform SDK.


2. The SDK software dialog box appears. Check on Import XPS Application
projects and give file name in the next window. Check on test_1 option.

3. Click on Run-> Debug menu. Click on new and click on debug on the dialog box
4. Now use F6 to step over whole of the code

Вам также может понравиться