Re: Hardware Simulator Not Working?
Posted by
cadet1620 on
URL: http://nand2tetris-questions-and-answers-forum.52.s1.nabble.com/Hardware-Simulator-Not-Working-tp3334406p4025183.html
The thing to remember here is that the '=' indicates a wiring connection, not a value assignment. The names are not variables as understood in programming, rather they are the names of wires and I/O pins.
The name on the left is always the name of a pin in the part being
used, the name on the right is always the name of a wire or pin in the part being
defined.
If you are building the DMux which has the following definition:
CHIP DMux {
IN in, sel;
OUT a, b;
and you had a part line
Not(in=sel, out=b);
in and
out are pins in the Not,
sel and
b are pins (or wires) in the DMux.
If you haven't, read the
Hardware Construction Survival Guide.
--Mark