Team Slytherin: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 19: | Line 19: | ||
./runcp -vsim | ./runcp -vsim | ||
or | |||
./run -vsim | ./run -vsim | ||
</ul> | </ul> | ||
Line 29: | Line 30: | ||
<tr><td>CNY_CAE_EMULATOR</td><td><location for CaeSimPers></td><td>./run_simulation</td><td>''unset''</td></tr> | <tr><td>CNY_CAE_EMULATOR</td><td><location for CaeSimPers></td><td>./run_simulation</td><td>''unset''</td></tr> | ||
</table> | </table> | ||
=== Extra Credit: Invoking gdb === | === Extra Credit: Invoking gdb === | ||
<ul><li>We can invoke gdb using the gdb <programname> command</li> | |||
<ul><li>We can invoke gdb using the gdb <programname> command or by using the run/runcp script files in with "-gdb" option</li> | |||
gdb UserApp.exe | gdb UserApp.exe | ||
or | |||
./run -gdb | |||
<li>One can find different command classes on gdb by typing help or type help followed by the command class/command</li> | |||
<li>We explored some commands like run, start (to begin execution), stepi (for single instruction stepping into a file), kill (kill a running program) and quit on gdb </li> | |||
</ul> | </ul> |
Revision as of 22:01, 1 February 2012
Team Members
- Kevin Townsend
- Bhavani Satyanarayana Rao
- Chidvila Gaddam
Assignment1
Running the sample application with script files
- The runcp script located in the SampleAppVadd can be used to run the application in HW which sets the appropriate environment variables and runs the UserApp.exe export CNY_PDK_PROJ = ~/pdk_sample/cae_pers_vadd ./runcp
- The run script located in the SampleAppVadd can be used to run the application in SW
- The scripts above can be used to run the application on Simulator using the "-vsim" option which sets the environment variable CNY_CAE_EMULATOR to ./run_simulation ./runcp -vsim or ./run -vsim
Environment Variables | Software | ModelSim | Hardware |
---|---|---|---|
CNY_SIM_THREAD | libcpSimLib2.so | libcpSimLib2.so | unset |
CNY_CAE_EMULATOR | <location for CaeSimPers> | ./run_simulation | unset |
Extra Credit: Invoking gdb
- We can invoke gdb using the gdb <programname> command or by using the run/runcp script files in with "-gdb" option gdb UserApp.exe or ./run -gdb
- One can find different command classes on gdb by typing help or type help followed by the command class/command
- We explored some commands like run, start (to begin execution), stepi (for single instruction stepping into a file), kill (kill a running program) and quit on gdb