Re: 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-tp4036516p4036522.html
WBahn wrote
How do you know it also has a failure at line 11? Doesn't the script abort as soon as the error at line 5 happens?
When the comparison failure at line 5 I kept going the test using single step button until the end(so I guess the .tst file didn't abort?).
This image shows failure at line 11 and from that to the end there were no comparison error, so I've got error at line 5 and 11 only.

WBahn wrote
Have you tried running the tests where the CPU is using all built-in parts (including the CPU itself)? If that passes, then start adding in your own parts one at a time, starting with just the CPU.hdl file, until it fails. That will let you identify which part is causing the problem.
I don't think I used my own part, all part in my .hdl program are built-in parts.
Here's my code
https://pastebin.com/Cym9tuhp