0
\$\begingroup\$

 Question

I'm aware that in Gray code the successive numbers will differ only by one bit. However I'm not able to proceed further.

\$\endgroup\$
6
  • \$\begingroup\$ Can you write the truth table to convert straight binary to gray code? \$\endgroup\$
    – The Photon
    Commented Feb 25, 2017 at 16:51
  • \$\begingroup\$ Yeah, I'm aware of binary to gray conversion. Implementation in terms of XOR gates. \$\endgroup\$
    – Fawaz
    Commented Feb 25, 2017 at 16:53
  • \$\begingroup\$ So, write down the truth table and see which lines are 1's for which output bits. \$\endgroup\$
    – The Photon
    Commented Feb 25, 2017 at 17:01
  • \$\begingroup\$ But the conversion is not from binary to gray. Gray equivalents for number 'n' and 'n+1' is given. Also how to relate h and g functions ? \$\endgroup\$
    – Fawaz
    Commented Feb 25, 2017 at 17:03
  • \$\begingroup\$ So if you have the truth table for input 'n', it's very very easy to make the truth table for input 'n+1'. \$\endgroup\$
    – The Photon
    Commented Feb 25, 2017 at 17:29

1 Answer 1

1
\$\begingroup\$

The question is asking you the value of N where the value of Gx = 1 for N+1.

Map the current state N and Next state N+1 for the 4 bit Gray code

enter image description here

Read off the min term for each next case of Gx = 1

G0 = 0.1.6.7.12.13.10.11
G1 = 1.3.2.6.13.15.14.10
G2 = 2.6.7.5.4.12.13.15
G3 = 4.12.13.15.14.10.11

--> Answer = G2 is correct though they have the terms out of order in the question

\$\endgroup\$
2
  • \$\begingroup\$ Given g() is a function of H, I think you ought to re-sort the table according to H before numbering the minterms. \$\endgroup\$
    – The Photon
    Commented Feb 25, 2017 at 18:53
  • \$\begingroup\$ @ThePhoton. Feel free....it's pure choice. I prefer to work in sequence. \$\endgroup\$ Commented Feb 25, 2017 at 19:26

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.