Login  Register

Re: Comparsion failure at line 9 on RAM8.hdl

Posted by cadet1620 on Nov 15, 2017; 5:04pm
URL: http://nand2tetris-questions-and-answers-forum.52.s1.nabble.com/Comparsion-failure-at-line-9-on-RAM8-hdl-tp4031456p4031570.html

Your RAM8.hdl is correct and passes RAM8.tst on my computer. The problem must be with your Register (or Bit) implementation.

You can debug this by creating a projects/03/a/test directory and copying only RAM8.hdl, .tst, and .cmp files into that directory. That will use the built-in parts for everything else, and it should pass.

Then copy your Register.hdl into the test directory. If RAM8.tst then fails, Register is the problem. If it passes, continue by copying your Bit.hdl.

If you find that either your Register.hdl or Bit.hdl is causing the problem, and it passes its test (copy the .tst and .cmp files into the test directory), please email me the failing HDL. I would like to improve the test(s) to detect the problem.


Please edit your post to remove the correct HDL.

--Mark