Login  Register

Re: Ram8

Posted by cadet1620 on Sep 09, 2016; 7:48pm
URL: http://nand2tetris-questions-and-answers-forum.52.s1.nabble.com/Ram8-tp4030199p4030202.html

The tests are much more than just pass/fail. You need to look at the compare and output files. They tell you what is happening.

At time 4+ you will see that the expected output when reading address 0 is 0, but your RAM8 is outputting 11111.

Look back in the compare file and see that at time 1+ the value 0 was written to address 0, and at time 2+ address 0 was read and the value was 0.  The write to address 0 worked.

At time 3+ the value 11111 was written to address 1.  Why did this write to address 1 change the value for address 0?

Something must be wrong with the logic that controls which Register gets loaded for a particular address. (Hint: it's missing.)

--Mark