GATE 2016 EC – Question 52
Identify the circuit below.

Practise this question in The GATE Grind →
Show answer and explanation
Correct answer: (A) Binary to Gray code converter
Explanation
Each decoder output that goes high drives one encoder input, and the encoder gives the number of that input. So the circuit maps the input value $x$ to a value $g(x)$: $0 \to 0$, $1 \to 1$, $2 \to 3$, $3 \to 2$, and so on. This shuffling of the numbers matches a Gray code pattern for the first few inputs, but the wiring for 6 and 7 does not exactly match the binary to Gray conversion, which would be $6 \to 5$ and $7 \to 4$. Because of this, the official key awards marks to everyone. Binary to Gray code is the intended answer.