The SN54/74LS181 is a 4-bit Arithmetic Logic Unit (ALU) which can
perform all the possible 16 logic, operations on two variables and a variety of
arithmetic operations.
• Provides all 16 Logic Operations of Two Variables Exclusive — OR,
Compare, AND, NAND, OR, NOR, Plus Ten other Logic Operations
• Full Lookahead for High Speed Arithmetic Operation on Long Words
• Input Clamp Diodes
CONNECTION DIAGRAM DIP (TOP VIEW)
A
V
CC
1B1A2B2
2423
1234 56
B
0
222120191817
A0S3S2S1S0CnM
NOTE:
The Flatpak version
has the same pinouts
(Connection Diagram) as
the Dual In-Line Package.
A
3
B
3
7
C
G
n+4
16151413
8
9101112
F
0F1F2
F
A=BP
3
GND
SN54/74LS181
4-BIT ARITHMETIC
LOGIC UNIT
LOW POWER SCHOTTKY
J SUFFIX
CERAMIC
24
1
24
1
ORDERING INFORMATION
SN54LSXXXJCeramic
SN74LSXXXNPlastic
CASE 623-05
N SUFFIX
PLASTIC
CASE 649-03
PIN NAMESLOADING (Note a)
HIGH
A0–A3, B0–B
S0–S
3
M
C
n
F
0–F3
A = B
G
P
C
n+4
NOTES:
a. 1 TTL Unit Load (U.L.) = 40 µA HIGH/1.6 mA LOW.
b. The Output LOW drive factor is 2.5 U.L. for Military (54) and 5 U.L. for Commercial (74)
b. T emperature Ranges.
Operand (Active LOW) Inputs
3
Function — Select Inputs
Mode Control Input
Carry Input
Function (Active LOW) Outputs
Comparator Output
Carry Generator (Active LOW)
Output
Carry Propagate (Active LOW)
Output
Carry Output
1.5 U.L.
2.0 U.L.
0.5 U.L.
2.5 U.L.
10 U.L.
Open Collector
10 U.L.
10 U.L.
10 U.L.
LOW
0.75 U.L.
0.25 U.L.
1.25 U.L.
5 (2.5) U.L.
5 (2.5) U.L.
5 (2.5) U.L.
FAST AND LS TTL DAT A
5-1
1.0 U.L.
10 U.L.
5 U.L.
LOGIC SYMBOL
2 1 23 22 21 20 19 18
A0B0A1B1A2B2A3B
C
7
n
M
8
S
6
0
S
5
1
S
4
2
S
3
F
F
3
0
9101113
F
1
VCC = PIN 24
GND = PIN 12
3
C
n+4
A = B
F
2
3
16
14
G
17
P
15
Page 2
LOGIC DIAGRAM
SN54/74LS181
2
738
CnM
A
0
F
0
91116101315
1
B0A
1
F
1
14
F
A = BC
2
212223201819
A
B
2
1
F
3
A
B
3
2
P
n+4
B
3
6
S
0
VCC = PIN 24
GND = PIN 12
= PIN NUMBERS
G
17
5
S
1
4
S
2
S
3
FUNCTIONAL DESCRIPTION
The SN54/74LS181 is a 4-bit high speed parallel Arithmetic
Logic Unit (ALU). Controlled by the four Function Select Inputs
(S0 . . . S3) and the Mode Control Input (M), it can perform all
the 16 possible logic operations or 16 different arithmetic
operations on active HIGH or active LOW operands. The
Function Table lists these operations.
When the Mode Control Input (M) is HIGH, all internal
carries are inhibited and the device performs logic operations
on the individual bits as listed. When the Mode Control Input is
LOW, the carries are enabled and the device performs
arithmetic operations on the two 4-bit words. The device
incorporates full internal carry lookahead and provides for
either ripple carry between devices using the C
output, or
n+4
for carry lookahead between packages using the signals P
(Carry Propagate) and G (Carry Generate), P and G are not
affected by carry in. When speed requirements are not
stringent, the LS181 can be used in a simple ripple carry mode
by connecting the Carry Output (C
) signal to the Carry Input
n+4
(Cn) of the next unit. For high speed operation the LS181 is
used in conjunction with the 9342 or 93S42 carry lookahead
circuit. One carry lookahead package is required for each
group of the four LS181 devices. Carry lookahead can be
provided at various levels and offers high speed capability
over extremely long word lengths.
The A = B output from the LS181 goes HIGH when all four F
outputs are HIGH and can be used to indicate logic
equivalence over four bits when the unit is in the subtract
mode. The A = B output is open collector and can be
wired-AND with other A = B outputs to give a comparison for
more then four bits. The A = B signal can also be used with the
C
signal to indicate A>B and A<B.
n+4
The Function Table lists the arithmetic operations that are
performed without a carry in. An incoming carry adds a one to
each operation. Thus, select code LHHL generates A minus B
minus 1 (2s complement notation) without a carry in and
generates A minus B when a carry is applied. Because
subtraction is actually performed by complementary addition
(1s complement), a carry out means borrow; thus a carry is
generated when there is no underflow and no carry is
generated when there is underflow.
As indicated, the LS181 can be used with either active LOW
inputs producing active LOW outputs or with active HIGH
inputs producing active HIGH outputs. For either case the
table lists the operations that are performed to the operands
labeled inside the logic symbol.
FAST AND LS TTL DATA
5-2
Page 3
SN54/74LS181
FUNCTION TABLE
MODE SELECT
INPUTS
S3S2S1S
LLLLAA minus 1AA
LLLHABAB minus 1A + BA + B
LLHLA + BAB minus 1ABA + B
LLHHLogical 1 minus 1Logical 0 minus 1
LHLLA + BA plus (A + B)ABA plus AB
LHLHBAB plus (A + B)B(A + B) plus AB
LHHLA ⊕B A minus B minus 1A ⊕ BA minus B minus 1
LHHHA + BA + BABAB minus 1
HLLLAB A plus (A + B)A + BA plus AB
HLLHA ⊕B A plus BA ⊕ BA plus B
HLHLBAB plus (A + B)B(A + B) plus AB
HLHHA + BA + BABAB minus 1
HHLLLogical 0 A plus A*Logical 1 A plus A*
HHLHABAB plus AA + B(A + B) plus A
HHHLABAB plus AA + B(A + B) Plus A
HHHHAAAA minus 1
L = LOW Voltage Level
H = HIGH Voltage Level
**Each bit is shifted to the next more significant position
**Arithmetic operations expressed in 2s complement notation
0
ACTIVE LOW INPUTS
& OUTPUTS
LOGIC
(M = H)
ARITHMETIC**
(M = L) (Cn = L)
ACTIVE HIGH INPUTS
& OUTPUTS
LOGIC
(M = H)
ARITHMETIC**
(M = L) (Cn = H)
LOGIC SYMBOLS
ACTIVE LOW OPERANDSACTIVE HIGH OPERANDS
2 1 23 22 21 20 19 18
A0B0A1B1A2B2A3B
C
7
n
M
8
S
6
0
S
5
1
S
4
2
S
3
F
3
9101113
LS181
4 BIT ARITHMETIC
LOGIC UNIT
F
0
1
3
C
n+4
A = B
F
F
2
3
16
14
17
G
15
P
7
8
6
5
4
3
2 1 23 22 21 20 19 18
A0B0A1B1A2B2A3B
C
n
M
S
0
S
1
S
2
S
F
3
0
9101113
LS181
4 BIT ARITHMETIC
LOGIC UNIT
F
1F2
3
C
n+4
A = B
G
P
F
3
16
14
17
15
GUARANTEED OPERATING RANGES
SymbolParameterMinTypMaxUnit
V
T
I
I
V
CC
A
OH
OL
OH
Supply Voltage54
74
Operating Ambient Temperature Range54
74
Output Current — High54, 74–0.4mA
Output Current — Low54
74
Output Voltage — High (A = B only)54, 745.5V
4.5
4.75
–55
0
5.0
5.0
25
25
5.5
5.25
125
70
4.0
8.0
V
°C
mA
FAST AND LS TTL DATA
5-3
Page 4
SN54/74LS181
VILI
LOW Volt
V
pg
VOHOutput HIGH Volt
CC
,
OH
,
INIH
pg
VCCVCC MIN,
I
IH
ppy
I
A
V
MAX
S
1B
DC CHARACTERISTICS OVER OPERATING TEMPERATURE RANGE (unless otherwise specified)
Limits
SymbolParameter
V
IH
V
IK
V
OL
I
OH
I
IH
I
IL
I
OS
CC
Note 1.
With outputs open, ICC is measured for the following conditions:
A. S0 through S3, M, and A inputs are at 4.5 V, all other inputs are grounded.
B. S0 through S3 and M are at 4.5 V, all other inputs are grounded.
Note 2: Not more than one output should be shorted at a time, nor for more than 1 second.
Input HIGH Voltage2.0V
nput
Input Clamp Diode Voltage–0.65–1.5VVCC = MIN, IIN = –18 mA
Output LOW Voltage
Except G and P
Output G54, 740.7VIOL = 16 mA
Output P
Output HIGH Current54, 74100µA
Input HIGH Current
Mode Input
Any A
Any S Input
Cn Input
Mode Input
Any A
Any S Input
Cn Input
Input LOW Current
Mode Input
Any A
Any S Input
Cn Input
Short Circuit Current (Note 2)–20–100mAVCC = MAX
Power Supply Current
age
age
or B Input
or B Input
or B Input
See Note 1A
ee Note
540.7
740.8
542.53.5V
742.73.5V
54, 740.250.4VIOL = 4.0 mA
740.350.5VIOL = 8.0 mA
54
74
5432
7434
5435
7437
MinTypMax
0.6
0.5
20
60
80
100
0.1
0.3
0.4
0.5
–0.4
–1.2
–1.6
–2.0
UnitT est Conditions
Guaranteed Input HIGH Voltage for
All Inputs
Guaranteed Input LOW Voltage for
All Inputs
VCC = MIN, IOH = MAX, VIN = V
or VIL per Truth Table
VIOL = 8.0 mA
VCC = MIN, IOH = MAX, VIN = V
or VIL per Truth Table
µAVCC = MAX, VIN = 2.7 V
mAVCC = MAX, VIN = 7.0 V
mAVCC = MAX, VIN = 0.4 V
m
CC
=
IH
VCC = VCC MIN,
VIN = VIL or V
per Truth Table
IH
IH
FAST AND LS TTL DATA
5-4
Page 5
SN54/74LS181
AC CHARACTERISTICS (T
SymbolParameter
t
PLH
t
PHL
t
PLH
t
PHL
t
PLH
t
PHL
t
PLH
t
PHL
t
PLH
t
PHL
t
PLH
t
PHL
t
PLH
t
PHL
t
PLH
t
PHL
t
PLH
t
PHL
t
PLH
t
PHL
t
PLH
t
PHL
t
PLH
t
PHL
t
PLH
t
PHL
t
PLH
t
PHL
Propagation Delay,
(Cn to C
(Cn to F Outputs)
(A or B Inputs to G Output)
(A or B Inputs to G Output)
(A or B Inputs to P Output)
(A or B Inputs to P Output)
(AX or BX Inputs to FX Output)
(AX or BX Inputs to FX Output)
(AX or BX Inputs to FXH Outputs)
(AX or BX Inputs to FXH Outputs)
(A or B Inputs to F Outputs)
(A or B Inputs to C
(A or B Inputs to C
(A or B Inputs to A = B Output)
n+4
)
= 25°C, VCC = 5.0 V, Pin 12 = GND, CL = 15 pF)
A
Limits
MinTypMax
18
13
17
13
19
15
21
21
20
20
20
22
21
13
21
21
22
26
n+4
n+4
Output)
Output)
25
25
27
27
33
41
UnitTest Conditions
27
20
26
20
29
23
32
32
30
30
30
33
32
20
32
32
38
26
38
38
33
38
38
38
41
41
50
62
M = 0 V, (Sum or Diff Mode)
ns
See Fig. 4 and Tables I and II
M = 0 V, (Sum Mode)
ns
See Fig. 4 and Table I
M = S1 = S2 = 0 V, S0 = S3 = 4.5 V
ns
(Sum Mode) See Fig. 4 and Table I
M = S0 = S3 = 0 V, S1 = S2 = 4.5 V
ns
(Diff Mode) See Fig. 5 and Table II
M = S1 = S2 = 0 V, S0 = S3 = 4.5 V
ns
(Sum Mode) See Fig. 4 and Table I
M = S0 = S3 = 0 V, S1 = S2 = 4.5 V
ns
(Diff Mode) See Fig. 5 and Table II
M = S1 = S2 = 0 V, S0 = S3 = 4.5 V
ns
(Sum Mode) See Fig. 4 and Table I
M = S0 = S3 = 0 V, S1 = S2 = 4.5 V
ns
(Diff Mode) See Fig. 5 and Table II
M = S1 = S2 = 0 V, S0 = S3 = 4.5 V
ns
(Sum Mode) See Fig. 4 and Table I
M = S0 = S3 = 0 V, S1 = S2 = 4.5 V
ns
(Diff Mode) See Fig. 5 and Table II
M = 4.5 V (Logic Mode)
ns
See Fig. 4 and Table III
M = 0 V, S0 = S3 = 4.5 V, S1 = S2 = 0 V
ns
(Sum Mode) See Fig. 6 and Table I
M = 0 V, S0 = S3 = 0 V, S1 = S2 = 4.5 V
ns
(Diff Mode)
M = S0 = S3 = 0 V, S1 = S2 = 4.5 V
RL = 2.0 kΩ
ns
(Diff Mode) See Fig. 5 and Table II
A INPUT
B INPUT
OUTPUT
AC WAVEFORMS
INPUT
1.3 V1.3 V
t
PLH
OUTPUT
t
PHL
1.3 V1.3 V
Figure 4
1.3 V1.3 V
1.3 V1.3 V
OUTPUT
t
PLH
t
PLH
INPUT
1.3 V1.3 V
t
PHL
1.3 V1.3 V
Figure 5Figure 6
FAST AND LS TTL DATA
5-5
t
PHL
1.3 V1.3 V
Page 6
SN54/74LS181
Input
Output
SUM MODE TEST TABLE IFUNCTION INPUTS: S
Other Input
Parameter
t
PLH
t
PHL
t
PLH
t
PHL
t
PLH
t
PHL
t
PLH
t
PHL
t
PLH
t
PHL
t
PLH
t
PHL
t
PLH
t
PHL
t
PLH
t
PHL
t
PLH
t
PHL
t
PLH
t
PHL
t
PLH
t
PHL
Same Bit
Under
Test
A
l
B
l
A
l
B
l
ABNoneNone
BANoneNone
ANoneB
BNoneA
ANoneB
BNoneA
C
n
Apply
4.5 V
B
l
A
l
B
l
A
l
NoneNone
Apply
GND
None
None
NoneC
NoneC
Other Data Inputs
Apply
4.5 V
Remaining
A and B
Remaining
A and B
n
n
Remaining
B
Remaining
B
Remaining
B
Remaining
B
All
A
Remaining
Remaining
Remaining
A and B, C
Remaining
A
Remaining
Remaining
Remaining
Remaining
= S3 = 4.5 V, S1 = S2 = M = 0 V
0
Apply
GND
C
n
C
n
A
and B
A
and B
and B, C
A
, C
n
A
, C
n
A, C
n
A
, C
n
All
B
n
n
Under
Test
F
F
F
l+1
F
l+1
P
P
G
G
C
n+4
C
n+4
Any F
or C
l
l
n+4
FAST AND LS TTL DATA
5-6
Page 7
SN54/74LS181
Input
Output
Input
Output
DIFF MODE TEST TABLE IIFUNCTION INPUTS: S
Other Input
Parameter
t
PLH
t
PHL
t
PLH
t
PHL
t
PLH
t
PHL
t
PLH
t
PHL
t
PLH
t
PHL
t
PLH
t
PHL
t
PLH
t
PHL
t
PLH
t
PHL
t
PLH
t
PHL
t
PLH
t
PHL
t
PLH
t
PHL
t
PLH
t
PHL
t
PLH
t
PHL
Same Bit
Under
Test
ANoneB
BANone
A
l
B
l
ANoneBNone
BANoneNone
ABNoneNone
BNoneANone
ANoneB
BANone
ABNoneNone
BNoneANone
C
n
Apply
4.5 V
NoneB
A
l
NoneNone
Apply
GND
l
None
Other Data Inputs
Apply
4.5 V
Remaining
A
Remaining
A
Remaining
B
, C
n
Remaining
B
, C
n
Remaining
A
Remaining
A
All
A and B
Remaining
Remaining
Remaining
Remaining
Remaining
A and B, C
Remaining
A
Remaining
A
Remaining
A
Remaining
Remaining
Remaining
A
Remaining
A and B, C
= S2 = 4.5 V, S0 = S3 = M = 0 V
1
Apply
GND
B, C
n
B, C
n
A
A
n
and B, C
and Bl, C
and B, C
and B, C
n
n
n
B, C
n
B
, C
n
n
n
NoneC
Under
Test
F
l
F
l
F
l+1
F
l+1
P
P
G
G
A = B
A = B
c
n+4
C
n+4
n+4
LOGIC MODE TEST TABLE III
Under
Parameter
t
PLH
t
PHL
t
PLH
t
PHL
Test
ANoneBNone
BNoneANone
Apply
4.5 V
Other Input
Same Bit
Other Data Inputs
Apply
GND
Apply
4.5 V
FAST AND LS TTL DATA
5-7
Apply
GND
Remaining
A
and B, C
Remaining
A and B, C
Under
Test
n
n
Any F
Any F
Function Inputs
S1 = S2 = M = 4.5 V
S0 = S3 = 0 V
S1 = S2 = M = 4.5 V
S0 = S3 = 0 V
Loading...
+ hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.