Professional Documents
Culture Documents
BS-CS
SEC-3B
M. Hamza Ilyas
Bcsm-f19-397
Truth table:
A B C D Y
0 0 0 0 0000
0 0 0 1 0001
0 0 1 0 0010
0 0 1 1 0011
0 1 0 0 0100
0 1 0 1 0101
0 1 1 0 0110
0 1 1 1 0111
1 0 0 0 1000
1 0 0 1 1001
1 0 1 0 1010
1 0 1 1 1011
1 1 0 0 1100
1 1 0 1 1101
1 1 1 0 1110
1 1 1 1 1111
To get the straight gray coded bits for generating the corresponding gray
coded digit for the given binary digits, add the primary digit or the MSB
digit of binary number toward the second digit & note down the product
next to the primary bit of gray code, and add the next binary bit to third
bit then note down the product next to the 2 nd bit of gray code. Similarly,
follow this procedure until the final binary bit as well as note down the
outcomes depending on EX-OR logic operation to generate the
corresponding gray coded binary digit.