0% found this document useful (0 votes)
64 views17 pages

Digital Ades

The document discusses the design of 1-bit and 2-bit comparator circuits. A comparator circuit compares two numbers and determines if one is greater than, less than, or equal to the other. The 1-bit comparator uses an OR gate to output if A is greater than B, and an AND gate to output if they are equal. The 2-bit comparator circuit design compares the most and least significant bits and uses OR, AND, and XOR gates to determine the relations between the 2-bit numbers.

Uploaded by

Praveen Kishan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
64 views17 pages

Digital Ades

The document discusses the design of 1-bit and 2-bit comparator circuits. A comparator circuit compares two numbers and determines if one is greater than, less than, or equal to the other. The 1-bit comparator uses an OR gate to output if A is greater than B, and an AND gate to output if they are equal. The 2-bit comparator circuit design compares the most and least significant bits and uses OR, AND, and XOR gates to determine the relations between the 2-bit numbers.

Uploaded by

Praveen Kishan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 17

EED-Digital Electronics Manual

AIM OF THE EXPERIMENT:


Realisation of Design of I bit & 2 bit comparator circuit.
EQUIPMENTS REQUIRED
SI. No. Equipments Quantity
1 IC Traner Kit

2 Patch chords As required

COMPONENTS REQUIRED
SI. No. Components Specification Quantity
1 OR Gate IC 7432

2 NAND Gate IC 7400 2


X-OR Gate IC 7486 1

THEORY:
The comparison of2 numbers is an operation that determines if one number is greater than, less than or
equal to the other numbers. A magnitude comparator is a combinational circuit that compares two
numbers at a time & determines their relative magnitudes. The outcome of the comparison is specified
by three binary variables that indicate where A>B, A = B or A<B. The circuit for comparing two r-bit

numbers has 2" entries in the truth table & becomes too cumbersome even with r =3.
1. Bit comparator
A B A<B A B A>B
0 0 1 0

0 0 0 1

From the table, we observe that

For A B: AB gives the result


A = B: AOB gives the result

A >B: AB givesthe result


EED-Digital Electronics Manual
2. Bit comarator
For designing a 2 bit comparator circuit we have 3 conditions let A = AgAi, B = B,B

i. A = B

(A B) AND (Ao = Bo)


Y = A,B AOB

i. A> B

a. A >Bi or

b. (A B1) AND (A0> Bo)


Y AB + (A,OB) (A,B)
(Referring to above truth table)
ii. A < B

a. A Bi or
b. (A= B1) AND (Ao < Bo)

Y AB, + (A®B,) (AB,)


(Referring to previous truth table)

Bo A>B A B A<B
A Ap B
0
0 0
0 0
0
0 0
0
0
0
0 0
0
0 0
0 0
0
0 0 0
0 0 0 0 0
0 0 0
0 0 0 0
0 0 0
0 0
0 0
0 0
1 0 1 0
EED-Digital Electronics Manual

LOGIC CIRCUIT
I Bit Conmparator:

AB

A
AOAb
AC
AYS

K-Map:
B
B 0 0

o
0

AB:A>B
AOB:A= B
AB A<B

You might also like