Learn ALU design through interactive simulations. Explore arithmetic operations, logical operations, and control signals with real-time visualization.
| Control | Operation | Function | Example |
|---|---|---|---|
| 000 | ADD | A + B | 5 + 3 = 8 |
| 001 | SUB | A - B | 5 - 3 = 2 |
| 010 | AND | A & B | 5 & 3 = 1 |
| 011 | OR | A | B | 5 | 3 = 7 |
| 100 | XOR | A ^ B | 5 ^ 3 = 6 |
| 101 | NOT | ~A | ~5 = 250 |
| 110 | SHL | A << 1 | 5 << 1 = 10 |
| 111 | SHR | A >> 1 | 5 >> 1 = 2 |
The ALU performs binary addition of two input operands A and B, producing a result and setting appropriate flags.