Re: Comparison failure at line 2- Xor.hdl

Posted by WBahn on
URL: http://nand2tetris-questions-and-answers-forum.52.s1.nabble.com/Comparison-failure-at-line-2-Xor-hdl-tp4034537p4034539.html

I have no idea what you mean by Line 2 calls the Not gate, let alone what you mean by line 1 does as well but it being okay.

I'm also not a very good remote viewer. I can't close my eyes and concentrate real hard and somehow see your .out file; so all I know is that somewhere on the second line it doesn't match what is on the second line of the .cmp file.

Since I'm also unable to remote view your HDL code, I can't possibly tell you what is wrong with it.

The only thing I can tell you is that line 2 of the test is setting both the 'a' and 'b' inputs to 0 and outputting the result, which should be 0. This matches line 2 of the compare file. I can tell this much only because I have copy of the .tst file and the .cmp file. I do NOT have a copy of your .out file, so I don't know what it is putting out (though my guess is that it's putting out a 1), nor do you have your .hdl files so I have no idea why it is not putting out a 0.