Login  Register

Re: Comparsion failure at line 9 on RAM8.hdl

Posted by elf on Nov 16, 2017; 3:10am
URL: http://nand2tetris-questions-and-answers-forum.52.s1.nabble.com/Comparsion-failure-at-line-9-on-RAM8-hdl-tp4031456p4031571.html

Thank you very much! You provide a good test method.
I test 3 .hdl files in projects/03/a/test separately and they all function well.

I tested in another way:
In Projects/03/a, when Register.hdl is
BUILTIN Bit;
Register test is OK, but RAM8 test failed.

and when I modify it to
Bit(in=in[0],load=load,out=out[0]);
	Bit(in=in[1],load=load,out=out[1]);
        ......
	Bit(in=in[15],load=load,out=out[15]);
in projects/03/a, Register and RAM8 are all OK.

It seems the problem is solved, but could you please explain the reason?? Why can't I use the built-in chip?