CAPC - Part 9 |
The ALU Unit
The ADD Instruction Finally, I spent an hour fixing everything that was broken. I placed two of the registers in backwards, I misnamed an output wire in the OpLogic device and the ALU combinational circuit was malfunctioning. I never figured out why the ALU had malfunctioned. I disconnected it from the processor and hooked it up to hex displays and keyboards and saw that it was indeed failing. Then I rebuilt another one beside it that was exactly the same and was dumbfounded to see that it did work while the identical one beside it didn't. I gave up on trying to figure it out and simply copied and pasted the working one back onto the processor after which my ADD instruction worked beautifully. I ran these two test programs while working on it: ADD Test Program Simpler ADD Test Program |