Академический Документы
Профессиональный Документы
Культура Документы
ECNG 1014
DIGITAL ELECTRONICS
http://myelearning.sta.uwi.edu/course/view.php?id=684
Semester II 2009
1.
GENERAL INFORMATION
Lab #:
Name of the Lab:
2
Combinational Logic using Multiplexers
Lab Weighting:
4%
Delivery mode:
Lecture
Online
Lab
Other
Year 1 Laboratory
Lab Dependencies2
Recommended
prior knowledge
and skills3:
Course Staff
Lucien Ngalamou
Marcus George
Position/Role
Lecturer
Instructor
Estimated total
study hours1:
E-mail
lucien.ngalamou@sta.uwi.tt
marcus.george@sta.uwi.tt
Phone
Office
room 202
room 203
Office
Hours
2.
Upon successful completion of the lab assignment, students will be able to:
1. Use a multiplexer to construct a comparator and a parity generator and test
the circuit.
2. Use an N- input multiplexer to implement a truth table containing 2N
inputs.
3. Troubleshoot a simulated failure in a test circuit.
3.
PRE-LAB
Due Date:
Submission
Procedure:
Estimated time to
completion:
N/A
N/A
1 hour
Cognitive
Level
C, Ap
C, Ap
C
N-input MUX can generate the output function for 2N inputs. To illustrate, we reorganize the
truth table in pairs, as shown in Figure 12-3(a). The inputs labeled A4 and B4 are used to select a
data line. Connected to that line can be a logic 0, 1, 4, or
4.
table, if A4 = 0 and B4 = 1, the D1 input is selected. Since both outputs are the same (in this case
a logic 0), then D1 is connected to a logic O. If the outputs were different, such as in the first and
fourth rows, then the third input variable, 4, would be compared with the output. Either the true
(or NOT) form of that variable then would be selected. The results are shown conceptually in
Figure 12-3(b), which is equivalent to but simpler than the circuit in Figure 12-2(b).
In this experiment you will use an 8:1 MUX to implement a 4-input truth table (with 16
combinations). First you will develop the circuit to implement a special comparator. In the For
Further Investigation section the circuit is modified to make a parity generator for a 4-bit code.
Parity is an extra bit attached to a code to check that the code has been received correctly. Odd
parity means that the number of l's in the code, including the parity bit, is an odd number. Odd or
even parity can be generated with exclusive-OR gates, and parity generators are available in IC
form. However, the implementing of an arbitrary truth table using MUXs is the important
concept.
4.
IN-LAB
The inputs are A2, A1 and B2, B1, representing the two numbers to be compared. Notice
that the A2, A1 and B2 bits are connected to the SELECT inputs of the MUX. The B1 bit
is available to be connected as needed. It is therefore listed in a separate column of the
truth table.
Determine the logic in which the output represents A > B and complete the X column of
truth Table 12-1. The first two entries are completed as an example.
2. Look at the output X, in groups of two. The first pair of entries in X is the complement of the
corresponding entries in B1; therefore, the data should be connected to
1,
line. Complete Table 12-1 by filling in the last column with either 0, 1, B1, or
3. Using the data from Table 12-1, complete the circuit drawing shown as Figure 12-4 in the
report. The X output on the truth table is equivalent to the Y output on the 74151A. From the
manufacturer's data sheet, determine how to connect the STROBE input (labeled
1).
Construct
the circuit and test its operation by checking every possible input. Demonstrate your working
circuit to your instructor.
output will be
B1
A0
2. Can you reverse the procedure of this experiment? That is, given the circuit, can you find the
Boolean expression? The circuit shown in Figure 12-7 uses a 4: 1 MUX. The inputs are
called A2, A1, and Ao. The first term is obtained, by observing that when both select lines are
LOW, A2 is routed to the output; therefore the first minterm is written A2 1 0 Using this as
an example, find the remaining minterms. Show all working. [4 marks]
X = A2
+ ___________________________________________________
3. Assume the circuit shown in Figure 12-4 had the correct output for the first half of the truth
table but had some incorrect outputs for the second half of the truth table. You decide to change
ICs (not necessarily the best choice!) but the problem persists.
a. What is the most likely cause of the problem? [1 mark]
b. How would you test the circuit for your suspected problem? [1 mark]
4. Assume the circuit in Figure 12-4 had a short to ground on the output of the inverter.
a. What effect would this have on the output logic? [1 mark]
5. Assume that the input to the 7404 in Figure 12-4 was open, making the output, 1 a constant
LOW. Which lines on the truth table would give incorrect readings on the output? [2 mark]
6. How can both odd and even parity be obtained from the circuit in Figure 12-5? [1 mark]
5.
POST-LAB
Please write your Name, ID number, and group letter and the data
at the front of the lab script.
Deliverables:
Students are expected to complete the lab scripts for this exercise
and submit at the end of the lab exercise.