Login  Register

Re: Comparison Failure for "AND" gate

Posted by WBahn on Jun 25, 2023; 10:32pm
URL: http://nand2tetris-questions-and-answers-forum.52.s1.nabble.com/Comparison-Failure-for-AND-gate-tp4037234p4037238.html

If you look at your .out file, you see that the output is always 0, regardless of the input.

So that's a clue.

Your And gate uses a Nand gate and a Not gate.

The Nand gate, of course, in the intrinsic building block.

Have you implemented and tested your Not gate? If so, did it pass?

Is the Not.hdl file in the same folder as the And.hdl file you are trying to test?