eolas/Computer_Architecture/Hardware_simulation.md
2022-12-31 12:30:04 +00:00

844 B

categories tags
Computer Architecture
Hardware
HDL
nand-to-tetris

Hardware simulation

In order to test our HDL files we load them into the hardware simulator program shown below:

There are several simulation options:

  • interactive
  • script-based (where we load a test script into the simulator along with the HDL file
  • comparative (running the HDL program against our intended output specified in the .out file)

The image below shows a basic interactive usage of the simulator. We have uploaded the Xor.hdl file into the simulator and changed the input pins to a=1, b=0 and clicked the calculator icon. This then shows the output and internal pin values for these inputs.