PROBLEM NO.
1 (odd numbers)
Design a Gray code converter to drive a seven-segment indicator. The four inputs to the converter circuit
(A, B, C, and D in Figure1) represent a decimal digit coded using the Gray code. Assume that only input
combinations representing the digits 0 through 9 can occur as inputs, so that the six unused combinations
are don’t-care terms. Design your circuit using only two-, three-, and four-input NAND gates and inverters.
Try to minimize the numbers of gates and inverters required. The variables A, B, C, and D will be available
from toggle switches.
Decimal Gray Code Binary Code A B C D E F G
0 0 0 0 0 0 0 0 0 0 1 1 1 1 1 1 0
1 0 0 0 1 0 0 0 1 1 0 1 1 0 0 0 0
2 0 0 1 1 0 0 1 0 3 1 1 1 1 0 0 1
3 0 0 1 0 0 0 1 1 2 1 1 0 1 1 0 1
4 0 1 1 0 0 1 0 0 7 1 1 1 0 0 0 0
5 0 1 1 1 0 1 0 1 6 1 0 1 1 1 1 1
6 0 1 0 1 0 1 1 0 4 0 1 1 0 0 1 1
7 0 1 0 0 0 1 1 1 5 1 0 1 1 0 1 1
8 1 1 0 0 1 0 0 0 X
9 1 1 0 1 1 0 0 1 X
10 1 0 1 0 X
11 1 0 1 1 X
12 1 1 0 0 8 1 1 1 1 1 1 1
13 1 1 0 1 9 1 1 1 1 0 1 1
14 1 1 1 0 X
15 1 1 1 1 X