Debug assertions: The simulator checks for many common errors or unusual/unexpected behaviours in your program at runtime, and will.
The Devices panel (right side by default) allows I/O devices: CPUlator simulates not only the CPU, but also I/O devices.Use CPUlator without reading the rest of this documentation. If you're already familiar with other debuggers, it should be possible to The CPUlator user interface is similar to a typical debugger.
If you want to simulate a compiled executable instead of assembly source code, see the Compiling Code section below. Set breakpoints, step, run, stop, and debug your program.In the Editor window, use the Compile and Load (F5) button to compile your assembly source and load the executable into memory.This setting determines which CPU (instruction set) and I/O devices will be included The following is a feature comparison of CPUlator with some popular simulators used for teaching. Input: Accepts both assembly source code and ELF executables.Debug assertions: Optional runtime assertions catch many potential errors.Debugger: Single-step, breakpoints, watchpoints, trace, call stack, examine disassembly, memory and registers.Nothing to install: Runs entirely inside a web browser.MIPS: Includes SPIM-compatible terminal.Nios II and ARMv7: Includes most devices found on a DE1-SoC (and other board models used by the Altera University Program), including interrupt support.Instruction sets: Nios II, ARMv7, and MIPS.Self-modifying code or violating calling conventions, making debugging easier. Has greater visibility into the system state and can warn about suspicious behaviours, such as
It is more convenient and easily accessible than a hardware board. The simulated systems are based on the computer systemsįrom the Altera University Program (Nios II and ARMv7) or SPIM (MIPS).Ī simulator has several advantages over hardware. The program will behave (almost) identically to the same program running on real hardware. When you load a program onto the simulator,
Running and debugging programs without needing to use a hardware board. CPUlator is a simulator and debugger of a computer system (CPU, memory, and I/O devices) that runs inside a web browser.