No worries! We‘ve got your back. Try BYJU‘S free classes today!
B
When A = 1 and B = 1, Output X = 0 and Y = 1
No worries! We‘ve got your back. Try BYJU‘S free classes today!
C
When A = 0 and B = 1, Output X = 1 and Y = 1
Right on! Give the BNAT exam to get a 100% scholarship for BYJUS courses
D
When A = 0 and B = 0, Output X = 1 and Y = 0
No worries! We‘ve got your back. Try BYJU‘S free classes today!
Open in App
Solution
The correct option is CWhen A = 0 and B = 1, Output X = 1 and Y = 1 X=¯¯¯¯B(A+¯¯¯¯B)+¯¯¯¯A(A+B)=A¯¯¯¯B+¯¯¯¯AB=A⨁BY=B(¯¯¯¯¯¯¯¯AB)=B(¯¯¯¯A+¯¯¯¯B)=¯¯¯¯ABThe above circuit represents a half subractor constructed using only NAND gates.Thus the truth table can be written asABDifference (X)Borrow(Y)0000011110101100