0% found this document useful (0 votes)
15 views1 page

Assignment 15

Uploaded by

sreejeet17111995
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
15 views1 page

Assignment 15

Uploaded by

sreejeet17111995
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

Gray Code to Binary Conversion

A binary number is a number expressed in the base-2 numeral system or binary numeral
system, a method of mathematical expression which uses only two symbols: typically, "0"
(zero) and "1" (one). Gray code after Frank Gray, is an ordering of the binary numeral
system such that two successive values differ in only one bit.
Boolean expression for conversion of binary to gray code for n-bit:
Bn = Gn
Bn-1 = Bn XOR Gn-1
B0 = B1 XOR G0
Design 6-bit Gray code to Binary converter

Procedure
1. Take 6 input pin and keep it setting unchanged.
2. Take 6 output pin and keep it setting unchanged.
3. Take 5 XOR gate from Gates section and change their numbers of input to ‘2’.
4. Connect all the line as shown in the picture.
Discussion
1. B5 is MSB and B0 is LSB in binary side and G5 is MSB and G0 is LSB in gray code side.
2. When G5 is 0 or 1 then B5 will give same output.
3. When G4 and B5 both are 0 or 1 then B4 is 0.
4. When any one of G4 and B5 is 1 and other one is 0 then B4 will give 1 as output.
5. Similarly, G3 and B4, G2 and B3, etc. will work except the MSB.

You might also like