Sie sind auf Seite 1von 6

EET 252 Lab #1 - Page 1 Revised 3/27/2012

Name________________________________
EET 252 Lab #1
74181 Arithmetic Logic Unit

Breadboarding Guidelines
Whenever you build a circuit in this course, Ill expect you to follow a set of guidelines posted on
the course website (also at http://people.sinclair.edu/nickreeder/eet131/breadboardingTips.htm.)

Before going any further in this lab, review this set of guidelines. Your grade on this lab (and on
other labs in this course) will depend on how well you follow these guidelines, in addition to
whether or not your circuits work correctly.

Introduction
The 74181 chip is the forerunner of todays microcomputer math coprocessor. This arithmetic
logic unit is an MSI integrated circuit, which can perform 16 arithmetic operations and 16 logic
operations on two 4-bit input numbers. It can also compare the magnitudes of the input numbers.

Procedure
1. The logic symbol for a 74181 is shown below. On the trainers breadboard, wire this chip as
described in the following steps.


2. Connect the chips M input to the trainers switch SW7.

3. Connect the chips S3 through S0 inputs to the trainers switches SW3 through SW0 (in that
order).

4. Hard wire a binary value of 0101
2
into A3-A0 and a value of 0011
2
into B3-B0. (Were
hardwiring these inputs because the trainer doesnt have enough switches to accommodate all
of the inputs.)


EET 252 Lab #1 - Page 2 Revised 3/27/2012
5. Connect the four outputs F3-F0 to the trainers LEDs 3 through 0 (in that order).

6. Connect Carry to LED 4 and A=B to LED 7.

7. Also wire the resistors shown in the figure above; and of course, provide the chip with power
and ground.

Testing the Logic Functions:
8. Use Figure 2 and Table 2 in the chips datasheet to predict the outputs F3-F0 for the inputs
shown below if the chip is in logic mode (with input M set HIGH). Record your predictions
in the Predicted column of the table.

9. In your breadboarded circuit, set the M bit HIGH to put the chip in logic mode. Go through
all of the possible combinations of inputs S3-S0 and record the chips outputs in the
Measured column of the table.

Instruction Select

Outputs with M = 1 (Logic mode) and A = 0101
2
and B = 0011
2


Predicted Measured
S3 S2 S1 S0 F3 F2 F1 F0 F3 F2 F1 F0
0 0 0 0
0 0 0 1
0 0 1 0
0 0 1 1
0 1 0 0
0 1 0 1
0 1 1 0
0 1 1 1
1 0 0 0
1 0 0 1
1 0 1 0
1 0 1 1
1 1 0 0
1 1 0 1
1 1 1 0
1 1 1 1



Circuit Check:
When youre confident that your table above is correct, and that you understand how the 74181
chip works in logic mode, call me over to check your circuit.
________________



EET 252 Lab #1 - Page 3 Revised 3/27/2012
Testing the Arithmetic Functions:
10. Use Figure 2 and Table 2 in the chips datasheet to predict the outputs F3-F0 for the
inputs shown below if the chip is in arithmetic mode (with M set LOW). Record
your predictions in the Predicted column of the table.

11. On the breadboard, set the M bit LOW to put the chip in arithmetic mode. Go
through all of the possible combinations of inputs S3-S0 and record the chips outputs
in the Measured column of the table.

Instruction Select

Outputs with M = 0 (Arithmetic mode) and A = 0101
2
and B = 0011
2


Predicted Measured
S3 S2 S1 S0 F3 F2 F1 F0
4 + n C
F3 F2 F1 F0
0 0 0 0
0 0 0 1
0 0 1 0
0 0 1 1
0 1 0 0
0 1 0 1
0 1 1 0
0 1 1 1
1 0 0 0
1 0 0 1
1 0 1 0
1 0 1 1
1 1 0 0
1 1 0 1
1 1 1 0
1 1 1 1



Circuit Check:
When youre confident that your table above is correct, and that you understand how the
74181 chip works in arithmetic mode, call me over to check your circuit.
________________

Youre finished with this circuit and can take it apart. For the rest of the lab youll use
Multisim instead of the breadboard.


EET 252 Lab #1 - Page 4 Revised 3/27/2012
Testing the Comparison Function:
12. According to the second page of the chips datasheet, how should you set inputs M,
S3-S0, and C
n
if you want to perform comparisons? Write your answer below.

M =___ S3-S0 =___________ C
n
=___

13. Based on the datasheets explanation, predict the outputs A=B and 4 + n C

for the inputs
shown below if the chip is set to perform comparisons. Record your predictions in
the Predicted column of the table.

14. In Multisim, connect four switches to a 74181s A3-A0 inputs and four switches to its
B3-B0 inputs. Hardwire the M, S3-S0, and C
n
inputs to perform comparisons. Also
connect a probe to the A=B output and another probe to the 4 + n C output. Run the
simulation and compare the pairs of numbers listed below, recording your results in
the Measured (Multisim) column of the table.

A3-A0
inputs
B3-B0
inputs
Predicted Measured (Multisim)
A=B
4 + n C
A=B
4 + n C
0010 0010

0011 0100

1010 1001

1010 1010



Circuit Check:
When youre confident that your table above is correct, and that you understand how the
74181 chip works when set to perform comparisons, call me over to check your Multisim
circuit.
________________



Multisim Troubleshooting:
On the course website, in the Unit 1 folder, is a Multisim file, lab1_ALU_tshoot.ms10,
that contains a 74181. After downloading this file, open it in Multisim and troubleshoot
the 74181 by connecting switches to its input pins and probes to its output pins.

In addition to saying below whether a fault exists, also turn in a printout showing your circuit
with switches and probes added for troubleshooting.

Is there a fault? (Yes or no?) ______________

If there is a fault, list the faulty pins number and name.__________________


EET 252 Lab #1 - Page 5 Revised 3/27/2012

End-of-Lab Checklist:
Before leaving your lab station, complete the end-of-lab checklist on the next page.

Questions (Attach a page containing your typed answers.)
1. In the circuit on the first page of this lab, what is the purpose of resistor R1?

2. In the circuit on the first page of this lab, what is the purpose of resistor R2?

3. How can the 74181 be used to compare two four-bit numbers? In your own words,
describe how to set the chips inputs to perform a comparison, and how to interpret
the chips outputs.

Lab Report:
Assemble your lab report in the following order. Staple the pages together with one
staple in the upper left corner.
1. Cover sheet.
2. Lab handout with all recorded data and instructor check-offs.
3. Multisim printout from the troubleshooting exercise.
4. Typed answers to the lab questions.
5. Completed end-of-lab checklist.



EET POST-LAB CHECKOUT
To be completed before leaving each lab session. Turn in the completed checklist with your lab report.

NAME _________________________ DATE ________________ BENCH #______
COURSE #______________________ LAB #________
Complete the following tasks and leave your workbench clean, safe, and neat before leaving the
lab for the day.
Check Lab Closeout Activity
All equipment turned OFF.
All lab power supply voltage and current controls set to minimum, including those
on the trainer.
DMM red test leads connected to voltage/resistance ports.
All test leads loosely coiled and stowed. No dangling or tangled leads!
Faulty or defective equipment reported to instructor.
All components/jumpers removed from breadboard and stored properly in drawers,
etc., not left on shelves in parts cabinet.
Floor around your bench clear of dropped parts.
Tools returned to storage box or drawer.
Tool box properly closed and stowed on bench or in drawer.
Instruments moved to back of bench or shelf, leaving clear workspace at the front of
the bench.
Borrowed parts and equipment returned.
Personal items removed from bench: calculators, books, pens, papers, etc.
Flash drive removed from computer.
Trash placed in wastebasket.
Thank you!

Das könnte Ihnen auch gefallen