ISRO Scientist/Engineer CSE 2020Digital Logic › Boolean Algebra and Combinational Circuits
ISRO Scientist/Engineer CSE 2020 PYQ: If $ABCD$ is a 4-bit binary number, then what is the code generated by the following circuit?
If $ABCD$ is a 4-bit binary number, then what is the code generated by the following circuit?
- ABCD code
- BGray codeCorrect answer
- C8421 code
- DExcess- 3 code
Answer
(B) Gray code
Approach
The circuit is a standard binary-to-Gray code converter. The most significant output bit equals the most significant input bit, and each subsequent output bit is the XOR of the corresponding input bit and the previous input bit. Thus the outputs are W=A, X=A⊕B, Y=B⊕C, Z=C⊕D, which is the Gray code of the 4-bit binary input ABCD.
Reviewed by ISRO IQ Editorial Team.