Lab5 Handout

advertisement
CS3409 Lab 5
Topics: Combinational logic function design, optimization and implementation
Build a circuit to display a decimal digit in a 7-segment component. In
LogicWork, use a hex keyboard to generate an input digit. Because the
digit could be in the range of 0 to F, the 7-segment component should
display “E”rror for any error input that is not a decimal number.
Labels for the LED segments:
SA = a
SB = b
SC = c
SD = d
SE = e
SF = f
SG = g
For example, for input 0 ; a, b, c, d, e, and f will glow and g will not.
T1. Make the truth table for the 7-segment component
The LogicWork provides a 7-segment display component. Find the labels for all segments. Fill in the following truth
table for display a decimal digital or “E”.
I3
0
0
0
0
0
0
0
0
1
1
1
1
1
1
1
1
0
1
2
3
4
5
6
7
8
9
A
B
C
D
E
F
Input
I2
0
0
0
0
1
1
1
1
0
0
0
0
1
1
1
1
I1
0
0
1
1
0
0
1
1
0
0
1
1
0
0
1
1
I0
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
SA
SB
SC
Output
SD
SE
SF
SG
0
1
2
3
4
5
6
7
8
9
E
E
E
E
E
E
T2. Make K-maps.
Based on the truth table, draw the K-map for each segment.
I1,I0
00
SA
I3,I2
01
11
10
00
01
11
10
01
11
10
00
01
11
10
01
11
10
I1,I0
00
01
11
10
I1,I0
00
01
11
10
I1,I0
00
01
11
10
00
01
11
10
SD
00
01
11
10
SF
I3,I2
I1,I0
00
00
01
11
10
SB
I3,I2
I1,I0
00
SG
I3,I2
10
I3,I2
I1,I0
00
SE
I3,I2
11
00
01
11
10
SC
I3,I2
01
00
01
11
10
T3. Find simplified logic functions.
Now, optimize logic functions for the segments based on their K-maps. Write down the optimized functions.
SA=
SB=
SC=
SD=
SE=
SF=
SG=
T4. Build the circuit in LogicWork
Print out your circuit and show 0-9 and “E” to the instructor.
Download