Programming labs in Nios II Architecture. By Annie Wang and Samar Qureshi. My course notes here!
How to use CPUlator
- Write the code in the editor
- Edits can be made in the
Editorpane
- Edits can be made in the
File > Savewill save a copy of the text in your Downloads folderCompile and Loadwill assemble the program and load it into the memory of the simulated computer systemDisassemblypane lets you see machine code and gives address in memory of each machine-code wordStep Intocommand allows you to execute your program one instruction at a time- Breakpoints can be set at a specific memory address where you want the execution to pause
- Useful for debugging or examining the state of the program at certain points, such as before or after a loop or a function call
- Use
Continuecommand to run the program until it reaches the breakpoint