0% found this document useful (0 votes)
212 views

Gray Code

A Gray code converter circuit is designed to drive a seven-segment display. The circuit takes in a 4-bit Gray code on inputs A, B, C, and D and converts it to the corresponding decimal digit output on segments E, F, and G. The circuit needs to be designed using only NAND gates and inverters to minimize the number of components.

Uploaded by

Elma Borja
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
212 views

Gray Code

A Gray code converter circuit is designed to drive a seven-segment display. The circuit takes in a 4-bit Gray code on inputs A, B, C, and D and converts it to the corresponding decimal digit output on segments E, F, and G. The circuit needs to be designed using only NAND gates and inverters to minimize the number of components.

Uploaded by

Elma Borja
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 6

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

You might also like