Discussion
The following digital circuit acts as a :

Answer: A
The circuit is a half-subtractor.
Reading the gates:
\[ \begin{aligned} X_{out} &= A\bar{B} + \bar{A}B = A \oplus B \\ Y_{out} &= \bar{A}B \end{aligned} \]
For the subtraction A - B of two bits, the difference is \(A \oplus B\) and a borrow is needed only when A = 0 and B = 1, which is \(\bar{A}B\). So \(X_{out}\) is the difference and \(Y_{out}\) the borrow.
A half-adder has the same XOR output but its second output, the carry, is AB, not \(\bar{A}B\). Nothing in the circuit switches between adding and subtracting, so it is neither a half-adder/subtractor nor a 2's complement adder/subtractor.
Post your comment
Please log in or register to post a comment.
Examination Categories
- SSC Exams
- Banking Exams
- Teaching Exams
- Civil Services Exams
- Railways Exams
- Engineering Recruitment Exams
- Defence Exams
- State Government Exams
- Police Exams
- Insurance Exams
- Nursing Exams
- Other Government Exams
- NRA CET
- PG Entrance Exams
- Campus Placement
- MBA Entrance Exams
- CUET and UG Entrance
- Judiciary Exams
- Regulatory Body Exams
- Software Development