
A mini calculator with two bidirectionals that will change between which operations are being executed, then with the switches of the 4 bits A and the 4 Bits B they will define the values that will pass through the mini calculator resulting in 4 bits and in the case of addition a Carry. The bidirectionals bits are defined by: (00:XOR) (01:OR) (10:AND) (11:+)
First of all, Use the bidirectionals to define all the operations, then try all the possible responses of each operation and see if they fit what it should be.
| # | Input | Output | Bidirectional |
|---|---|---|---|
| 0 | A0 | O0 | S0 |
| 1 | A1 | O1 | S1 |
| 2 | A2 | O2 | |
| 3 | A3 | O3 | |
| 4 | B0 | Carry | |
| 5 | B1 | ||
| 6 | B2 | ||
| 7 | B3 |