
A 4-bit ALU designed in Wokwi. Inputs two 4-bit numbers and the desired operation (Add/Subtract/AND/OR) LEDs reflect output.
Just a simple ALU input numbers and desired operation and check with master solution.
10x 10kOhm Resistors 5x 1kOhm Resistors 5x LEDs 2x 8 dip switch
| # | Input | Output | Bidirectional |
|---|---|---|---|
| 0 | A0 | S0 | Mode1 |
| 1 | A1 | S1 | Mode2 |
| 2 | A2 | S2 | |
| 3 | A3 | S3 | |
| 4 | B0 | Overflow | |
| 5 | B1 | ||
| 6 | B2 | ||
| 7 | B3 |