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 [ 80.12 KiB | Viewed 6910 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.