This basic ALU (Arithmetic Logic Unit) is a digital circuit that performs arithmetic and logical operations on binary numbers. Specifically, the ALU is a 4-bit adder/subtractor that can perform addition and subtraction of 4-bit binary numbers.
To use the ALU, follow these steps:
Input the two 4-bit binary numbers you want to add or subtract into the ALU with the ui. You can do this by setting the input switches or buttons to the desired values.
Set the operation mode switch to either "add" or "subtract", depending on the operation you want to perform.
Wait and see what the output is.
The output display will show the result of the operation in 4-bit binary form. [If you want to do another calculation, spark the "CLR" button to clear the current result]
* i may soon make it so it will be converted from binary to decimal.
That's it! This simple ALU is now ready to perform simple arithmetic operations on binary numbers. Keep in mind that this is a very basic implementation, and more complex ALUs can perform additional operations such as multiplication, division, and bitwise operations. Nonetheless, my ALU is a great starting point for learning about digital circuits and basic arithmetic operations in binary as i allow anyone to copy this only if you give credit.
My save that includes the electronic with more documentation : https://powdertoy.co.uk/Browse/View.html?ID=2970363
If you want more information on how these electronics work : https://en.wikipedia.org/wiki/Logic_gate
^v^
- Thisfact