Files
nand2tetris/projects/00/Xor.tst
2014-11-10 16:41:31 -08:00

33 lines
567 B
Scilab

// This file is part of www.nand2tetris.org
// and the book "The Elements of Computing Systems"
// by Nisan and Schocken, MIT Press.
// File name: projects/00/Xor.tst
// This file is included here for those who wish to follow the Hardware Simulator Tutorial
// and play with the Xor.hdl implementation.
load Xor.hdl,
output-file Xor.out,
compare-to Xor.cmp,
output-list a%B3.1.3 b%B3.1.3 out%B3.1.3;
set a 0,
set b 0,
eval,
output;
set a 0,
set b 1,
eval,
output;
set a 1,
set b 0,
eval,
output;
set a 1,
set b 1,
eval,
output;