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
Editor
pane
- Edits can be made in the
File > Save
will save a copy of the text in your Downloads folderCompile and Load
will assemble the program and load it into the memory of the simulated computer systemDisassembly
pane lets you see machine code and gives address in memory of each machine-code wordStep Into
command 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
Continue
command to run the program until it reaches the breakpoint