Login  Register

Re: ALU test scripts?

Posted by cadet1620 on Nov 12, 2011; 2:04pm
URL: http://nand2tetris-questions-and-answers-forum.52.s1.nabble.com/ALU-test-scripts-tp3501919p3502387.html

Haiduc wrote
Hi Guys,


So I've implemented my ALU to my satisfaction, i.e. it passes my little test script OK, but I was wondering if there is a corpus of test scripts with corresponding compare files against which I could do some additional testing?  I'm just concerned about the very large number of different input combinations (2^38 by my reckoning) and the difficulty of ensuring I've got a design with no subtle errors.

I do note that the book mentions scripts on the web site - but I couldn't find them .  Feel free to point me in the right direction, or alternatively... anyone care to share some meaty test/compare files?

Thoughts on effectively testing non-trivial chip designs also gratefully received :)
You want to read this post: Hardware Construction Survival Kit.  It includes a link to the TECS web site page where you can get stubs and test scripts for the projects, and other useful information.

--Mark