JWal wrote
I am attempting to build a And Gate and when I run the test script i am getting a comparison error at 3. Can anyone provide some insight?
Look at the inputs, expected output and your output. For line 3 you see that a=0, b=1, and the expected output is 0.
Your circuit computes ~a NAND ~b = 1 NAND 0 = 1, so it fails.
Note that you can hit the step button when a line fails to continue the test. Comparing the expected and actual outputs for later test lines may give you more clues.
Specifically for the And, note that the Nand is an And followed by a Not. How would you undo that Not?
--Mark