
Its a 4-bit alu, can make addition, substraction, multiplication, division and bitwise-and.
A and B input are the data for ALU, S is the operation selects, in the next table we presents the operations
| operation | S | Result |
|---|---|---|
| addition | 0 | A + B |
| substraction | 1 | A - B |
| multiplication | 2 | A * B |
| division | 3 | A/B |
| bitwise and | 4 | A & B |
buttons or dip switches
| # | Input | Output | Bidirectional |
|---|---|---|---|
| 0 | A3 | R7 | S0 |
| 1 | A2 | R6 | S1 |
| 2 | A1 | R5 | S2 |
| 3 | A0 | R4 | |
| 4 | B3 | R3 | |
| 5 | B2 | R2 | |
| 6 | B1 | R1 | |
| 7 | B0 | R0 |