Arithmetic Logic Unit (ALU)
- Perform both arithmetic and logic operations
1-Bit ALU
- Logic
- Selects AND or OR depending on then control
- NAND and NOR are from A-Invert and B-Invert
- Because of reverse DeMorgan’s laws
- Basic Implementation:
- Add Adders, Multipliers, and Divider (with a mux to select between them)
- Final Result
32-Bit ALU
- Made by chaining many 1-bit ALUs
- Final interface