Re: comparison failures
Posted by drnealaggarwal on
URL: http://nand2tetris-questions-and-answers-forum.52.s1.nabble.com/comparison-failures-tp4025260p4025275.html
Mark
I think I've managed to hunt this down. The confusion for me lay in the code given in Figure 1.6 in the book where the test script output-list command is
output-list a, b, out;
while the file in projects/01/Xor.tst has that output line as
output-list a%B3.1.3 b%B3.1.3 out%B3.1.3;
I think the formatting specification caused the problems I experienced. I created my own Xor.hdl and Xor.tst but must have copied the .out file from projects/01. The simulator would halt at every 'output;' line with a reported error '... comparison failure.'
Perhaps resolution notes for this belong (if not already there) in the errata for the book or maybe a note to say the examples in the book are not meant to be keyed in and serve for discussion only?
Hope this makes sense and helps.
Neal