Andes Workshop

It is currently Thu Mar 28, 2024 11:42 pm

All times are UTC + 8 hours [ DST ]




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: Dhrystone project -- Build and Run
PostPosted: Wed Dec 25, 2013 12:22 pm 
Offline

Joined: Wed Apr 13, 2011 7:44 pm
Posts: 23
Import project:
1. Execute AndeSight v2.0.1 MCU.
2. Right-click in "Project Explorer", and select ”Import…”.
3. Select "General" --> "Existing Projects into Workspace".
4. Select "Select archive file" and click "Browse..." button to choice ”AndeSight201MCU\demo\Dhrystone_IDLM64K.tgz”, then click "Finish".

A. Run Dhrystone on FPGA board:
1. Edit ”config.h” file to set "LOOP_COUNT" to 1000000 times.
2. Right-click on project, and select ”Target Configuration”.
3. ”Target Chip” to select N968A-S. Select AICE on “Connection Type”. Then click "Apply" and "OK button.
4. Make sure the project was re-built.
5. Power-on the board and push "PWN ON" button. LED will display 99. Connect AICE usb cable.
6. Right-click on project, and select ”Debug As --> MCU Program”.
Note: Please confirm that the debug configurations is set as following picture
through "Debug As --> Debug Configurations...".
Set mr6 [0] is to enable ILM (Default is disabled).
Attachment:
dhrystone_debug.png
dhrystone_debug.png [ 80.12 KiB | Viewed 6666 times ]

7. It will enter "debug perspective" automatically. Click "Resume" button (or hot-key 'F8'), UART will display result.

B. Run Dhrystone on Simulator(SID):
1. Click “Window --> Preferences” on AndeSight menu. Select ”Target Management default setting” on left-hand side.
Change “Connection Type” to ”Simulator”.
Input following line in "Simulator Misc Arguments":
-e "relate Timer cpu cpu" -e "set cpu MHZ 60" -e "set Timer MHZ 15" -e "set cpu cpu-option \\"--pipeline-on 1 --config-ilmb 0x9 --config-dlmb 0x8 --config-bus-overlap 1 --config-icen 0 --config-dcen 0\\""
Select N968A on “Target Chip”, then click "Apply" and "OK" button.
2. Edit ”config.h” file to set "LOOP_COUNT" to 10000 times.
3. Right-click on project, and select ”Target Configuration”.
4. ”Target Chip” to select N968A-S. Select Simulator on “Connection Type”. Then click "Apply" and "OK button.
5. Make sure the project was re-built.
6. Right-click on project, and select ”Run As --> C/C++ Application”.
7. A new N968A target will be added in ”Running Target” on "Target Managet" window which is at left-down side of AndeSight. There is Uart3 after expanded it. Double-click it and Uart3 window will be popped up. The result will be displayed in it.


Top
 Profile Send private message E-mail  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC + 8 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 16 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group