Skip to main content

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 ​…

Consider numbers represented in 4-bit Gray code. Let h3h2h1h0 h_{3}h_{2}h_{1}h_{0}  be the Gray code  representation of a number nn and let g3g2g1g0 g_{3}g_{2}g_{1}g_{0} be the Gray code of (n+1)(modulo16) (n+1)(modulo 16)  value of the number. Which one of the following functions is correct?

  1. A
    g0(h3h2h1h0)=∑(1,2,3,6,10,13,14,15) g_{0}(h_{3}h_{2}h_{1}h_{0})=\sum (1,2,3,6,10,13,14,15)
  2. B
    g1(h3h2h1h0)=∑(4,9,10,11,12,13,14,15) g_{1}(h_{3}h_{2}h_{1}h_{0})=\sum (4, 9,10,11,12,13,14,15)
  3. C
    g2(h3h2h1h0)=∑(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)
    Correct answer
  4. D
    g3(h3h2h1h0)=∑(0,1,6,7,10,11,12,13) g_{3}(h_{3}h_{2}h_{1}h_{0})=\sum (0,1,6,7,10,11,12,13)

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.