Derive the truth table for halfsubtractor and fullsubtractor
Derive the truth table for half-subtractor and full-subtractor. Derive the input-output function from the truth table.
Solution
Truth table for half-subtractor :-
input-output function from the truth table and k-map--->
Difference = A\'B + AB\'
Borrow = A\'B
Truth table for full-subtractor--->
input-output function from the truth table and k-map--->
Difference = A\'B\'C + A\'BC + ABC + AB\'C\'
Borrow = A\'B + A\'C + BC
| Input | Input | Output | Output |
| A | B | Difference | Borrow |
| 0 | 0 | 0 | 0 |
| 0 | 1 | 1 | 1 |
| 1 | 0 | 1 | 0 |
| 1 | 1 | 0 | 0 |
