a. design a half-subtractor circuit with inputs x and y and outputsDiff and B out. the circuit subracts the bits x - y and places thedifference in Diff and the borrow in B out.
b. design a full- subtractor circuit with three inputs x,y,B in andtwo outputs Diff and B out. the circuit subtracts x-y-B in , whereBin is the input borrow, B out is the output borrow, and Diff isthe difference