SlideShare a Scribd company logo
DIGITAL LOGIC DESIGN
MAGNITUDE COMPARATOR & DECODER
COMPARATOR
The comparison of two numbers is an operation
that determines if one number is greater then, less
then or equal to other numbers.
E.g.
1 < 2, 4 > 3 or 4 = 4.
MAGNITUDE COMPARATOR
A magnitude comparator is a combinational circuit that
compares two numbers, A and B, and determines their
relative magnitudes.
A digital comparator or magnitude comparator is a hardware electronic
device that takes two numbers as input in binary form and determines
whether one number is greater than, less than or equal to the other
number.
Comparators are used in central processing unit’s
(CPUs).
The magnitude comparator comes in the form of an
Integrated Circuit (IC) form.
LOGIC DIAGRAM
Truth Table
APPLICATIONS OF MAGNITUDE COMPARATOR
•These are used in the address decoding circuitry in computers and
microprocessor based devices to select a specific input/output device
for the storage of data.
•Process controllers
•Servo-motor control
DECODERS
• A decoder is combinational circuit that
converts binary information from an input
lines to a maximum of 2n unique output
lines. If the n bit coded information has
unused combinations, the decoder output
will have less then 2 outputs.
• The decoder presented here are called n-to-
m line decoder where m < 2 .
n
n
SOME APPLICATIONS
• Microprocessor memory system: selecting different
banks of
memory.
• Microprocessor I/O: Selecting different devices.
• Memory: Decoding memory addresses (e.g. in ROM).
• In our lab… decoding the binary input to activate the
LED
segments so that the decimal number can be displayed.
TYPES OF DECODERS
• 2 to 4 Decoder
• 3 to 8 Decoder
• 4 to 10 Decoder
2-to-4-line DECODER with Enable
The decoder is enabled when E = 0. The output whose value = 0
represents the minterm is selected by inputs A and B.
The decoder is inactive when E=1 D0………D3 =1
A Decoder with enable input is called a decoder/ Demultiplexer.
Demultiplexer receives information from a single line and directs it
to the output lines.
2-to-4-line DECODER with Enable
Logic diagram
2-to-4-line DECODER with Enable
Logic truth table
3-to-8-line DECODER
3 to 8 line Decoder is also called 7 segment
decoder.
The three inputs are decoded into eight outputs,
each output representing one of the minterm of the
three input variables.
The three inverters provide the complements of
inputs and each one of the eight AND gates
generates one of the minterms.
A three to eight line decoder can be used for
decoding any 3 bit cod to provide 8 outputs one for
each element of the code.
3-to-8-line DECODER
If the input corresponds to minterm mi then the decoder
output i will be the single asserted output.
3-to-8-line DECODER
4-to-10-line DECODER
Another reasonable design decision would be to
make all outputs equal to 0 when an invalid input
combination occurs. This would require ten 4-
inputs AND gates other possibilities may be
considered in any case one should not treat don’t
care condition indiscriminately but should try to
investigate their effect once the circuit is in
operation.
4-to-10-line DECODER
4-to-10-line DECODER

More Related Content

What's hot

What is Gray Code?
What is Gray Code? What is Gray Code?
What is Gray Code?
Mukesh Tekwani
 
Chapter 10: Error Correction and Detection
Chapter 10: Error Correction and DetectionChapter 10: Error Correction and Detection
Chapter 10: Error Correction and Detection
JeoffnaRuth
 
BInary Number Representation
 BInary Number Representation BInary Number Representation
BInary Number Representation
Srikrishna Thota
 
Digital Electronics-Unit II.pdf
Digital Electronics-Unit II.pdfDigital Electronics-Unit II.pdf
Digital Electronics-Unit II.pdf
Kannan Kanagaraj
 
Designing a synchronous binary irregular counter with counting sequence
Designing a synchronous binary irregular counter with counting sequenceDesigning a synchronous binary irregular counter with counting sequence
Designing a synchronous binary irregular counter with counting sequence
Md. Shafaat Jamil Rokon
 
Number System & Logic Gate
Number System & Logic GateNumber System & Logic Gate
Number System & Logic Gate
Ashfakur Rahman
 
K map
K mapK map
UNSIGNED AND SIGNED BINARY DIVISION
UNSIGNED AND SIGNED BINARY DIVISIONUNSIGNED AND SIGNED BINARY DIVISION
UNSIGNED AND SIGNED BINARY DIVISION
ciyamala kushbu
 
COUNTERS(Synchronous & Asynchronous)
COUNTERS(Synchronous & Asynchronous)COUNTERS(Synchronous & Asynchronous)
COUNTERS(Synchronous & Asynchronous)
SUBHA SHREE
 
Counters
CountersCounters
Counters
Randaqra
 
Binary division restoration and non restoration algorithm
Binary division restoration and non restoration algorithmBinary division restoration and non restoration algorithm
Binary division restoration and non restoration algorithm
Prasenjit Dey
 
Quine Mc Cluskey Method
Quine Mc Cluskey MethodQuine Mc Cluskey Method
Quine Mc Cluskey Method
Shahneel Siddiqui
 
Unit 4-booth algorithm
Unit 4-booth algorithmUnit 4-booth algorithm
Unit 4-booth algorithm
vishal choudhary
 
Binary codes
Binary codesBinary codes
Binary codes
Neha Jamini
 
Booths algorithm for Multiplication
Booths algorithm for MultiplicationBooths algorithm for Multiplication
Booths algorithm for Multiplication
Vikas Yadav
 
Karnaugh map (k map)
Karnaugh map (k map)Karnaugh map (k map)
Karnaugh map (k map)
Adeen Ali
 
Encoder
EncoderEncoder
Encoder
SajedAbir
 
K map
K mapK map
Weighted and Non Weighted Codes
Weighted and Non Weighted CodesWeighted and Non Weighted Codes
Weighted and Non Weighted Codes
SubhamSatpathy2
 
Magnitude comparator
Magnitude comparatorMagnitude comparator
Magnitude comparator
Syed Saeed
 

What's hot (20)

What is Gray Code?
What is Gray Code? What is Gray Code?
What is Gray Code?
 
Chapter 10: Error Correction and Detection
Chapter 10: Error Correction and DetectionChapter 10: Error Correction and Detection
Chapter 10: Error Correction and Detection
 
BInary Number Representation
 BInary Number Representation BInary Number Representation
BInary Number Representation
 
Digital Electronics-Unit II.pdf
Digital Electronics-Unit II.pdfDigital Electronics-Unit II.pdf
Digital Electronics-Unit II.pdf
 
Designing a synchronous binary irregular counter with counting sequence
Designing a synchronous binary irregular counter with counting sequenceDesigning a synchronous binary irregular counter with counting sequence
Designing a synchronous binary irregular counter with counting sequence
 
Number System & Logic Gate
Number System & Logic GateNumber System & Logic Gate
Number System & Logic Gate
 
K map
K mapK map
K map
 
UNSIGNED AND SIGNED BINARY DIVISION
UNSIGNED AND SIGNED BINARY DIVISIONUNSIGNED AND SIGNED BINARY DIVISION
UNSIGNED AND SIGNED BINARY DIVISION
 
COUNTERS(Synchronous & Asynchronous)
COUNTERS(Synchronous & Asynchronous)COUNTERS(Synchronous & Asynchronous)
COUNTERS(Synchronous & Asynchronous)
 
Counters
CountersCounters
Counters
 
Binary division restoration and non restoration algorithm
Binary division restoration and non restoration algorithmBinary division restoration and non restoration algorithm
Binary division restoration and non restoration algorithm
 
Quine Mc Cluskey Method
Quine Mc Cluskey MethodQuine Mc Cluskey Method
Quine Mc Cluskey Method
 
Unit 4-booth algorithm
Unit 4-booth algorithmUnit 4-booth algorithm
Unit 4-booth algorithm
 
Binary codes
Binary codesBinary codes
Binary codes
 
Booths algorithm for Multiplication
Booths algorithm for MultiplicationBooths algorithm for Multiplication
Booths algorithm for Multiplication
 
Karnaugh map (k map)
Karnaugh map (k map)Karnaugh map (k map)
Karnaugh map (k map)
 
Encoder
EncoderEncoder
Encoder
 
K map
K mapK map
K map
 
Weighted and Non Weighted Codes
Weighted and Non Weighted CodesWeighted and Non Weighted Codes
Weighted and Non Weighted Codes
 
Magnitude comparator
Magnitude comparatorMagnitude comparator
Magnitude comparator
 

Similar to MAGNITUDE COMPARATOR & DECODER

Decoder encoder
Decoder   encoderDecoder   encoder
Decoder encoder
shahzad ali
 
decorder and encoder and its applications
decorder and encoder and its applicationsdecorder and encoder and its applications
decorder and encoder and its applications
safia safreen
 
Combinational circuits
Combinational circuitsCombinational circuits
Combinational circuits
Nabarun Chakraborty
 
Encoders and decoders
Encoders and decodersEncoders and decoders
Encoders and decoders
Jher Carlson Atasan
 
SESSION 2.ppt
SESSION 2.pptSESSION 2.ppt
SESSION 2.ppt
Saranya S
 
ATT SMK.pptx
ATT SMK.pptxATT SMK.pptx
ATT SMK.pptx
MadhavKarve
 
Combinational circuit
Combinational circuitCombinational circuit
Combinational circuit
sabina deshar
 
DCF-Combinational circuit
DCF-Combinational circuitDCF-Combinational circuit
DCF-Combinational circuit
vinothinisureshbabu
 
DLD Lecture No 22 Decoder Circuit and Types of Decoder.pptx
DLD Lecture No 22 Decoder Circuit and Types of Decoder.pptxDLD Lecture No 22 Decoder Circuit and Types of Decoder.pptx
DLD Lecture No 22 Decoder Circuit and Types of Decoder.pptx
SaveraAyub2
 
B sc3 unit 4 combi..lckt
B sc3 unit 4 combi..lcktB sc3 unit 4 combi..lckt
B sc3 unit 4 combi..lckt
MahiboobAliMulla
 
Types of encoders and decoders with truth tables
Types of encoders and decoders with truth tablesTypes of encoders and decoders with truth tables
Types of encoders and decoders with truth tables
Abdullah khawar
 
Encoders and decoders
Encoders and decodersEncoders and decoders
Encoders and decoders
Gaditek
 
Decoders-Digital Electronics
Decoders-Digital ElectronicsDecoders-Digital Electronics
Decoders-Digital Electronics
Paurav Shah
 
Chapter 4 combinational circuit
Chapter 4 combinational circuit Chapter 4 combinational circuit
Chapter 4 combinational circuit
GulAhmad16
 
FYBSC IT Digital Electronics Unit IV Chapter I Multiplexer, Demultiplexer, AL...
FYBSC IT Digital Electronics Unit IV Chapter I Multiplexer, Demultiplexer, AL...FYBSC IT Digital Electronics Unit IV Chapter I Multiplexer, Demultiplexer, AL...
FYBSC IT Digital Electronics Unit IV Chapter I Multiplexer, Demultiplexer, AL...
Arti Parab Academics
 
STLD-Combinational logic design
STLD-Combinational  logic design STLD-Combinational  logic design
STLD-Combinational logic design
Abhinay Potlabathini
 
Decoders in digital electronics
Decoders in digital electronicsDecoders in digital electronics
Decoders in digital electronics
Easy n Inspire L
 
Lcdf4 chap 03_p2
Lcdf4 chap 03_p2Lcdf4 chap 03_p2
Lcdf4 chap 03_p2
ozgur_can
 
decoders121-170714184489769876987698749.pptx
decoders121-170714184489769876987698749.pptxdecoders121-170714184489769876987698749.pptx
decoders121-170714184489769876987698749.pptx
tlap4412
 

Similar to MAGNITUDE COMPARATOR & DECODER (20)

Decoder encoder
Decoder   encoderDecoder   encoder
Decoder encoder
 
decorder and encoder and its applications
decorder and encoder and its applicationsdecorder and encoder and its applications
decorder and encoder and its applications
 
Combinational circuits
Combinational circuitsCombinational circuits
Combinational circuits
 
Encoders and decoders
Encoders and decodersEncoders and decoders
Encoders and decoders
 
SESSION 2.ppt
SESSION 2.pptSESSION 2.ppt
SESSION 2.ppt
 
ATT SMK.pptx
ATT SMK.pptxATT SMK.pptx
ATT SMK.pptx
 
Combinational circuit
Combinational circuitCombinational circuit
Combinational circuit
 
DCF-Combinational circuit
DCF-Combinational circuitDCF-Combinational circuit
DCF-Combinational circuit
 
DLD Lecture No 22 Decoder Circuit and Types of Decoder.pptx
DLD Lecture No 22 Decoder Circuit and Types of Decoder.pptxDLD Lecture No 22 Decoder Circuit and Types of Decoder.pptx
DLD Lecture No 22 Decoder Circuit and Types of Decoder.pptx
 
B sc3 unit 4 combi..lckt
B sc3 unit 4 combi..lcktB sc3 unit 4 combi..lckt
B sc3 unit 4 combi..lckt
 
Types of encoders and decoders with truth tables
Types of encoders and decoders with truth tablesTypes of encoders and decoders with truth tables
Types of encoders and decoders with truth tables
 
Encoders and decoders
Encoders and decodersEncoders and decoders
Encoders and decoders
 
Decoders-Digital Electronics
Decoders-Digital ElectronicsDecoders-Digital Electronics
Decoders-Digital Electronics
 
Chapter 4 combinational circuit
Chapter 4 combinational circuit Chapter 4 combinational circuit
Chapter 4 combinational circuit
 
11.ppt
11.ppt11.ppt
11.ppt
 
FYBSC IT Digital Electronics Unit IV Chapter I Multiplexer, Demultiplexer, AL...
FYBSC IT Digital Electronics Unit IV Chapter I Multiplexer, Demultiplexer, AL...FYBSC IT Digital Electronics Unit IV Chapter I Multiplexer, Demultiplexer, AL...
FYBSC IT Digital Electronics Unit IV Chapter I Multiplexer, Demultiplexer, AL...
 
STLD-Combinational logic design
STLD-Combinational  logic design STLD-Combinational  logic design
STLD-Combinational logic design
 
Decoders in digital electronics
Decoders in digital electronicsDecoders in digital electronics
Decoders in digital electronics
 
Lcdf4 chap 03_p2
Lcdf4 chap 03_p2Lcdf4 chap 03_p2
Lcdf4 chap 03_p2
 
decoders121-170714184489769876987698749.pptx
decoders121-170714184489769876987698749.pptxdecoders121-170714184489769876987698749.pptx
decoders121-170714184489769876987698749.pptx
 

More from Usama ahmad

Assembly language
Assembly language Assembly language
Assembly language
Usama ahmad
 
Non-Current Assets & Depreciation
Non-Current Assets & DepreciationNon-Current Assets & Depreciation
Non-Current Assets & Depreciation
Usama ahmad
 
MANAGEMENT PROCESS HRM PROCESS
MANAGEMENT PROCESS HRM PROCESSMANAGEMENT PROCESS HRM PROCESS
MANAGEMENT PROCESS HRM PROCESS
Usama ahmad
 
INTERNET AND E-COMMERCE
INTERNET AND E-COMMERCEINTERNET AND E-COMMERCE
INTERNET AND E-COMMERCE
Usama ahmad
 
Introduction to Set Theory
Introduction to Set TheoryIntroduction to Set Theory
Introduction to Set Theory
Usama ahmad
 
Present of Raid and Its Type
Present of Raid and Its TypePresent of Raid and Its Type
Present of Raid and Its Type
Usama ahmad
 
Main Memory
Main MemoryMain Memory
Main Memory
Usama ahmad
 

More from Usama ahmad (7)

Assembly language
Assembly language Assembly language
Assembly language
 
Non-Current Assets & Depreciation
Non-Current Assets & DepreciationNon-Current Assets & Depreciation
Non-Current Assets & Depreciation
 
MANAGEMENT PROCESS HRM PROCESS
MANAGEMENT PROCESS HRM PROCESSMANAGEMENT PROCESS HRM PROCESS
MANAGEMENT PROCESS HRM PROCESS
 
INTERNET AND E-COMMERCE
INTERNET AND E-COMMERCEINTERNET AND E-COMMERCE
INTERNET AND E-COMMERCE
 
Introduction to Set Theory
Introduction to Set TheoryIntroduction to Set Theory
Introduction to Set Theory
 
Present of Raid and Its Type
Present of Raid and Its TypePresent of Raid and Its Type
Present of Raid and Its Type
 
Main Memory
Main MemoryMain Memory
Main Memory
 

Recently uploaded

How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...
Jisc
 
The approach at University of Liverpool.pptx
The approach at University of Liverpool.pptxThe approach at University of Liverpool.pptx
The approach at University of Liverpool.pptx
Jisc
 
Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345
beazzy04
 
678020731-Sumas-y-Restas-Para-Colorear.pdf
678020731-Sumas-y-Restas-Para-Colorear.pdf678020731-Sumas-y-Restas-Para-Colorear.pdf
678020731-Sumas-y-Restas-Para-Colorear.pdf
CarlosHernanMontoyab2
 
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
EugeneSaldivar
 
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXXPhrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
MIRIAMSALINAS13
 
Guidance_and_Counselling.pdf B.Ed. 4th Semester
Guidance_and_Counselling.pdf B.Ed. 4th SemesterGuidance_and_Counselling.pdf B.Ed. 4th Semester
Guidance_and_Counselling.pdf B.Ed. 4th Semester
Atul Kumar Singh
 
Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.
Ashokrao Mane college of Pharmacy Peth-Vadgaon
 
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
MysoreMuleSoftMeetup
 
Introduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp NetworkIntroduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp Network
TechSoup
 
The geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideasThe geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideas
GeoBlogs
 
special B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdfspecial B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdf
Special education needs
 
Embracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic ImperativeEmbracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic Imperative
Peter Windle
 
Acetabularia Information For Class 9 .docx
Acetabularia Information For Class 9  .docxAcetabularia Information For Class 9  .docx
Acetabularia Information For Class 9 .docx
vaibhavrinwa19
 
The Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official PublicationThe Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official Publication
Delapenabediema
 
The Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptxThe Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptx
DhatriParmar
 
Chapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptxChapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptx
Mohd Adib Abd Muin, Senior Lecturer at Universiti Utara Malaysia
 
Supporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptxSupporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptx
Jisc
 
A Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in EducationA Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in Education
Peter Windle
 
The Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdfThe Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdf
kaushalkr1407
 

Recently uploaded (20)

How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...
 
The approach at University of Liverpool.pptx
The approach at University of Liverpool.pptxThe approach at University of Liverpool.pptx
The approach at University of Liverpool.pptx
 
Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345
 
678020731-Sumas-y-Restas-Para-Colorear.pdf
678020731-Sumas-y-Restas-Para-Colorear.pdf678020731-Sumas-y-Restas-Para-Colorear.pdf
678020731-Sumas-y-Restas-Para-Colorear.pdf
 
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
 
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXXPhrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
 
Guidance_and_Counselling.pdf B.Ed. 4th Semester
Guidance_and_Counselling.pdf B.Ed. 4th SemesterGuidance_and_Counselling.pdf B.Ed. 4th Semester
Guidance_and_Counselling.pdf B.Ed. 4th Semester
 
Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.
 
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
 
Introduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp NetworkIntroduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp Network
 
The geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideasThe geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideas
 
special B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdfspecial B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdf
 
Embracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic ImperativeEmbracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic Imperative
 
Acetabularia Information For Class 9 .docx
Acetabularia Information For Class 9  .docxAcetabularia Information For Class 9  .docx
Acetabularia Information For Class 9 .docx
 
The Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official PublicationThe Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official Publication
 
The Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptxThe Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptx
 
Chapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptxChapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptx
 
Supporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptxSupporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptx
 
A Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in EducationA Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in Education
 
The Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdfThe Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdf
 

MAGNITUDE COMPARATOR & DECODER

  • 1. DIGITAL LOGIC DESIGN MAGNITUDE COMPARATOR & DECODER
  • 2. COMPARATOR The comparison of two numbers is an operation that determines if one number is greater then, less then or equal to other numbers. E.g. 1 < 2, 4 > 3 or 4 = 4. MAGNITUDE COMPARATOR A magnitude comparator is a combinational circuit that compares two numbers, A and B, and determines their relative magnitudes.
  • 3. A digital comparator or magnitude comparator is a hardware electronic device that takes two numbers as input in binary form and determines whether one number is greater than, less than or equal to the other number. Comparators are used in central processing unit’s (CPUs). The magnitude comparator comes in the form of an Integrated Circuit (IC) form.
  • 5. APPLICATIONS OF MAGNITUDE COMPARATOR •These are used in the address decoding circuitry in computers and microprocessor based devices to select a specific input/output device for the storage of data. •Process controllers •Servo-motor control
  • 6. DECODERS • A decoder is combinational circuit that converts binary information from an input lines to a maximum of 2n unique output lines. If the n bit coded information has unused combinations, the decoder output will have less then 2 outputs. • The decoder presented here are called n-to- m line decoder where m < 2 . n n
  • 7. SOME APPLICATIONS • Microprocessor memory system: selecting different banks of memory. • Microprocessor I/O: Selecting different devices. • Memory: Decoding memory addresses (e.g. in ROM). • In our lab… decoding the binary input to activate the LED segments so that the decimal number can be displayed.
  • 8. TYPES OF DECODERS • 2 to 4 Decoder • 3 to 8 Decoder • 4 to 10 Decoder
  • 9. 2-to-4-line DECODER with Enable The decoder is enabled when E = 0. The output whose value = 0 represents the minterm is selected by inputs A and B. The decoder is inactive when E=1 D0………D3 =1 A Decoder with enable input is called a decoder/ Demultiplexer. Demultiplexer receives information from a single line and directs it to the output lines.
  • 10. 2-to-4-line DECODER with Enable Logic diagram
  • 11. 2-to-4-line DECODER with Enable Logic truth table
  • 12. 3-to-8-line DECODER 3 to 8 line Decoder is also called 7 segment decoder. The three inputs are decoded into eight outputs, each output representing one of the minterm of the three input variables. The three inverters provide the complements of inputs and each one of the eight AND gates generates one of the minterms. A three to eight line decoder can be used for decoding any 3 bit cod to provide 8 outputs one for each element of the code.
  • 14. If the input corresponds to minterm mi then the decoder output i will be the single asserted output. 3-to-8-line DECODER
  • 15. 4-to-10-line DECODER Another reasonable design decision would be to make all outputs equal to 0 when an invalid input combination occurs. This would require ten 4- inputs AND gates other possibilities may be considered in any case one should not treat don’t care condition indiscriminately but should try to investigate their effect once the circuit is in operation.