Professional Documents
Culture Documents
There are two main types of Digital Comparator available and these are:
1. Identity Comparator – an Identity Comparator is a digital comparator
with only one output terminal for when A = B, either A = B = 1 (HIGH)
or A = B = 0 (LOW)
2. Magnitude Comparator – a Magnitude Comparator is a digital
comparator which has three output terminals, one each for equality, A =
B greater than, A > B and less than A < B
Magnitude Comparator
A combinational circuit that compares value of the two numbers. It can
be used to perform relational operator like <, >, =
A1
A0 A>B
A=B
B1
A<B
B0
A B
A1 A0 B1 B0 A>B A=B A<B
0 0 0 0 0 1 0
0 0 0 1 0 0 1
0 0 1 0 0 0 1
0 0 1 1 0 0 1
0 1 0 0 1 0 0
2bit 0 1 0 1 0 1 0
Magnitude 0 1 1 0 0 0 1
0 1 1 1 0 0 1
Comparator 1 0 0 0 1 0 0
1 0 0 1 1 0 0
1 0 1 0 0 1 0
1 0 1 1 0 0 1
1 1 0 0 1 0 0
1 1 0 1 1 0 0
1 1 1 0 1 0 0
1 1 1 1 0 1 0
CD B1 B0 B1 B0
AB A1 A0 A1 A0
00 01 11 10 00 01 11 10 00 01 11 10
00 0 0 0 0 00 1 0 0 0 00 0 1 1 1
01 1 0 0 0 01 0 1 0 0 01 0 0 1 1
11 1 1 0 1 11 0 0 1 0 11 0 0 0 0
10 1 1 0 0 0 0 0 1 10 0 0 1 0
10
𝐴 > 𝐵 = 𝐴𝐶ҧ + 𝐵 𝐶ҧ 𝐷
ഥ + 𝐴𝐵 𝐷
ഥ 𝐴 = 𝐵 = 𝐴ҧ 𝐵ത 𝐶ҧ 𝐷
ഥ + 𝐴𝐵
ҧ 𝐶𝐷
ҧ + 𝐴𝐵𝐶𝐷 + 𝐴 𝐵𝐶
ത 𝐷ഥ ҧ + 𝐴ҧ 𝐵𝐷
𝐴 < 𝐵 = 𝐴𝐶 ത + 𝐵𝐶𝐷
ത
𝐴 = 𝐵 = 𝐴ҧ𝐶ҧ 𝐵ത 𝐷 ഥ + 𝐵𝐷 + 𝐴𝐶 𝐵𝐷 + 𝐵ത 𝐷
ഥ
𝐴 = 𝐵 = 𝐴⊙𝐵⊙𝐶⊙𝐷
User Defined Comparator
Design a Comparator Circuit for the given expression
ഥ + 𝑩𝑪
𝑭 = 𝑨𝑩 ഥ + 𝑨𝑩𝑪
ഥ > 𝑨
ഥ𝑪ഥ + 𝑩𝑪 + 𝑨𝑩𝑪
ഥ
M N OUTPUT
A B C ഥ
𝑨𝑩 𝑩ഥ
𝑪 ഥ
𝑨𝑩𝑪 ഥഥ
𝑨 𝑪 ഥ
𝑩𝑪 𝑨𝑩𝑪 M N F
0 0 0 0 0 0 1 0 0 0 1 0
0 0 1 0 0 0 0 0 0 0 0 0
0 1 0 0 1 0 1 0 0 1 1 0
0 1 1 0 0 0 0 1 1 0 1 0
1 0 0 1 0 0 0 0 0 1 0 1
1 0 1 1 0 1 0 0 0 1 0 1
1 1 0 0 1 0 0 0 0 1 0 1
1 1 1 0 0 0 0 1 0 0 1 0
BC
A
00 01 11 10
0 0 0 0 0
1 1 0 1
1
𝐹 = 𝐴 𝐵ത + 𝐴𝐶ҧ