
INTEGRATED CIRCUITS
DATA SH EET
For a complete data sheet, please also download:
•The IC04 LOCMOS HE4000B Logic
Family Specifications HEF, HEC
•The IC04 LOCMOS HE4000B Logic
Package Outlines/Information HEF, HEC
HEF4585B
MSI
4-bit magnitude comparator
Product specification
File under Integrated Circuits, IC04
January 1995

Philips Semiconductors Product specification
4-bit magnitude comparator
DESCRIPTION
The HEF4585B is a 4-bit magnitude comparator which
compares two 4-bit words (A and B), whether they are ‘less
than’, ‘equal to’, or ‘greater than’. Each word has four
parallel inputs (A0to A3and B0to B3); A3and B3being the
most significant inputs. Three outputs are provided;
A greater than B (O
A equal to B (O
I
and I
A < B
A=B
) allow cascading of the devices without
A=B
external gates.
), A less than B (O
A > B
A < B
). Three expander inputs (I
) and
A > B
,
HEF4585B
MSI
For proper compare operation the expander inputs to the
least significant position must be connected as follows:
I
A=B=IA > B
4-bits, units can be cascaded by connecting outputs
O
A<B
significant comparator (input I
HIGH).
Operation is not restricted to binary codes, the devices will
work with any monotonic code. The function table
describes the operation of the device under all possible
logic conditions.
and O
= HIGH, I
to the corresponding inputs of the next
A=B
= LOW. For words greater than
A < B
is connected to a
A>B
Fig.1 Functional diagram.
Fig.2 Pinning diagram.
HEF4585BP(N): 16-lead DIL; plastic (SOT38-1)
HEF4585BD(F): 16-lead DIL; ceramic (cerdip) (SOT74)
HEF4585BT(D): 16-lead SO; plastic (SOT109-1)
( ): Package Designator North America
PINNING
A
to A
0
3
to B
B
0
3
I
, I
A < B
, I
A > B
O
O
O
A>B
A<B
A=B
FAMILY DATA, I
word A parallel inputs
word B parallel inputs
expander inputs
A=B
A greater than B output
A less than B output
A equal to B output
LIMITS category MSI
DD
See Family Specifications
January 1995 2

Philips Semiconductors Product specification
4-bit magnitude comparator
HEF4585B
MSI
Fig.3 Logic diagram.
January 1995 3

Philips Semiconductors Product specification
4-bit magnitude comparator
FUNCTION TABLE
COMPARING INPUTS CASCADING INPUTS OUTPUTS
A3, B
3
A3>B
A
3<B3
A
3=B3
A
3=B3
A
3=B3
A
3=B3
A
3=B3
A
3=B3
A
3=B3
A
3=B3
A
3=B3
A
3=B3
A
3=B3
A2,B
3
XXXHXXHLL
A1, B
2
1
XXXXXX LHL
A2> B
A2<B
A2=B
A2=B
A2=B
A2=B
A2=B
A2=B
A2=B
A2=B
A2=B
2
2
2
2
2
2
2
2
2
2
2
XXHX X H L L
XXXX X L H L
A1>B
1
A1<B
1
A1=B1A0>B
A1=B1A0< B
A1=B1A0=B
A1=B1A0=B
A1=B1A0=B
A1=B1A0=B
A1=B1A0=B
HEF4585B
MSI
A0, B
XHX X H L L
XXX X L H L
I
0
A > B
HX X H L L
0
XX X L H L
0
XLH L L H
0
HL L H L L
0
XH L L H L
0
XHH L H H
0
0
LL L L L L
I
A < B
I
A = B
O
A > B
O
A < B
O
A = B
Notes
1. H = HIGH state (the more positive voltage)
L = LOW state (the less positive voltage)
X = state is immaterial
The upper 11 lines describe the normal operation under all conditions that will occur in a single device or in a serial
expansion scheme.
The lower 2 lines describe the operation under abnormal conditions on the cascading inputs. These conditions occur
when the parallel expansion technique is used.
January 1995 4

Philips Semiconductors Product specification
4-bit magnitude comparator
HEF4585B
MSI
AC CHARACTERISTICS
V
= 0 V; T
SS
Propagation delays
An, Bn→ O
HIGH to LOW 10 t
LOW to HIGH 10 t
In→ O
HIGH to LOW 10 t
LOW to HIGH 10 t
Output transition times 5 60 120 ns 10 ns + (1,0 ns/pF) C
HIGH to LOW 10 t
LOW to HIGH 10 t
=25°C; CL= 50 pF; input transition times ≤ 20 ns
amb
V
DD
V
n
5 160 320 ns 133 ns + (0,55 ns/pF) C
SYMBOL MIN. TYP. MAX.
PHL
15 45 90 ns 37 ns + (0,16 ns/pF) C
5 150 300 ns 123 ns + (0,55 ns/pF) C
PLH
15 45 90 ns 37 ns + (0,16 ns/pF) C
n
5 110 220 ns 83 ns + (0,55 ns/pF) C
PHL
15 30 60 ns 22 ns + (0,16 ns/pF) C
5 120 240 ns 93 ns + (0,55 ns/pF) C
PLH
15 35 70 ns 27 ns + (0,16 ns/pF) C
THL
15 20 40 ns 6 ns + (0,28 ns/pF) C
5 60 120 ns 10 ns + (1,0 ns/pF) C
TLH
15 20 40 ns 6 ns + (0,28 ns/pF) C
TYPICAL EXTRAPOLATION
FORMULA
65 130 ns 54 ns + (0,23 ns/pF) C
60 120 ns 49 ns + (0,23 ns/pF) C
45 90 ns 34 ns + (0,23 ns/pF) C
50 100 ns 39 ns + (0,23 ns/pF) C
30 60 ns 9 ns + (0,42 ns/pF) C
30 60 ns 9 ns + (0,42 ns/pF) C
L
L
L
L
L
L
L
L
L
L
L
L
L
L
L
L
L
L
V
DD
V
Dynamic power 5 1250 f
dissipation per 10 5500 f
package (P) 15 15 000 f
TYPICAL FORMULA FOR P (µW)
+∑(foCL) × V
i
+∑(foCL) × V
i
+∑(foCL) × V
i
APPLICATION INFORMATION
Some examples of applications for the HEF4585B are:
• Process controllers.
• Servo-motor control.
January 1995 5
DD
DD
DD
2
2
2
where
fi= input freq. (MHz)
fo= output freq. (MHz)
C
= load capacitance (pF)
L
∑ (f
) = sum of outputs
oCL
= supply voltage (V)
V
DD

Philips Semiconductors Product specification
4-bit magnitude comparator
HEF4585B
MSI
Fig.4 Example of cascading comparators.
January 1995 6