In: Electrical Engineering
You have access two 7-segment decoder outputs from an existing
circuit. These outputs
show the numbers 00 through 15. Build a circuit to convert the two
7-segment displays,
which display decimal, to one 7- segment display, which displays
the correct
hexadecimal number.   
The following chart that details which segments of the display are set ON to generate the ten decimal numerals (0 - 9) and six hexadecimal "letter digits" (A - F) of the hexadecimal number system.
| 
 Segments  | 
||||||||||
| 
 Input  | 
 Input  | 
 Output  | 
 g  | 
 f  | 
 e  | 
 d  | 
 c  | 
 b  | 
 a  | 
 Value on Display  | 
| 
 0  | 
 0x00  | 
 0x3F  | 
 0  | 
 1  | 
 1  | 
 1  | 
 1  | 
 1  | 
 1  | 
 0  | 
| 
 1  | 
 0x01  | 
 0x06  | 
 0  | 
 0  | 
 0  | 
 0  | 
 1  | 
 1  | 
 0  | 
 1  | 
| 
 2  | 
 0x02  | 
 0x5B  | 
 1  | 
 0  | 
 1  | 
 1  | 
 0  | 
 1  | 
 1  | 
 2  | 
| 
 3  | 
 0x03  | 
 0x4F  | 
 1  | 
 0  | 
 0  | 
 1  | 
 1  | 
 1  | 
 1  | 
 3  | 
| 
 4  | 
 0x04  | 
 0x66  | 
 1  | 
 1  | 
 0  | 
 0  | 
 1  | 
 1  | 
 0  | 
 4  | 
| 
 5  | 
 0x05  | 
 0x6D  | 
 1  | 
 1  | 
 0  | 
 1  | 
 1  | 
 0  | 
 1  | 
 5  | 
| 
 6  | 
 0x06  | 
 0x7D  | 
 1  | 
 1  | 
 1  | 
 1  | 
 1  | 
 0  | 
 1  | 
 6  | 
| 
 7  | 
 0x07  | 
 0x07  | 
 0  | 
 0  | 
 0  | 
 0  | 
 1  | 
 1  | 
 1  | 
 7  | 
| 
 8  | 
 0x08  | 
 0x7F  | 
 1  | 
 1  | 
 1  | 
 1  | 
 1  | 
 1  | 
 1  | 
 8  | 
| 
 9  | 
 0x09  | 
 0x67  | 
 1  | 
 1  | 
 0  | 
 0  | 
 1  | 
 1  | 
 1  | 
 9  | 
| 
 10  | 
 0x0A  | 
 0x77  | 
 1  | 
 1  | 
 1  | 
 0  | 
 1  | 
 1  | 
 1  | 
 A  | 
| 
 11  | 
 0x0B  | 
 0x7C  | 
 1  | 
 1  | 
 1  | 
 1  | 
 1  | 
 0  | 
 0  | 
 B  | 
| 
 12  | 
 0x0C  | 
 0x39  | 
 0  | 
 1  | 
 1  | 
 1  | 
 0  | 
 0  | 
 1  | 
 C  | 
| 
 13  | 
 0x0D  | 
 0x5E  | 
 1  | 
 0  | 
 1  | 
 1  | 
 1  | 
 1  | 
 0  | 
 D  | 
| 
 14  | 
 0x0E  | 
 0x79  | 
 1  | 
 1  | 
 1  | 
 1  | 
 0  | 
 0  | 
 1  | 
 E  | 
| 
 15  | 
 0x0F  | 
 0x71  | 
 1  | 
 1  | 
 1  | 
 0  | 
 0  | 
 0  | 
 1  | 
 F  | 




The outputs from Y0 to Y7 are belonged to display the numbers from 0 to 7 and Y8 to Y15 are belonged to display the numbers from 8 to F.