CPU passes CPU.tst test, but fails CPU.external due to outM output
HI!
I used built-in A- and D- Registers. Therefore i used CPU.tst to test my chip.
After i passed that, i wanted to use CPU-external.tst just to double-check everything, but i notice that CPU-external.cmp checks for outM output of my CPU even during A-Instructions. My ALU's output directly goes to the outM, so half of the time there some gibberish going on as i do not control it when MSB of instruction is 0.
When i replaced outM in CPU-external.cmp with ***** during A-instructions i passed that test too. The question is: After all, does my CPU is suppose to be concerned about it's outM output during A-instruction or not? If not, then why are those values in the CPU-external.cmp file?
Re: CPU passes CPU.tst test, but fails CPU.external due to outM output
Administrator
You will want to get the entire set of files from http://www.nand2tetris.org before you start chapters 7-12. There are lots of updated tests and some new ones, too.