ECE333 - Digital Systems
========================

Four-Bit Binary-to-Gray Code Converter

ABCD = 4-bit binary input
JKLM = 4-bit Gray code output

ABCD : JKLM
----   ----
0000 : 0000
0001 : 0001
0010 : 0011
0011 : 0010
0100 : 0110
0101 : 0111 <-------+
0110 : 0101 <----+  |
0111 : 0100 <-+  |  | (notice reflective symmetry about central row)
1000 : 1100 <-+  |  |
1001 : 1101 <----+  |
1010 : 1111 <-------+
1011 : 1110
1100 : 1010
1101 : 1011
1110 : 1001
1111 : 1000