Template:Gray code by bit width
Appearance
Lucal code[1][2] | |||||
---|---|---|---|---|---|
5 | 4 | 3 | 2 | 1 | |
Gray code | |||||
4 | 3 | 2 | 1 | ||
0 | 0 |
0 |
0 |
0 |
0
|
1 | 0 |
0 |
0 |
1 |
1
|
2 | 0 |
0 |
1 |
1 |
0
|
3 | 0 |
0 |
1 |
0 |
1
|
4 | 0 |
1 |
1 |
0 |
0
|
5 | 0 |
1 |
1 |
1 |
1
|
6 | 0 |
1 |
0 |
1 |
0
|
7 | 0 |
1 |
0 |
0 |
1
|
8 | 1 |
1 |
0 |
0 |
0
|
9 | 1 |
1 |
0 |
1 |
1
|
10 | 1 |
1 |
1 |
1 |
0
|
11 | 1 |
1 |
1 |
0 |
1
|
12 | 1 |
0 |
1 |
0 |
0
|
13 | 1 |
0 |
1 |
1 |
1
|
14 | 1 |
0 |
0 |
1 |
0
|
15 | 1 |
0 |
0 |
0 |
1
|
References
- ^ Lucal, Harold M. (December 1959). "Arithmetic Operations for Digital Computers Using a Modified Reflected Binary". IRE Transactions on Electronic Computers. EC-8 (4): 449–458. doi:10.1109/TEC.1959.5222057. ISSN 0367-9950. S2CID 206673385. (10 pages)
- ^ Sellers, Jr., Frederick F.; Hsiao, Mu-Yue; Bearnson, Leroy W. (November 1968). Error Detecting Logic for Digital Computers (1st ed.). New York, USA: McGraw-Hill Book Company. pp. 152–164. LCCN 68-16491. OCLC 439460.