2.2.2.a universalgatesnandlogicdesign(finished)

advertisement
Activity 2.2.2 Universal Gates:
NAND Only Logic Design
Introduction
The block diagram shown below represents a voting booth monitoring system. For privacy
reasons, a voting booth can only be used if the booth on either side is unoccupied. The
monitoring system has four inputs and two outputs. Whenever a voting booth is occupied, the
corresponding input (A, B, C, & D) is a (1). The first output, Booth, is a (1) whenever a voting
booth is available. The second output, Alarm, is a (1) whenever the privacy rule is violated.
Booth
Booth
Booth
Booth
A
B
C
D
Booth
Voting Booth
Monitoring
System
Alarm
In this activity you will implement NAND only combinational logic circuits for the two outputs
Booth and Alarm. These NAND only designs will be compared with the original AOI
implementations in terms of efficiency and gate/IC utilization. In a future activity, these NAND
only designs will be compared to the circuits implemented using only NOR gates.
Equipment




Circuit Design Software (CDS)
Breadboard (DMS or DLB)
#22 Gauge solid wire
Integrated Circuits (74LS00)
© 2014 Project Lead The Way, Inc.
Digital Electronics Activity 2.2.2 Universal Gates: NAND Only Logic Design – Page 1
Procedure
For the sake of time, the truth table and K-Maps for the voting booth monitor systems have
been completed for you. Note, for the output Booth we took advantage of several don’t care
conditions.
A
B
C
D Booth Alarm
0
0
0
0
1
0
0
0
0
1
1
0
0
0
1
0
1
0
0
0
1
1
X
1
0
1
0
0
1
0
0
1
0
1
0
0
0
1
1
0
X
1
0
1
1
1
X
1
1
0
0
0
1
0
1
0
0
1
0
0
1
0
1
0
0
0
1
0
1
1
X
1
1
1
0
0
X
1
1
1
0
1
X
1
1
1
1
0
X
1
1
1
1
1
X
1
© 2014 Project Lead The Way, Inc.
Digital Electronics Activity 2.2.2 Universal Gates: NAND Only Logic Design – Page 2
1. In the space provided, draw the AOI circuits that implement the simplified logic
expressions Booth and Alarm. Limit this implementation to only 2-input AND gates
(74LS08), 2-input OR gates (74LS32), and inverters (74LS04).
VCC
5V
U1
A
Key = A
U5
NOT
X1
AND2
U2
B
2.5 V
Key = B
NOT
U11
U3
C
Key = C
OR2
NOT
U6
AND2
U4
D
Key = D
NOT
GND
Booth – AOI
VCC
5V
S1
U5
Key = A
AND2
U9
U8
OR2
S2
X1
Key = B
2.5 V
AND2
S3
U10
U7
Key = C
OR2
S4
AND2
Key = D
GND
Alarm – AOI
2. Re-implement these circuits assuming that only 2-input NAND gates (74LS00) are
available. Draw these circuits in the space provided.
VCC
5V
S1
U1
NAND2
U8
U10
NAND2
NAND2
Key = A
X1
S2
U2
U3
2.5 V
NAND2
NAND2
U7
Key = B
S4
U4
U9
NAND2
NAND2
NAND2
U6
U12
U5
NAND2
NAND2
Key = C
S3
NAND2
Key = D
GND
Booth – NAND
© 2014 Project Lead The Way, Inc.
Digital Electronics Activity 2.2.2 Universal Gates: NAND Only Logic Design – Page 3
VCC
5V
S2
Key = A
S1
U1
U6
U10
NAND2
U2
NAND2
U7
NAND2
U9
Key = B
X1
U13
2.5 V
NAND2
NAND2
NAND2
U12
NAND2
S3
Key = C
S4
U3
U4
NAND2
U8
U5
NAND2
NAND2
NAND2
NAND2
Key = D
GND
Alarm – NAND
3. Using the CDS, enter and test the two logic circuits that you designed. Use switches for
the inputs A, B, C, and D and a probe or LED circuit for the outputs Booth and Alarm.
Verify that the circuits are working as expected. Print a copy of the circuit and attach it
below. Note: Even though the two circuits work independently, they are part of one
design and should be simulated, tested, and prototyped together.
U18
VCC
5V
NAND2
U17
U22
NAND2
NAND2
S1
X2
U19
U11
NAND2
NAND2
2.5 V
Key = A
U14
S2
U20
Key = B
S4
U15
NAND2
NAND2
NAND2
U16
U23
U21
NAND2
NAND2
NAND2
Key = C
S3
Key = D
U1
U6
U10
NAND2
U2
NAND2
U7
NAND2
U9
X1
U13
2.5 V
NAND2
GND
NAND2
U12
NAND2
NAND2
U4
U5
NAND2
U8
NAND2
NAND2
NAND2
U3
NAND2
Booth & Alarm – CDS
4. Using the DLB, build and test the NAND logic circuits that you designed and simulated.
Verify that the circuits are working as expected and the results match the results of the
simulation.
© 2014 Project Lead The Way, Inc.
Digital Electronics Activity 2.2.2 Universal Gates: NAND Only Logic Design – Page 4
Conclusion
1. For your AOI implementations, how many ICs (i.e., 74LS04, 74LS08, and 74LS32
chips) were required to implement your circuits? Note: You’re not just counting the
number of gates used, but rather, the number of IC, in whole or part, that were
required.
BOOTH
74LS04- 4/6 IC (4 out of 6 gates in IC)
74LS08- 2/4 IC (2 out of 4 gates in IC)
74LS32- ¼ IC (1 out of 4 gates in IC)
ALARM
74LS04- 0 IC
74LS08- ¾ IC (3 out of 4 gates in IC)
74LS32- 2/4 IC (2 out of 4 gates in IC)
2. For your NAND implementations, how many ICs (i.e., 74LS00 chips) were required to
implement your circuits? Again, we are counting ICs, not gates.
BOOTH
74LS00- 5 ¾ ICs 5 (5 full ICs and 3 out of 4 of an IC)
3. In terms of hardware efficiency, how does the NAND implementation compare to the
AOI implementation?
Using only NAND gates to make all the gates needed would make it easier to make,
and chaper to buy many NAND gates to make all the circuits.
4. NAND gates are available with three inputs (74LS10) and four inputs (74LS20). Could
either of these chips have been used for this design? If so, how would it have affected
the efficiency of the design?
YES, it would have made it need less gates to work and would have made it more efficient.
© 2014 Project Lead The Way, Inc.
Digital Electronics Activity 2.2.2 Universal Gates: NAND Only Logic Design – Page 5
© 2014 Project Lead The Way, Inc.
Digital Electronics Activity 2.2.2 Universal Gates: NAND Only Logic Design – Page 6
Download
Study collections