Skip to content

Simulating SimpleCPU

bubble12 edited this page Feb 7, 2017 · 2 revisions

Running Simulations

The entire simulation for an implementation can be started by invoking the run.pl script

$ perl run.pl | tee sim.log

The script builds up the model for checking the RTL simulation and then compiles, builds and renders the RTL. Before invoking the perl script do ensure that the required instruction hex is present in the same directory as the run.pl script.

You can copy the tests from the hex_gen directory -

$ cp mips/hex_gen/tests/instr_hex_100_instrs instr_hex

The test generated log is present inside the following folder -

$ vim mips/hex_gen/tests/logs/

The above logs help in debugging in-case there is a failure.

Clone this wiki locally