Re: Comparison failure at line 1

Posted by cadet1620 on
URL: http://nand2tetris-questions-and-answers-forum.52.s1.nabble.com/Comparison-failure-at-line-1-tp4026071p4026075.html

In your CtlZ16.tst file you have
    compare-to CtlZ16.cmp,

The hardware simulator compares the current output with the CtlZ16.cmp file.  The header line in CtlZ16.cmp is different than the currently generated header line.

Note that you can comment out the compare-to line and the test will run to completion. You can then look at CtlZ16.out to see that your chip did during the test. Once you are sure that your chip is working you can copt the CtlZ16.out file to CtlZ16.cmp and uncomment the compare-to line.

--Mark