CPU.tst failed but CPU-external.tst success

Posted by Afik on
URL: http://nand2tetris-questions-and-answers-forum.52.s1.nabble.com/CPU-tst-failed-but-CPU-external-tst-success-tp4036516.html

Please help me, I'm getting stuck on testing CPU for a few days now. I've tested with CPU.tst but comparison failed at line 5 and 11, when I compared the CPU.out and CPU.cmp there was no mistake, everything just fine.

Here's the result of CPU.out line 5
CPU.out

and this is CPU.cmp line 5
CPU.cmp

But then I tried using CPU-external.tst and it went successful. I used Aregister and Dregister built-in in my CPU.hdl, I suppose the problem is in my code but the result was right based on CPU.out and CPU.cmp.

I greatly appreciate your help

Thanks