Trtld wrote
When I run the simulator after loading the AND chip as well as the test script the Hardware Simulator displays an error. The error is as follows: "Unknown variable: a."
This is the And.hdl file that I have modified:
// 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/01/And.hdl
CHIP And {
IN in1, in2;
OUT out1;
PARTS:
...
You are getting this error because you changed the IN and OUT pin names.
The test file expects the names to be "a", "b" and "out", so your file must say
CHIP And {
IN a, b;
OUT out;
The structure of your And is otherwise correct.
--Mark
[Please edit your post to remove the PARTS section. We want other students to develop their own solutions, too.]