0
90kviews
Design 3 bit Binary to Gray code converter
1 Answer
4
11kviews

Diagram:-

enter image description here

Truth table:-

enter image description here

Formulae:-

Let b2 b1 b0 be the 3-bit binary number and g2 g1 g0 be its equivalent gray code.

Then,

g2 = b2

g1 = b2 ⊕ b1

g0 = b1 ⊕ b0

Example:-

If b2 b1 b0 = 1 0 0, then

g2 = b2 = 1

g1 = b2 ⊕ b1 = 1 ⊕ 0 = 1

g0 = b1 ⊕ b0 = 0 ⊕ 0 = 0

Hence, g2 g1 g0 = 1 1 0

Please log in to add an answer.