Design a half-subtractor circuit with inputs x and y and outputs Diff and B out . The circuit
subtracts the bits x – y and places the difference in D and the borrow in B out .
(a) Design a full-subtractor circuit with three inputs x , y , B in and two outputs Diff and
B out . The circuit subtracts x – y – B in , where B in is the input borrow, B out is the output
borrow, and Diff is the difference