SIMP CPU simulator and assembler built in C. 2 version are available PC version and BASYS chip version. full documentation added in hebrew as PDF and explenation for the testing assembly progrems written in MIPS assembly the documentation of the code is written in english.
The simulation recieve memin.txt file, created by the assembler and return txt file containing memory, registers ,number of cycles at the end of the run and th trace.
the registers simulated:
commands structure:
commands simulated:
test progrems:
fib.asm - calculate fibonacci number. bubble.asm - sort a series of numbers using bubble sort algorithm. binom.asm - calculate the binom coefficent using recursion.
built on the PC simulation where there's I/O registers added, and command to speak/write. register/cycle/memory information can be seen on the BASYS display using the switch 0,1 buttons. BTNL used to pause the simulation , while in pause BTNR will run one command line, another BTNL press will unpausee the simulation.
in addition irq0, irq1, irq2 commands were added ,basic LED control, and button control,explained in details in the PDF documentation file.
the test progrem Stopper.asm is a timer that run on the BASYS 7 segment display , with PAUSE/UNPAUSE and RESET options using BTNC , BTNL. the timer counts up to 59[min]:59[sec] and then resets to 00:00. full explemantion of each button function is in the PDF documentation.