Sanjivani Rural Education Society’s
Sanjivani College of Engineering, Kopargaon-423 603
(An Autonomous Institute, Affiliated to Savitribai Phule Pune University, Pune)
NACC ‘A’ Grade Accredited, ISO 9001:2015 Certified
Department of Computer Engineering
(NBA Accredited)
Prof. S.A.Shivarkar
Assistant Professor
E-mail : shivarkarsandipcomp@sanjivani.org.in
Contact No: 8275032712
Subject- Digital Electronics and Data Communication
(CO204)
Unit 2- Combinational Logic Design
Multiplexer
• One of the combinational circuit
• Example
• Several input and only one output
• Data on one of the input line is directed to
output line.
• Select lines!!
• It is also called as data selector.
• Fig. shows multiplexer with n input line and one
output line.
• Number of selector lines are m Where n = 2m
• Selector lines select one out of n data sources
and transmitted to single output channel.
DEPARTMENT OF COMPUTER ENGINEERING, Sanjivani COE, Kopargaon 2
4:1 Multiplexer
• 4 input lines I0 to I3
• 2 selector lines S1 and S0
• Y=S1’S0’I0 + S1’S0I1 + S1S0’I2 + S1S0I3
• Similarly We have 8:1 mux, 16:1 mux..
DEPARTMENT OF COMPUTER ENGINEERING, Sanjivani COE, Kopargaon 4
Select Inputs Output
S1 S0 Y
0 0 I0
0 1 I1
1 0 I2
1 1 I3
8:1 Multiplexer
• 8 input lines I0 to I7
• 3 selector lines S2, S1 and S0
• Similarly We have 16:1 mux..
DEPARTMENT OF COMPUTER ENGINEERING, Sanjivani COE, Kopargaon 5
Select Inputs Output
S2 S1 S0 Y
0 0 0 I0
0 0 1 I1
0 1 0 I2
0 1 1 I3
1 0 0 I4
1 0 1 I5
1 1 0 I6
1 1 1 I7
Combinational Circuit Design Using Multiplexer
• Advantages:
• Simplification of logic function is not required.
• Minimize IC package count.
• In order to design combinational circuit using Mux
• Either Truth table should be known
• Or one of the standard form of logical expression must be available.
DEPARTMENT OF COMPUTER ENGINEERING, Sanjivani COE, Kopargaon 6
Combinational Logic Design Using Multiplexer
• Implement following function using
mux.
• F(A,B,C) = ∑m(0,1,4,6)
• Solution
• Mux with 3 select line will be required.
DEPARTMENT OF COMPUTER ENGINEERING, Sanjivani COE, Kopargaon 7
Combinational Logic Design Using Multiplexer
• Implement using Mux
DEPARTMENT OF COMPUTER ENGINEERING, Sanjivani COE, Kopargaon 8
A B C Y
0 0 0 1
0 0 1 1
0 1 0 1
0 1 1 1
1 0 0 0
1 0 1 0
1 1 0 0
1 1 1 1
Multiplexer Tree
DEPARTMENT OF COMPUTER ENGINEERING, Sanjivani COE, Kopargaon 9
IC 74151
• It is 8:1 multiplexer.
• It can be used as universal
function generator to
generate any logic function of
four variable.
• Two outputs are provided one
is complemented and other is
uncomplemented.
DEPARTMENT OF COMPUTER ENGINEERING, Sanjivani COE, Kopargaon 10
Combinational logic design Using 74151
• Implement using mux.
• F(A,B,C) = ∑m(0,1,2,5)
DEPARTMENT OF COMPUTER ENGINEERING, Sanjivani COE, Kopargaon 11
Demultiplexer
• It performs reverse operation of multiplexer.
• Accept single input and distributes it over
several outputs.
• The select line determines to which output
line input data is to be transmitted.
• Fig. shows Demultiplexer with n output line
and one input line.
• Number of selector lines are m.
• Where n = 2m
DEPARTMENT OF COMPUTER ENGINEERING, Sanjivani COE, Kopargaon 12
1:2 Demultiplexer
DEPARTMENT OF COMPUTER ENGINEERING, Sanjivani COE, Kopargaon 13
• 2 output lines
• 1 selector line
• Y0=S’I
• Y1=SI
Output
S (Select) Y0 Y1
0 I 0
1 0 I
1:4 Demultiplexer
DEPARTMENT OF COMPUTER ENGINEERING, Sanjivani COE, Kopargaon 14
• 4 output lines
• 2 selector line
• Logical expression
for output
Select Output
S1 S0 Y0 Y1 Y2 Y3
0 0 I 0 0 0
0 1 0 I 0 0
1 0 0 0 I 0
1 1 0 0 0 I
Combinational logic design Using Demultiplexer
• Demux can also be used to design
combinational circuit.
• Lets design Full subtractor using
demux.
• So D=∑m(1,2,4,7)
• Bout=∑m(1,2,3,7)
• Design on next slide->
DEPARTMENT OF COMPUTER ENGINEERING, Sanjivani COE, Kopargaon 15
Input Output
A B Bin D Bout
0 0 0 0 0
0 0 1 1 1
0 1 0 1 1
0 1 1 0 1
1 0 0 1 0
1 0 1 0 0
1 1 0 0 0
1 1 1 1 1
Combinational logic design Using Demultiplexer
DEPARTMENT OF COMPUTER ENGINEERING, Sanjivani COE, Kopargaon 16
Demultiplexer Tree
DEPARTMENT OF COMPUTER ENGINEERING, Sanjivani COE, Kopargaon 17
Magnitude Comparator
• It compare magnitude of two n bit binary numbers say A and B and
activates one of three outputs A=B, A>B and A<B.
DEPARTMENT OF COMPUTER ENGINEERING, Sanjivani COE, Kopargaon 18
Design 1 bit Comparator
• It will compare two 1 bit number.
19
1 bit Comparator cont..
• Step1:
• Obtain truth table
• Step 2
• From truth table obtain three K
map for 3 output
DEPARTMENT OF COMPUTER ENGINEERING, Sanjivani COE, Kopargaon 20
Inputs Output
A0 B0 Y0 (A=B) Y1(A<B) Y2(A>B)
0 0 1 0 0
0 1 0 1 0
1 0 0 0 1
1 1 1 0 0
1 bit Comparator cont..
• Step 3: Obtain simplified expression from K map.
• Y0=A0’B0’ + A0B0
• Y1=A0’B0
• Y2=A0B0’
DEPARTMENT OF COMPUTER ENGINEERING, Sanjivani COE, Kopargaon 21
Design 2 bit comparator
• It will compare two 2 bit numbers.
DEPARTMENT OF COMPUTER ENGINEERING, Sanjivani COE, Kopargaon 22
2 bit comparator cont..
• Step1:
• Obtain truth table
• Step 2
• From truth table obtain 3 K map for 3 output
• Obtain simplified expression from K map.
Note: Left for self exercise
DEPARTMENT OF COMPUTER ENGINEERING, Sanjivani COE, Kopargaon 23
A1 A0 B1 B0 Y0 (A=B) Y1(A<B) Y2(A>B)
0 0 0 0 1 0 0
0 0 0 1 0 1 0
0 0 1 0 0 1 0
0 0 1 1 0 1 0
0 1 0 0 0 0 1
0 1 0 1 1 0 0
0 1 1 0 0 1 0
0 1 1 1 0 1 0
1 0 0 0 0 0 1
1 0 0 1 0 0 1
1 0 1 0 1 0 0
1 0 1 1 0 1 0
1 1 0 0 0 0 1
1 1 0 1 0 0 1
1 1 1 0 0 0 1
1 1 1 1 1 0 0
IC 7485
• It is used to compare two 4 bit
numbers.
• This 16 pin IC.
• Note that circuit has 3 additional
cascade inputs (Pin 2,3,4).
• They are used to connect more than
one 7485 IC to compare numbers
having more than 4 bits.
• But these input have lower priority.
• They decide output only when 4 bit
input fed to this IC is equal.
DEPARTMENT OF COMPUTER ENGINEERING, Sanjivani COE, Kopargaon 24
IC 7485 cont..
• IF A=0011 and B=0001 then
output (A>B Pin no. 5) will be
high and all other outputs will
be low irrespective of the values
appearing on pin 2,3 and 4.
• When IC 7485 is not used in
cascade mode we keep Pin 2,4
at logic 0 and Pin 3 at logic 1.
DEPARTMENT OF COMPUTER ENGINEERING, Sanjivani COE, Kopargaon 25
IC 7485 cont..
DEPARTMENT OF COMPUTER ENGINEERING, Sanjivani COE, Kopargaon 26
Compare two 8 bit numbers using 7485
Encoder
• Encoders convert single active signal
(out of r inputs) into coded binary, s
bit output. (This is normally referred
to as r line to s line encoder)
DEPARTMENT OF COMPUTER ENGINEERING, Sanjivani COE, Kopargaon 27
Design 4 line to 2 line encoder that take 4 line decimal signal and convert it to binary code
Decimal Binary
D3 D2 D1 D0 A B
0 0 0 1 0 0
0 0 1 0 0 1
0 1 0 0 1 0
1 0 0 0 1 1
DEPARTMENT OF COMPUTER ENGINEERING, Sanjivani COE, Kopargaon 28
Decimal to BCD encoder
DEPARTMENT OF COMPUTER ENGINEERING, Sanjivani COE, Kopargaon 29
• There are ten switches one for each
number from 0 to 9.
• When particular number is to be fed
to the digital circuit in BCD form the
switch corresponding to that number
is pressed.
Priority Encoders
• Often encoders are
called as priority
encoders which means
that more than one of
the r input may be
active, in which case
the output pattern
produced is that for the
highest priority input.
DEPARTMENT OF COMPUTER ENGINEERING, Sanjivani COE, Kopargaon 30
Decoder
• A decode is similar to Demultiplexer with one
exception there is no data input.
• It has n input line and maximum 2n output
line.
• Consider decoder in given figure
• It has control inputs A2,A1,A0
• It is called as 1 of 8 decoder because only 1 of 8
output line is high.
• It is called binary to decimal decoder.
• It has 3 input and 8 output so also called as 3 line
to 8 line decoder.
DEPARTMENT OF COMPUTER ENGINEERING, Sanjivani COE, Kopargaon 31
3 line to 8 line Decoder.
DEPARTMENT OF COMPUTER ENGINEERING, Sanjivani COE, Kopargaon 32
DEPARTMENT OF COMPUTER ENGINEERING, Sanjivani COE, Kopargaon 33

More Related Content

PDF
Bds lab 4
PPT
STLD-Combinational logic design
PDF
Sequential Circuit Design-2.pdf
PPT
Digital Logic Design
PDF
Chapter 5_combinational logic (EEEg4302).pdf
PPTX
Final Video PPT V_05 Final UNIT 3 part 2_DL and COA Programming.pptx
PPTX
Unit 2a combinational circuits
PPTX
Combinational circuit
Bds lab 4
STLD-Combinational logic design
Sequential Circuit Design-2.pdf
Digital Logic Design
Chapter 5_combinational logic (EEEg4302).pdf
Final Video PPT V_05 Final UNIT 3 part 2_DL and COA Programming.pptx
Unit 2a combinational circuits
Combinational circuit

Similar to Combinational Ckt.pdf (20)

PDF
Digital Electronics-Unit II.pdf
PDF
Combinational and sequential logic
PDF
Assignment#4b
PPSX
2-bit comparator
PDF
Analogue & Digital Electronics on Comparators
PPT
ANALYSIS & DESIGN OF COMBINATIONAL LOGIC
PDF
Digital Electronics (EC8392) UNIT-II -PPT-S.SESHA VIDHYA/ ASP/ECE
DOCX
Mini Project 1 - 2-to-4 Decoder with Enable Input E and 4-to-2 Line Priority...
PPTX
Unit-3 PPT_Updated COA.pptx (1).pptx coa
PPTX
lecture_19.pptx
PDF
Adder and Subtractor
PDF
Digital Principles and computer Organisation important 2 mark Questions
PPTX
DCF-Combinational circuit
PDF
Design, Construction and Operation of a 4-Bit Counting Circuit
PDF
K010137378
PPTX
DIGITAL ELECTRONICS :UNIT-II-COMBINATIONAL CIRCUIT DESIGN
PPT
combinational-circuit (1).ppt
PDF
ADDERS IN DIGITAL ELECTRONICS (DE) BY RIZWAN
PDF
Saur lecture 16
Digital Electronics-Unit II.pdf
Combinational and sequential logic
Assignment#4b
2-bit comparator
Analogue & Digital Electronics on Comparators
ANALYSIS & DESIGN OF COMBINATIONAL LOGIC
Digital Electronics (EC8392) UNIT-II -PPT-S.SESHA VIDHYA/ ASP/ECE
Mini Project 1 - 2-to-4 Decoder with Enable Input E and 4-to-2 Line Priority...
Unit-3 PPT_Updated COA.pptx (1).pptx coa
lecture_19.pptx
Adder and Subtractor
Digital Principles and computer Organisation important 2 mark Questions
DCF-Combinational circuit
Design, Construction and Operation of a 4-Bit Counting Circuit
K010137378
DIGITAL ELECTRONICS :UNIT-II-COMBINATIONAL CIRCUIT DESIGN
combinational-circuit (1).ppt
ADDERS IN DIGITAL ELECTRONICS (DE) BY RIZWAN
Saur lecture 16
Ad

More from ShivarkarSandip (20)

PDF
Measure of Central Tendency, Different data types
PDF
Types of AnalysisPrescriptive Analytics, Predictive Analytics, Diagnostic An...
PPT
Project management methodology(CRISP-ML (Q))
PDF
MEASURES OF DATA: SCALE, TENDENCY, VARIATION SHAPE
PDF
STATISTICS AND PROBABILITY FOR DATA SCIENCE,
PDF
Introduction to Data Science: data science process
PDF
Prerquisite for Data Sciecne, KDD, Attribute Type
PDF
NBaysian classifier, Naive Bayes classifier
PDF
Supervised Learning Ensemble Techniques Machine Learning
PDF
Microcontroller 8051- Architecture Memory Organization
PDF
Data Preprocessing -Data Quality Noisy Data
PDF
Supervised Learning Decision Trees Review of Entropy
PDF
Supervised Learning Decision Trees Machine Learning
PDF
Cluster Analysis: Measuring Similarity & Dissimilarity
PDF
Classification, Attribute Selection, Classifiers- Decision Tree, ID3,C4.5,Nav...
PDF
Frequent Pattern Analysis, Apriori and FP Growth Algorithm
PDF
Data Warehouse and Architecture, OLAP Operation
PDF
Data Preparation and Preprocessing , Data Cleaning
PDF
Introduction to Data Mining, KDD Process, OLTP and OLAP
PDF
Introduction to Data Mining KDD Process OLAP
Measure of Central Tendency, Different data types
Types of AnalysisPrescriptive Analytics, Predictive Analytics, Diagnostic An...
Project management methodology(CRISP-ML (Q))
MEASURES OF DATA: SCALE, TENDENCY, VARIATION SHAPE
STATISTICS AND PROBABILITY FOR DATA SCIENCE,
Introduction to Data Science: data science process
Prerquisite for Data Sciecne, KDD, Attribute Type
NBaysian classifier, Naive Bayes classifier
Supervised Learning Ensemble Techniques Machine Learning
Microcontroller 8051- Architecture Memory Organization
Data Preprocessing -Data Quality Noisy Data
Supervised Learning Decision Trees Review of Entropy
Supervised Learning Decision Trees Machine Learning
Cluster Analysis: Measuring Similarity & Dissimilarity
Classification, Attribute Selection, Classifiers- Decision Tree, ID3,C4.5,Nav...
Frequent Pattern Analysis, Apriori and FP Growth Algorithm
Data Warehouse and Architecture, OLAP Operation
Data Preparation and Preprocessing , Data Cleaning
Introduction to Data Mining, KDD Process, OLTP and OLAP
Introduction to Data Mining KDD Process OLAP
Ad

Recently uploaded (20)

PDF
Artificial Superintelligence (ASI) Alliance Vision Paper.pdf
PPTX
communication and presentation skills 01
PDF
Human-AI Collaboration: Balancing Agentic AI and Autonomy in Hybrid Systems
PDF
Exploratory_Data_Analysis_Fundamentals.pdf
PDF
Categorization of Factors Affecting Classification Algorithms Selection
PDF
ChapteR012372321DFGDSFGDFGDFSGDFGDFGDFGSDFGDFGFD
PDF
737-MAX_SRG.pdf student reference guides
PDF
A SYSTEMATIC REVIEW OF APPLICATIONS IN FRAUD DETECTION
PDF
Improvement effect of pyrolyzed agro-food biochar on the properties of.pdf
PDF
Accra-Kumasi Expressway - Prefeasibility Report Volume 1 of 7.11.2018.pdf
PPTX
Graph Data Structures with Types, Traversals, Connectivity, and Real-Life App...
PDF
distributed database system" (DDBS) is often used to refer to both the distri...
PPTX
Fundamentals of Mechanical Engineering.pptx
PPTX
Information Storage and Retrieval Techniques Unit III
PDF
BIO-INSPIRED HORMONAL MODULATION AND ADAPTIVE ORCHESTRATION IN S-AI-GPT
PDF
Design Guidelines and solutions for Plastics parts
PDF
UNIT no 1 INTRODUCTION TO DBMS NOTES.pdf
PPTX
tack Data Structure with Array and Linked List Implementation, Push and Pop O...
PDF
Influence of Green Infrastructure on Residents’ Endorsement of the New Ecolog...
PPTX
Feature types and data preprocessing steps
Artificial Superintelligence (ASI) Alliance Vision Paper.pdf
communication and presentation skills 01
Human-AI Collaboration: Balancing Agentic AI and Autonomy in Hybrid Systems
Exploratory_Data_Analysis_Fundamentals.pdf
Categorization of Factors Affecting Classification Algorithms Selection
ChapteR012372321DFGDSFGDFGDFSGDFGDFGDFGSDFGDFGFD
737-MAX_SRG.pdf student reference guides
A SYSTEMATIC REVIEW OF APPLICATIONS IN FRAUD DETECTION
Improvement effect of pyrolyzed agro-food biochar on the properties of.pdf
Accra-Kumasi Expressway - Prefeasibility Report Volume 1 of 7.11.2018.pdf
Graph Data Structures with Types, Traversals, Connectivity, and Real-Life App...
distributed database system" (DDBS) is often used to refer to both the distri...
Fundamentals of Mechanical Engineering.pptx
Information Storage and Retrieval Techniques Unit III
BIO-INSPIRED HORMONAL MODULATION AND ADAPTIVE ORCHESTRATION IN S-AI-GPT
Design Guidelines and solutions for Plastics parts
UNIT no 1 INTRODUCTION TO DBMS NOTES.pdf
tack Data Structure with Array and Linked List Implementation, Push and Pop O...
Influence of Green Infrastructure on Residents’ Endorsement of the New Ecolog...
Feature types and data preprocessing steps

Combinational Ckt.pdf

  • 1. Sanjivani Rural Education Society’s Sanjivani College of Engineering, Kopargaon-423 603 (An Autonomous Institute, Affiliated to Savitribai Phule Pune University, Pune) NACC ‘A’ Grade Accredited, ISO 9001:2015 Certified Department of Computer Engineering (NBA Accredited) Prof. S.A.Shivarkar Assistant Professor E-mail : shivarkarsandipcomp@sanjivani.org.in Contact No: 8275032712 Subject- Digital Electronics and Data Communication (CO204) Unit 2- Combinational Logic Design
  • 2. Multiplexer • One of the combinational circuit • Example • Several input and only one output • Data on one of the input line is directed to output line. • Select lines!! • It is also called as data selector. • Fig. shows multiplexer with n input line and one output line. • Number of selector lines are m Where n = 2m • Selector lines select one out of n data sources and transmitted to single output channel. DEPARTMENT OF COMPUTER ENGINEERING, Sanjivani COE, Kopargaon 2
  • 3. 4:1 Multiplexer • 4 input lines I0 to I3 • 2 selector lines S1 and S0 • Y=S1’S0’I0 + S1’S0I1 + S1S0’I2 + S1S0I3 • Similarly We have 8:1 mux, 16:1 mux.. DEPARTMENT OF COMPUTER ENGINEERING, Sanjivani COE, Kopargaon 4 Select Inputs Output S1 S0 Y 0 0 I0 0 1 I1 1 0 I2 1 1 I3
  • 4. 8:1 Multiplexer • 8 input lines I0 to I7 • 3 selector lines S2, S1 and S0 • Similarly We have 16:1 mux.. DEPARTMENT OF COMPUTER ENGINEERING, Sanjivani COE, Kopargaon 5 Select Inputs Output S2 S1 S0 Y 0 0 0 I0 0 0 1 I1 0 1 0 I2 0 1 1 I3 1 0 0 I4 1 0 1 I5 1 1 0 I6 1 1 1 I7
  • 5. Combinational Circuit Design Using Multiplexer • Advantages: • Simplification of logic function is not required. • Minimize IC package count. • In order to design combinational circuit using Mux • Either Truth table should be known • Or one of the standard form of logical expression must be available. DEPARTMENT OF COMPUTER ENGINEERING, Sanjivani COE, Kopargaon 6
  • 6. Combinational Logic Design Using Multiplexer • Implement following function using mux. • F(A,B,C) = ∑m(0,1,4,6) • Solution • Mux with 3 select line will be required. DEPARTMENT OF COMPUTER ENGINEERING, Sanjivani COE, Kopargaon 7
  • 7. Combinational Logic Design Using Multiplexer • Implement using Mux DEPARTMENT OF COMPUTER ENGINEERING, Sanjivani COE, Kopargaon 8 A B C Y 0 0 0 1 0 0 1 1 0 1 0 1 0 1 1 1 1 0 0 0 1 0 1 0 1 1 0 0 1 1 1 1
  • 8. Multiplexer Tree DEPARTMENT OF COMPUTER ENGINEERING, Sanjivani COE, Kopargaon 9
  • 9. IC 74151 • It is 8:1 multiplexer. • It can be used as universal function generator to generate any logic function of four variable. • Two outputs are provided one is complemented and other is uncomplemented. DEPARTMENT OF COMPUTER ENGINEERING, Sanjivani COE, Kopargaon 10
  • 10. Combinational logic design Using 74151 • Implement using mux. • F(A,B,C) = ∑m(0,1,2,5) DEPARTMENT OF COMPUTER ENGINEERING, Sanjivani COE, Kopargaon 11
  • 11. Demultiplexer • It performs reverse operation of multiplexer. • Accept single input and distributes it over several outputs. • The select line determines to which output line input data is to be transmitted. • Fig. shows Demultiplexer with n output line and one input line. • Number of selector lines are m. • Where n = 2m DEPARTMENT OF COMPUTER ENGINEERING, Sanjivani COE, Kopargaon 12
  • 12. 1:2 Demultiplexer DEPARTMENT OF COMPUTER ENGINEERING, Sanjivani COE, Kopargaon 13 • 2 output lines • 1 selector line • Y0=S’I • Y1=SI Output S (Select) Y0 Y1 0 I 0 1 0 I
  • 13. 1:4 Demultiplexer DEPARTMENT OF COMPUTER ENGINEERING, Sanjivani COE, Kopargaon 14 • 4 output lines • 2 selector line • Logical expression for output Select Output S1 S0 Y0 Y1 Y2 Y3 0 0 I 0 0 0 0 1 0 I 0 0 1 0 0 0 I 0 1 1 0 0 0 I
  • 14. Combinational logic design Using Demultiplexer • Demux can also be used to design combinational circuit. • Lets design Full subtractor using demux. • So D=∑m(1,2,4,7) • Bout=∑m(1,2,3,7) • Design on next slide-> DEPARTMENT OF COMPUTER ENGINEERING, Sanjivani COE, Kopargaon 15 Input Output A B Bin D Bout 0 0 0 0 0 0 0 1 1 1 0 1 0 1 1 0 1 1 0 1 1 0 0 1 0 1 0 1 0 0 1 1 0 0 0 1 1 1 1 1
  • 15. Combinational logic design Using Demultiplexer DEPARTMENT OF COMPUTER ENGINEERING, Sanjivani COE, Kopargaon 16
  • 16. Demultiplexer Tree DEPARTMENT OF COMPUTER ENGINEERING, Sanjivani COE, Kopargaon 17
  • 17. Magnitude Comparator • It compare magnitude of two n bit binary numbers say A and B and activates one of three outputs A=B, A>B and A<B. DEPARTMENT OF COMPUTER ENGINEERING, Sanjivani COE, Kopargaon 18
  • 18. Design 1 bit Comparator • It will compare two 1 bit number. 19
  • 19. 1 bit Comparator cont.. • Step1: • Obtain truth table • Step 2 • From truth table obtain three K map for 3 output DEPARTMENT OF COMPUTER ENGINEERING, Sanjivani COE, Kopargaon 20 Inputs Output A0 B0 Y0 (A=B) Y1(A<B) Y2(A>B) 0 0 1 0 0 0 1 0 1 0 1 0 0 0 1 1 1 1 0 0
  • 20. 1 bit Comparator cont.. • Step 3: Obtain simplified expression from K map. • Y0=A0’B0’ + A0B0 • Y1=A0’B0 • Y2=A0B0’ DEPARTMENT OF COMPUTER ENGINEERING, Sanjivani COE, Kopargaon 21
  • 21. Design 2 bit comparator • It will compare two 2 bit numbers. DEPARTMENT OF COMPUTER ENGINEERING, Sanjivani COE, Kopargaon 22
  • 22. 2 bit comparator cont.. • Step1: • Obtain truth table • Step 2 • From truth table obtain 3 K map for 3 output • Obtain simplified expression from K map. Note: Left for self exercise DEPARTMENT OF COMPUTER ENGINEERING, Sanjivani COE, Kopargaon 23 A1 A0 B1 B0 Y0 (A=B) Y1(A<B) Y2(A>B) 0 0 0 0 1 0 0 0 0 0 1 0 1 0 0 0 1 0 0 1 0 0 0 1 1 0 1 0 0 1 0 0 0 0 1 0 1 0 1 1 0 0 0 1 1 0 0 1 0 0 1 1 1 0 1 0 1 0 0 0 0 0 1 1 0 0 1 0 0 1 1 0 1 0 1 0 0 1 0 1 1 0 1 0 1 1 0 0 0 0 1 1 1 0 1 0 0 1 1 1 1 0 0 0 1 1 1 1 1 1 0 0
  • 23. IC 7485 • It is used to compare two 4 bit numbers. • This 16 pin IC. • Note that circuit has 3 additional cascade inputs (Pin 2,3,4). • They are used to connect more than one 7485 IC to compare numbers having more than 4 bits. • But these input have lower priority. • They decide output only when 4 bit input fed to this IC is equal. DEPARTMENT OF COMPUTER ENGINEERING, Sanjivani COE, Kopargaon 24
  • 24. IC 7485 cont.. • IF A=0011 and B=0001 then output (A>B Pin no. 5) will be high and all other outputs will be low irrespective of the values appearing on pin 2,3 and 4. • When IC 7485 is not used in cascade mode we keep Pin 2,4 at logic 0 and Pin 3 at logic 1. DEPARTMENT OF COMPUTER ENGINEERING, Sanjivani COE, Kopargaon 25
  • 25. IC 7485 cont.. DEPARTMENT OF COMPUTER ENGINEERING, Sanjivani COE, Kopargaon 26 Compare two 8 bit numbers using 7485
  • 26. Encoder • Encoders convert single active signal (out of r inputs) into coded binary, s bit output. (This is normally referred to as r line to s line encoder) DEPARTMENT OF COMPUTER ENGINEERING, Sanjivani COE, Kopargaon 27
  • 27. Design 4 line to 2 line encoder that take 4 line decimal signal and convert it to binary code Decimal Binary D3 D2 D1 D0 A B 0 0 0 1 0 0 0 0 1 0 0 1 0 1 0 0 1 0 1 0 0 0 1 1 DEPARTMENT OF COMPUTER ENGINEERING, Sanjivani COE, Kopargaon 28
  • 28. Decimal to BCD encoder DEPARTMENT OF COMPUTER ENGINEERING, Sanjivani COE, Kopargaon 29 • There are ten switches one for each number from 0 to 9. • When particular number is to be fed to the digital circuit in BCD form the switch corresponding to that number is pressed.
  • 29. Priority Encoders • Often encoders are called as priority encoders which means that more than one of the r input may be active, in which case the output pattern produced is that for the highest priority input. DEPARTMENT OF COMPUTER ENGINEERING, Sanjivani COE, Kopargaon 30
  • 30. Decoder • A decode is similar to Demultiplexer with one exception there is no data input. • It has n input line and maximum 2n output line. • Consider decoder in given figure • It has control inputs A2,A1,A0 • It is called as 1 of 8 decoder because only 1 of 8 output line is high. • It is called binary to decimal decoder. • It has 3 input and 8 output so also called as 3 line to 8 line decoder. DEPARTMENT OF COMPUTER ENGINEERING, Sanjivani COE, Kopargaon 31
  • 31. 3 line to 8 line Decoder. DEPARTMENT OF COMPUTER ENGINEERING, Sanjivani COE, Kopargaon 32
  • 32. DEPARTMENT OF COMPUTER ENGINEERING, Sanjivani COE, Kopargaon 33