Fix the ALU and properly test it (including difference, not just sign output).
commit400a66a1163c9eb489abb30668f4945c3141d638
authorJeff Connelly <shellreef+git@gmail.com>
Mon, 26 May 2008 04:53:33 +0000 (25 21:53 -0700)
committerJeff Connelly <shellreef+git@gmail.com>
Mon, 26 May 2008 04:53:33 +0000 (25 21:53 -0700)
treeb988d3f243a75768f10727a61075f283e0122f7f
parentc4aa324cee61199573caa740bf2e3db211f7a2b3
Fix the ALU and properly test it (including difference, not just sign output).

The ripple-carry adder was wired incorrectly, in reverse. Fix
the ordering. Also, the carry-out clearly shouldn't be inverted--
as far as the ripple carry adder is concerned, all it does is
addition; the subtraction is handled by inverting the inputs.

Updated timing diagram at http://jeff.tk/wiki/Image:ALU_Timing_Diagram.png .
circuits/alu.asc
circuits/alu.asy
circuits/alu_test.asc
circuits/alu_test.plt