Gray code is an ordering of the binary numbers such that two successive values differ in one bit only. The 4-bit gray code is given in the table below. The Gray code for decimal 15 rolls over to decimal 0 with only one bit change. This is called the "cyclic" property of a Gray code. Design a digital circuit that produces 4-bit Gray code on consecutive clock cycles. You are allowed to use only one 4-bit resettable register, four half adders, and three 2-bit XOR gates. Sketch the circuit schematic of your design by using the symbols given below.
Gray code Decimal Binary Y3:0
0 0000
1 0001
2 0011
3 0010
4 0110
5 0111
6 0101
7 0100
8 1100
9 1101
10 1111
11 1110
12 1010
13 1011
14 1001
15 1000