0
90kviews
Design 3 bit Binary to Gray code converter
1 Answer
written 6.1 years ago by |
Diagram:-
Truth table:-
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