Consider numbers represented in 4-bit Gray code. Let be the Gray code representation of a number and let be the Gray code of value of the number. Which one of the following functions is correct?
GATE CSE 2006Digital Logic › Number Systems & RepresentationVerified
GATE CSE 2006 PYQ: Consider numbers represented in 4-bit Gray code. Let h 3 h 2 h 1 h 0 h_{3}h_{2}h_{1}h_{0} h 3 h 2 h 1 …
- A
- B
- CCorrect answer
- D
Answer
(C) g 2 ( h 3 h 2 h 1 h 0 ) = ∑ ( 2 , 4 , 5 , 6 , 7 , 12 , 13 , 15 ) g_{2}(h_{3}h_{2}h_{1}h_{0})=\sum (2, 4,5,6,7,12,13,15) g 2 ( h 3 h 2 h 1 h 0 ) = ∑ ( 2 , 4 , 5 , 6 , 7 , 12 , 13 , 15 )
Approach
Construct the 4-bit Gray-code table for n=0..15. For each n, let h = Gray(n) be the input minterm index and g = Gray((n+1) mod 16). Then for each output bit $g_i$, collect the h-values where $g_i = 1$. Match the resulting minterm set with the options.
Only option C correctly identifies the minterm expansion of $g_2$ as a function of the Gray-code inputs $h_3h_2h_1h_0$. The other options attach minterm sets to the wrong output bit.
Reviewed by GateIQ Editorial Team: IIT & IISc Alumni.