Re: Internal pin to bus
Posted by
cadet1620 on
URL: http://nand2tetris-questions-and-answers-forum.52.s1.nabble.com/Internal-pin-to-bus-tp4026005p4029921.html
pango333 wrote
Not16 (in=out, out=zr);
And (a=out[15], b=out[15], out=ng);
(While I'm at it, I'm getting an error message for the And gate, too: "Can't connect gate's output pin to part." Why is that?)
The error message would be clearer if it said "Can't connect
chip's output pin to part." What it means is that pins named in the OUT line cannot be connected to inputs of parts used in the PARTS section.
Just like you can solder more than one wire to a physical pin, you can make more than one connection to a part's output pin:
SomePart(..., out=out, out[??]=??, out[??..??]=??, ...);
To generate the
zr signal you need some additional logic. What part that you made in project 1 will tell you if an 8-bit number is non-zero?
--Mark