Software simulations

The simulation of the system using Excel

To check if the command set of the CPU is useful, a software simulation using an Excel macro was developed. Using this macro it is possible to step through the code, watch registers and memory and to go forward until a breakpoint. The following picture shows the simulation with an program which multiplies two numbers using shift operations.

A system simulation using C# to test the programming

With the following, simple C# project is ist possible to test a relay system program. The input into the simulation is a textfile with the relay CPU program, the output is a trace with all register states and the commands done by the CPU.