TL/F/6379
54LS85/DM54LS85/DM74LS85 4-Bit Magnitude Comparators
June 1989
54LS85/DM54LS85/DM74LS85
4-Bit Magnitude Comparators
General Description
These 4-bit magnitude comparators perform comparison of
straight binary or BCD codes. Three fully-decoded decisions
about two, 4-bit words (A, B) are made and are externally
available at three outputs. These devices are fully expandable to any number of bits without external gates. Words of
greater length may be compared by connecting comparators in cascade. The A
l
B, AkB, and AeB outputs of a
stage handling less-significant bits are connected to the corresponding inputs of the next stage handling more-significant bits. The stage handling the least-significant bits must
have a high-level voltage applied to the A
e
B input. The
cascading path is implemented with only a two-gate-level
delay to reduce overall comparison times for long words.
Features
Y
Typical power dissipation 52 mW
Y
Typical delay (4-bit words) 24 ns
Y
Alternate Military/Aerospace device (54LS85) is available. Contact a National Semiconductor Sales Office/
Distributor for specifications.
Connection Diagram
Dual-In-Line Package
TL/F/6379– 1
Order Number 54LS85DMQB,
54LS85FMQB, 54LS85LMQB,
DM54LS85J, DM54LS85W,
DM74LS85M or DM74LS85N
See NS Package Number E20A,
J16A, M16A, N16E or W16A
Function Table
Comparing Cascading
Outputs
Inputs Inputs
A3, B3 A2, B2 A1, B1 A0, B0 AlBAkBA
e
BAlBAkBA
e
B
A3lB3 X X X X X X H L L
A3
k
B3 X X X X X X L H L
A3
e
B3 A2lB2 X X X X X H L L
A3
e
B3 A2kB2 X X X X X L H L
A3eB3 A2eB2 A1lB1 X X X X H L L
A3
e
B3 A2eB2 A1kB1 X X X X L H L
A3eB3 A2eB2 A1eB1 A0lB0 X X X H L L
A3
e
B3 A2eB2 A1eB1 A0kB0 X X X L H L
A3
e
B3 A2eB2 A1eB1 A0eB0 H L L H L L
A3
e
B3 A2eB2 A1eB1 A0eB0 L H L L H L
A3
e
B3 A2eB2 A1eB1 A0eB0LLHLLH
A3
e
B3 A2eB2 A1eB1 A0eB0XXHLLH
A3eB3 A2eB2 A1eB1 A0eB0HHLLLL
A3
e
B3 A2eB2 A1eB1 A0eB0LLLHHL
H
e
High Level, LeLow Level, XeDon’t Care
C
1995 National Semiconductor Corporation RRD-B30M105/Printed in U. S. A.