1. Usage

A simple simulator and debugger for the WISC-SP13 ISA is provided.
This simulator can read in the output of the assembler and execute it.
You can step one instruction at a time to determine how the individual steps in your program affect the state of the machine.

One way to use this program for verification is to compare the state of registers in the writeback stage with the registers printed by this simulator.

You can run this simulator by invoking the following command at a unix prompt:

/u/k/a/karu/courses/cs552/spring2013/handouts/bins/wiscalculator

The directory /u/k/a/karu/courses/cs552/spring2013/handouts/bins is already added to your PATH variable.

Type help at its prompt to see what all it can do.

Normal usage:

wiscalculator loadfile_all.img

With this usage, the simulator will run the program and print a step by step listing of the instructions executed and what registers they write to etc. A file called archsim.trace will be created.