Login  Register

ALU test scripts?

Posted by Haiduc on Nov 12, 2011; 7:09am
URL: http://nand2tetris-questions-and-answers-forum.52.s1.nabble.com/ALU-test-scripts-tp3501919.html

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 :)