GATE | GATE-CS-2006 | Question 40
Consider numbers represented in 4-bit gray code. Let h3h2h1h0 be the gray code representation of a number n and let g3g2g1g0 be the gray code of (n + 1) (modulo 16) value of the number. Which one of the following functions is correct?
Explanation: Write gray code (n) numbers from 0 to 15 and make another column for (n+1) numbers by shifting the next number on top. As shown in the table:
Now to determine the min terms for g3, g2, g1, g0, we see the ‘1s’ in the corresponding columns. The digit they correspond to give the min terms of the function. Thus the answers we will be:
Thus g2 is given correctly in the options.
Read about K-Maps to know about mapping, SOP and POS forms:
Watch NPTEL videos to learn more about:
This explanation has been contributed by Kriti Kushwaha.
Quiz of this Question
Attention reader! Don’t stop learning now. Practice GATE exam well before the actual exam with the subject-wise and overall quizzes available in GATE Test Series Course.
Learn all GATE CS concepts with Free Live Classes on our youtube channel.