I'm back after so long
![Razz :P](./images/smilies/icon_razz.gif)
I've made a device that adds 4-bit numbers, but also displays them and the sum with the 7-segment display.
I know that an LCD controller chip already exists, but I think the one I've made is more efficient and organized. Rather than many AND gates and arrays of wires, I've worked out the optimum gates using Karnaugh maps. Took me half an hour just to finish the maps lol
EDIT: The LCD chip from the downloadable digital clock has less gates than mine XD Mine is a bit easier on the eyes though
It takes in a 4-bit number and outputs an 8-bit number which must be split and input into the display.
The 4BDS chip takes a 4-bit number and splits it into the 10's digit and 1's digit of its decimal equivalent. These are then fed to the LCD controller chip.
If you get a strange result, like 11 + 8 = 3, that means that the calculator has encountered an overflow (represented by the activation of the LED). Add 16 to the displayed result to get the actual result, if that's the case.
Also included is a Toggle chip, which is essentially a modified JK flip-flop. It changes value when the input falls from 1 to 0, making a button-based input perfect.