Computer Science, asked by rockysk7754, 11 months ago

Grey to binary code converter circuit using gates and explanation

Answers

Answered by karthiknayak11
0

GRAY TO BINARY AND BINARY TO GRAY CODE CONVERSATION.

Binary Numbers is default way to store numbers, but in many applications binary numbers are difficult to use and a variation of binary numbers is needed. This is where Gray codes are very useful.

Gray code has property that two successive numbers differ in only one bit because of this property gray code does the cycling through various states with minimal effort and used in K-maps, error correction, communication etc.

How to generate n bit Gray Codes?

Following is 2-bit sequence (n = 2)

00 01 11 10

Following is 3-bit sequence (n = 3)

000 001 011 010 110 111 101 100

And Following is 4-bit sequence (n = 4)

0000 0001 0011 0010 0110 0111 0101 0100 1100 1101 1111

1110 1010 1011 1001 1000

n-bit Gray Codes can be generated from list of (n-1)-bit Gray codes using following steps.

Let the list of (n-1)-bit Gray codes be L1. Create another list L2 which is reverse of L1.

Modify the list L1 by prefixing a ‘0’ in all codes of L1.

Modify the list L2 by prefixing a ‘1’ in all codes of L2.

Concatenate L1 and L2. The concatenated list is required list of n-bit Gray codes.

Please refer Generate n-bit Gray Codes for detailed program.

❤️HOPE THIS HELP YOU❤️

PLEASED MARK THIS AS BRAINLIEST ❤️

Similar questions