Magnitude
Comparator
Indigital system,comparison oftwonumbers isanarithmetic
operationthatdeterminesifonenumber
isgreaterthan,equalto,orlessthantheothernumber[1].Socomparatorisusedforthispu
rpose.Magnitude
Comparatorisacombinationalcircuitthatcomparestwonumbers,AandB,anddetermi
nestheirrelative
magnitudes.Theoutcomeofcomparisonisspecifiedbythreebinaryvariablesthatindic
atewhether
A>B,A=B,orA<B.
Figure1.BlockDiagramofn-BitMagnitudeComparator
Thecircuit,forcomparingtwon-
Bitnumbers,has2ninputs&22nentriesinthetruthtable,for2-Bit numbers,4-
inputs&16-rowsinthetruthtable,similarly,for3-Bitnumbers6-inputs&64-
rowsinthetruth table[2].
Thelogicstyleusedinlogicgatesbasicallyinfluencesthespeed,size,powerdissi
pation,andthe
wiringcomplexityofacircuit.Circuitsizedependsonthenumberoftransistorsandtheir
sizesandonthe
wiringcomplexity.Thewiringcomplexityisdeterminedbythenumberofconnections
andtheirlengths.All thesecharacteristics
mayvaryconsiderablyfromonelogicstyletoanother andthus properchoice
oflogicstyle isveryimportantforcircuitperformance.
2-BITMAGNITUDECOMPARATOR
2-BitMagnitudeComparatorComparestwo
numberseachhavingtwobits(A1,A0&B1,B0).
Forthisarrangementtruthtable[5] has4 inputs&16entries asin Table1.
Table1.TruthTableof2-BitMagnitudeComparator
INPUT OUTPUT
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
0 1 0 1 0 1 0
0 1 1 0 0 0 1
0 1 1 1 0 0 1
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
Karnaugh Mapping
K-MapisusedtominimizeBooleanfunctionobtainedfromtruthtable.
ForA>B
A>B:=A1B1‟ +A0B0‟ A1‟ B1‟ +A0B0‟ A1B1
= A1B1‟ +A0B0‟ (A1‟ B1‟ +A1B1)
= A1B1‟ +A0B0‟ X1
ForA=B
A=B:=A1‟ A0‟ B1‟ B0‟ +A1‟ A0B1‟ B0+A1A0‟ B1B0‟ +A1A0B1B0
= (A1‟ B1‟ +A1B1)(A0‟ B0‟ +A0B0)
= X1X0
ForA<B
A<B:=A1‟ B1+A0‟ B0A1‟ B1‟ +A0‟ B0A1B1
= A1‟ B1+A0‟ B0(A1‟ B1‟ +A1B1)
= A1‟ B1+A0‟ B0X1
Logic Diagram
Accordingtologicfunctionobtainedfromtruthtable,logicdiagramisdrawnasinFig.2:
Figure2.LogicDiagramof2-BitMagnitudeComparator

More Related Content

DOCX
Two step optimization approach for the design of multiplierless linear-phase ...
PDF
Finite Size Effects on barabasy Albert Model
PDF
Layout Design Analysis of CMOS Comparator using 180nm Technology
PPT
Lut optimization for memory based computation
PDF
Design & Implementation of LUT Based Multiplier Using APCOMS Technique
PDF
Advanced Techniques for Mobile Robotics
PDF
37 9144 new technique based peasant multiplication (edit lafi)
PDF
NTCIR-15 www-3 kasys poster
Two step optimization approach for the design of multiplierless linear-phase ...
Finite Size Effects on barabasy Albert Model
Layout Design Analysis of CMOS Comparator using 180nm Technology
Lut optimization for memory based computation
Design & Implementation of LUT Based Multiplier Using APCOMS Technique
Advanced Techniques for Mobile Robotics
37 9144 new technique based peasant multiplication (edit lafi)
NTCIR-15 www-3 kasys poster

Viewers also liked (20)

DOC
Digital Comprator
PDF
Comparators
PPT
Binary code decimal Adder
PPTX
Binary parallel adder
PPTX
Adder Presentation
PPSX
2-bit comparator
PPTX
4-bit camparator
PPT
Decimal Floating Point Adder
PPTX
Bcd adder
PPT
Parallel adder
PDF
Chapter 4 comparators
PPT
WiMAX (IEEE 802.16)
PDF
Hw1 solution
PPTX
Difference between combinational and
PDF
Digital 4-bit Comprator
PPTX
Different Types Comparators And It's Working
PPTX
Combinational Circuits & Sequential Circuits
PDF
Comparator
PPTX
Adder ppt
Digital Comprator
Comparators
Binary code decimal Adder
Binary parallel adder
Adder Presentation
2-bit comparator
4-bit camparator
Decimal Floating Point Adder
Bcd adder
Parallel adder
Chapter 4 comparators
WiMAX (IEEE 802.16)
Hw1 solution
Difference between combinational and
Digital 4-bit Comprator
Different Types Comparators And It's Working
Combinational Circuits & Sequential Circuits
Comparator
Adder ppt
Ad

Similar to Magnitude comparator (20)

PDF
Performance Analysis of Full Adder Based 2- Bit Comparator using Different De...
PDF
Id21
PDF
PDF
A_law_and_Microlaw_companding
PDF
Analysis of signal transition
PDF
ANALYSIS OF SIGNAL TRANSITION ACTIVITY IN FIR FILTERS IMPLEMENTED BY PARALLEL...
PPT
Decoder encoder
PDF
MDCT audio coding with pulse vector quantizers
PDF
High speed tree-based 64-bit cmos binary comparator
PDF
A high speed tree-based 64-bit cmos binary comparator
PDF
Comparative Study of Low Power Low Area Bypass Multipliers for Signal Process...
PDF
Cross-Talk Control with Analog In-Memory-Compute for Artificial Intelligence ...
PDF
Ie3614221424
PDF
An efficient reconfigurable code rate cooperative low-density parity check co...
PDF
Efficient implementation of 2 bit magnitude comparator using pt
PDF
Reducing Power Consumption during Test Application by Test Vector Ordering
PDF
IJCER (www.ijceronline.com) International Journal of computational Engineerin...
DOCX
Alternating optimization algorithms for power adjustment and receive filter d...
PPT
Chapter1 slide
PDF
Power rotational interleaver on an idma system
Performance Analysis of Full Adder Based 2- Bit Comparator using Different De...
Id21
A_law_and_Microlaw_companding
Analysis of signal transition
ANALYSIS OF SIGNAL TRANSITION ACTIVITY IN FIR FILTERS IMPLEMENTED BY PARALLEL...
Decoder encoder
MDCT audio coding with pulse vector quantizers
High speed tree-based 64-bit cmos binary comparator
A high speed tree-based 64-bit cmos binary comparator
Comparative Study of Low Power Low Area Bypass Multipliers for Signal Process...
Cross-Talk Control with Analog In-Memory-Compute for Artificial Intelligence ...
Ie3614221424
An efficient reconfigurable code rate cooperative low-density parity check co...
Efficient implementation of 2 bit magnitude comparator using pt
Reducing Power Consumption during Test Application by Test Vector Ordering
IJCER (www.ijceronline.com) International Journal of computational Engineerin...
Alternating optimization algorithms for power adjustment and receive filter d...
Chapter1 slide
Power rotational interleaver on an idma system
Ad

Recently uploaded (20)

PDF
DASA ADMISSION 2024_FirstRound_FirstRank_LastRank.pdf
PDF
Univ-Connecticut-ChatGPT-Presentaion.pdf
PDF
STKI Israel Market Study 2025 version august
PPT
Module 1.ppt Iot fundamentals and Architecture
PDF
WOOl fibre morphology and structure.pdf for textiles
PDF
Five Habits of High-Impact Board Members
PDF
Microsoft Solutions Partner Drive Digital Transformation with D365.pdf
PDF
Developing a website for English-speaking practice to English as a foreign la...
PPTX
The various Industrial Revolutions .pptx
PDF
Assigned Numbers - 2025 - Bluetooth® Document
PDF
Getting started with AI Agents and Multi-Agent Systems
PDF
Taming the Chaos: How to Turn Unstructured Data into Decisions
PPTX
Group 1 Presentation -Planning and Decision Making .pptx
PPTX
Tartificialntelligence_presentation.pptx
PDF
Hindi spoken digit analysis for native and non-native speakers
PDF
CloudStack 4.21: First Look Webinar slides
PPTX
Final SEM Unit 1 for mit wpu at pune .pptx
PPT
Geologic Time for studying geology for geologist
PDF
1 - Historical Antecedents, Social Consideration.pdf
PDF
Enhancing emotion recognition model for a student engagement use case through...
DASA ADMISSION 2024_FirstRound_FirstRank_LastRank.pdf
Univ-Connecticut-ChatGPT-Presentaion.pdf
STKI Israel Market Study 2025 version august
Module 1.ppt Iot fundamentals and Architecture
WOOl fibre morphology and structure.pdf for textiles
Five Habits of High-Impact Board Members
Microsoft Solutions Partner Drive Digital Transformation with D365.pdf
Developing a website for English-speaking practice to English as a foreign la...
The various Industrial Revolutions .pptx
Assigned Numbers - 2025 - Bluetooth® Document
Getting started with AI Agents and Multi-Agent Systems
Taming the Chaos: How to Turn Unstructured Data into Decisions
Group 1 Presentation -Planning and Decision Making .pptx
Tartificialntelligence_presentation.pptx
Hindi spoken digit analysis for native and non-native speakers
CloudStack 4.21: First Look Webinar slides
Final SEM Unit 1 for mit wpu at pune .pptx
Geologic Time for studying geology for geologist
1 - Historical Antecedents, Social Consideration.pdf
Enhancing emotion recognition model for a student engagement use case through...

Magnitude comparator

  • 1. Magnitude Comparator Indigital system,comparison oftwonumbers isanarithmetic operationthatdeterminesifonenumber isgreaterthan,equalto,orlessthantheothernumber[1].Socomparatorisusedforthispu rpose.Magnitude Comparatorisacombinationalcircuitthatcomparestwonumbers,AandB,anddetermi nestheirrelative magnitudes.Theoutcomeofcomparisonisspecifiedbythreebinaryvariablesthatindic atewhether A>B,A=B,orA<B. Figure1.BlockDiagramofn-BitMagnitudeComparator Thecircuit,forcomparingtwon- Bitnumbers,has2ninputs&22nentriesinthetruthtable,for2-Bit numbers,4- inputs&16-rowsinthetruthtable,similarly,for3-Bitnumbers6-inputs&64- rowsinthetruth table[2]. Thelogicstyleusedinlogicgatesbasicallyinfluencesthespeed,size,powerdissi pation,andthe wiringcomplexityofacircuit.Circuitsizedependsonthenumberoftransistorsandtheir sizesandonthe wiringcomplexity.Thewiringcomplexityisdeterminedbythenumberofconnections andtheirlengths.All thesecharacteristics
  • 2. mayvaryconsiderablyfromonelogicstyletoanother andthus properchoice oflogicstyle isveryimportantforcircuitperformance. 2-BITMAGNITUDECOMPARATOR 2-BitMagnitudeComparatorComparestwo numberseachhavingtwobits(A1,A0&B1,B0). Forthisarrangementtruthtable[5] has4 inputs&16entries asin Table1. Table1.TruthTableof2-BitMagnitudeComparator INPUT OUTPUT 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 0 1 0 1 0 1 0 0 1 1 0 0 0 1 0 1 1 1 0 0 1 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
  • 3. 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 Karnaugh Mapping K-MapisusedtominimizeBooleanfunctionobtainedfromtruthtable. ForA>B A>B:=A1B1‟ +A0B0‟ A1‟ B1‟ +A0B0‟ A1B1 = A1B1‟ +A0B0‟ (A1‟ B1‟ +A1B1) = A1B1‟ +A0B0‟ X1 ForA=B
  • 4. A=B:=A1‟ A0‟ B1‟ B0‟ +A1‟ A0B1‟ B0+A1A0‟ B1B0‟ +A1A0B1B0 = (A1‟ B1‟ +A1B1)(A0‟ B0‟ +A0B0) = X1X0 ForA<B A<B:=A1‟ B1+A0‟ B0A1‟ B1‟ +A0‟ B0A1B1 = A1‟ B1+A0‟ B0(A1‟ B1‟ +A1B1) = A1‟ B1+A0‟ B0X1 Logic Diagram