3 Design and implement a block that acts like following tabl
3. Design and implement a block that acts like following table.
1
1
A+B+1
1
0
2A + 1
0
1
A-B
0
0
Clear output ( Out = 0)
| F1 | F0 | out |
| 1 | 1 | A+B+1 |
| 1 | 0 | 2A + 1 |
| 0 | 1 | A-B |
| 0 | 0 | Clear output ( Out = 0) |
Solution
An alternative approach for the addition of two n-bit numbers is to use a separate circuit for each corresponding pair of bits. Such a circuit would accept the 2 bits to be added, together with the carry resulting from adding the less significant bits. It would yield as outputs the 1-bit sum and the 1-bit carry out to the more significant bit. Such a circuit is called a full adder. A schematic diagram is shown in Figure 1b. The 2 bits to be added are xi and yi , and the carry in i
