SlideShare une entreprise Scribd logo
1  sur  35
DECODER
INTEGRATED CIRCUITS 
An integrated circuit is a piece (also 
called a chip) of silicon on which multiple 
gates or transistors have been embedded 
These silicon pieces are mounted on a 
plastic or ceramic package with pins along 
the edges that can be soldered onto circuit 
boards or inserted into appropriate 
sockets
INTEGRATED CIRCUITS 
 SSI, MSI, LSI: They perform small tasks such as addition 
of few bits. small memories, small processors 
 VLSI Tasks: - Large memory - Complex microprocessors, 
CPUs
AN SSI CHIP CONTAINS 
INDEPENDENT NAND GATES
EXAMPLES OF COMBINATIONAL 
CIRCUITS 
 a) Decoders 
 b) Encoders 
 c) Multiplexers 
 d) Demultiplexers
DECODER 
 Accepts a value and decodes it 
 Output corresponds to value of n inputs 
 Consists of: 
 Inputs (n) 
 Outputs (2n , numbered from 0 ® 2n - 1) 
 Selectors / Enable (active high or active low)
THE TRUTH TABLE OF 2-TO-4 
DECODER
2-TO-4 DECODER
2-TO-4 DECODER
THE TRUTH TABLE OF 3-TO-8 
DECODER 
A2 A1 A0 D0 D1 D2 D3 D4 D5 D6 D7 
0 0 0 1 
0 0 1 1 
0 1 0 1 
0 1 1 1 
1 0 0 1 
1 0 1 1 
1 1 0 1 
1 1 1 1
3-TO-8 DECODER
3-TO-8 DECODER WITH ENABLE
2-TO-4 DECODER: NAND 
IMPLEMENTATION 
Decoder is enabled when E=0 and an output is 
active if it is 0
DECODER EXPANSION 
Decoder expansion 
 Combine two or more small decoders with enable 
inputs to form a larger decoder 
 3-to-8-line decoder constructed from two 2-to-4-line 
decoders 
 The MSB is connected to the enable inputs 
 if A2=0, upper is enabled; if A2=1, lower is enabled.
DECODER EXPANSION
COMBINING TWO 2-4 DECODERS 
TO FORM ONE 3-8 DECODER 
USING ENABLE SWITCH 
The highest bit is used for the enables
ENCODER
ENCODERS 
 Perform the inverse operation of a decoder 
2n (or less) input lines and n output 
lines
ENCODERS
ENCODERS WITH OR GATES
ENCODERS 
 Perform the inverse operation of a decoder 
2n (or less) input lines and n output lines
Encoders 
Can be implemented with 3 OR gates 
A0 = D1 + D3 + D5 + D7; 
A1 = D2 + D3 + D6 + D7; 
A2 = D4 + D5 + D6 + D7; 
If more than 2 inputs are active we 
need to use 
priority encoder (priority for inputs)
MULTIPLEXER (MUX) 
A multiplexer can use addressing bits to 
select one of several input bits to be the 
output. 
 A selector chooses a single data input and passes it to 
the MUX output 
 It has one output selected at a time.
4 to 1 line multiplexer 
S1 S0 F 
0 0 I0 
0 1 I1 
1 0 I2 
1 1 I3 
4 to 1 line 
multiplexer 
2n MUX to 1 
n for this MUX is 2 
This means 2 
selection lines s0 
and s1
MULTIPLEXER (MUX) 
 Consists of: 
 Inputs (multiple)= 2n 
 Output (single) 
 Selectors (# depends on # of inputs) = n 
 Enable (active high or active low)
Function table with enable
MULTIPLEXERS VERSUS 
DECODERS 
• A Multiplexer uses n binary select bits to choose 
from a maximum of 2n unique input lines. 
•Multiplexers and decoders both can decode 
minterms. 
•Decoders have n number of output lines while 
multiplexers have only one output line. 
•The decoded minterms are used to select data from 
one of up to 2n unique data input lines. 
•The output of the multiplexer is the data input 
whose index is specified by the n bit code.
MULTIPLEXER VERSUS 
DECODER 
I3 
I2 
I1 
I0 
S1 
S0 
X 
4-to-1 Multiplexer 2-t0-4 Decoder 
Note that the multiplexer has an extra OR gate. A1 and A0 are 
the two inputs in decoder. There are four inputs in multiplexer.
Function table with enable
Cascading multiplexers 
Using three 2-1 MUX 
to make one 4-1 MUX 
F 
S1 S0 F 
0 0 I0 
0 1 I1 
1 0 I2 
1 1 I3
2-1 F 
MU X 
S E 
S2 E 
S2 S1 S0 F 
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 
I0 
I1 
I2 
I3 
I4 
I5 
I6 
I7 
Example: Construct an 
8-to-1 multiplexer using 
2-to-1 multiplexers.
Example ( ) Construct 8-to-1 multiplexer using one 2-to-1 multiplexer and 
two 4-to-1 multiplexers 
S2 S1 S0 X
Quadruple 2-to-1 Line Multiplexer 
Used to supply four bits to the 
output. In this case two inputs four 
bits each.
QUADRUPLE 2-TO-1 LINE 
MULTIPLEXER 
E 
(Enable) 
S 
(Select) 
Y 
(Output) 
0 X All 0’s 
1 0 A 
1 1 B

Contenu connexe

Tendances

Tendances (20)

Sequential logic circuits flip-flop pt 1
Sequential logic circuits   flip-flop pt 1Sequential logic circuits   flip-flop pt 1
Sequential logic circuits flip-flop pt 1
 
Microprocessor Presentation
Microprocessor PresentationMicroprocessor Presentation
Microprocessor Presentation
 
Latches and flip flop
Latches and flip flopLatches and flip flop
Latches and flip flop
 
Flip Flop | Counters & Registers | Computer Fundamental and Organization
Flip Flop | Counters & Registers | Computer Fundamental and OrganizationFlip Flop | Counters & Registers | Computer Fundamental and Organization
Flip Flop | Counters & Registers | Computer Fundamental and Organization
 
digital Counter
digital Counterdigital Counter
digital Counter
 
8085 microproceesor ppt
8085 microproceesor ppt8085 microproceesor ppt
8085 microproceesor ppt
 
Chapter 1-Microprocessors, Microcomputers, and Assembly Language
Chapter 1-Microprocessors, Microcomputers, and Assembly LanguageChapter 1-Microprocessors, Microcomputers, and Assembly Language
Chapter 1-Microprocessors, Microcomputers, and Assembly Language
 
7 8255
7 82557 8255
7 8255
 
Demultiplexer presentation
Demultiplexer presentationDemultiplexer presentation
Demultiplexer presentation
 
Asynchronous Sequential Circuit-Unit 4 ppt
Asynchronous Sequential Circuit-Unit 4 pptAsynchronous Sequential Circuit-Unit 4 ppt
Asynchronous Sequential Circuit-Unit 4 ppt
 
Kmap..(karnaugh map)
Kmap..(karnaugh map)Kmap..(karnaugh map)
Kmap..(karnaugh map)
 
Keypad Interfacing with 8051 Microcontroller
Keypad Interfacing with 8051 MicrocontrollerKeypad Interfacing with 8051 Microcontroller
Keypad Interfacing with 8051 Microcontroller
 
What are Flip Flops and Its types.
What are Flip Flops and Its types.What are Flip Flops and Its types.
What are Flip Flops and Its types.
 
Combinational circuits
Combinational circuitsCombinational circuits
Combinational circuits
 
8085 microprocessor ramesh gaonkar
8085 microprocessor   ramesh gaonkar8085 microprocessor   ramesh gaonkar
8085 microprocessor ramesh gaonkar
 
module1:Introduction to digital electronics
module1:Introduction to digital electronicsmodule1:Introduction to digital electronics
module1:Introduction to digital electronics
 
Computer arithmetic
Computer arithmeticComputer arithmetic
Computer arithmetic
 
06 floating point
06 floating point06 floating point
06 floating point
 
Introduction to 8085svv
Introduction to 8085svvIntroduction to 8085svv
Introduction to 8085svv
 
Flip-Flop || Digital Electronics
Flip-Flop || Digital ElectronicsFlip-Flop || Digital Electronics
Flip-Flop || Digital Electronics
 

En vedette

1 Multiplexer
1 Multiplexer1 Multiplexer
1 Multiplexer
na491
 
COMBINATIONAL CIRCUITS & FLIP FLOPS
COMBINATIONAL CIRCUITS & FLIP FLOPSCOMBINATIONAL CIRCUITS & FLIP FLOPS
COMBINATIONAL CIRCUITS & FLIP FLOPS
Starlee Lathong
 
Lecture 2
Lecture 2Lecture 2
Lecture 2
GIKI
 
COMPUTER ORGANIZATION -Multiplexer,Demultiplexer, Encoder
COMPUTER ORGANIZATION -Multiplexer,Demultiplexer, EncoderCOMPUTER ORGANIZATION -Multiplexer,Demultiplexer, Encoder
COMPUTER ORGANIZATION -Multiplexer,Demultiplexer, Encoder
Vanitha Chandru
 
Encoders and Decoders
Encoders and DecodersEncoders and Decoders
Encoders and Decoders
Nic JM
 

En vedette (20)

Basic electronics
Basic electronicsBasic electronics
Basic electronics
 
Multiplexer
MultiplexerMultiplexer
Multiplexer
 
STLD-Combinational logic design
STLD-Combinational  logic design STLD-Combinational  logic design
STLD-Combinational logic design
 
Multiplexing changes(2)
Multiplexing   changes(2)Multiplexing   changes(2)
Multiplexing changes(2)
 
3Sem-Logic Design Notes-Unit4-Design and Analysis of Combinational Logic
 3Sem-Logic Design Notes-Unit4-Design and Analysis of Combinational Logic 3Sem-Logic Design Notes-Unit4-Design and Analysis of Combinational Logic
3Sem-Logic Design Notes-Unit4-Design and Analysis of Combinational Logic
 
Bca 2nd sem-u-1.6 digital logic circuits, digital component
Bca 2nd sem-u-1.6 digital logic circuits, digital componentBca 2nd sem-u-1.6 digital logic circuits, digital component
Bca 2nd sem-u-1.6 digital logic circuits, digital component
 
Combinational Circuits
Combinational CircuitsCombinational Circuits
Combinational Circuits
 
1 Multiplexer
1 Multiplexer1 Multiplexer
1 Multiplexer
 
Combinational circuit (7-Segment display)
Combinational circuit (7-Segment display)Combinational circuit (7-Segment display)
Combinational circuit (7-Segment display)
 
COMBINATIONAL CIRCUITS & FLIP FLOPS
COMBINATIONAL CIRCUITS & FLIP FLOPSCOMBINATIONAL CIRCUITS & FLIP FLOPS
COMBINATIONAL CIRCUITS & FLIP FLOPS
 
Lecture 2
Lecture 2Lecture 2
Lecture 2
 
Combinational Circuits & Sequential Circuits
Combinational Circuits & Sequential CircuitsCombinational Circuits & Sequential Circuits
Combinational Circuits & Sequential Circuits
 
Lecture3 combinational blocks
Lecture3 combinational blocksLecture3 combinational blocks
Lecture3 combinational blocks
 
Lecture 1
Lecture 1Lecture 1
Lecture 1
 
SEQUENTIAL AND COMBINATIONAL CIRCUITS,DIGITAL LOGIC DESIGN
SEQUENTIAL AND COMBINATIONAL CIRCUITS,DIGITAL LOGIC DESIGNSEQUENTIAL AND COMBINATIONAL CIRCUITS,DIGITAL LOGIC DESIGN
SEQUENTIAL AND COMBINATIONAL CIRCUITS,DIGITAL LOGIC DESIGN
 
Multiplexer & de multiplexer
Multiplexer & de multiplexerMultiplexer & de multiplexer
Multiplexer & de multiplexer
 
COMPUTER ORGANIZATION -Multiplexer,Demultiplexer, Encoder
COMPUTER ORGANIZATION -Multiplexer,Demultiplexer, EncoderCOMPUTER ORGANIZATION -Multiplexer,Demultiplexer, Encoder
COMPUTER ORGANIZATION -Multiplexer,Demultiplexer, Encoder
 
Number system
Number systemNumber system
Number system
 
multiplexer and d-multiplexer
multiplexer and d-multiplexermultiplexer and d-multiplexer
multiplexer and d-multiplexer
 
Encoders and Decoders
Encoders and DecodersEncoders and Decoders
Encoders and Decoders
 

Similaire à 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
SaveraAyub2
 
ENG 202 – Digital Electronics 1 - Chapter 4 (1).pptx
ENG 202 – Digital Electronics 1 - Chapter 4 (1).pptxENG 202 – Digital Electronics 1 - Chapter 4 (1).pptx
ENG 202 – Digital Electronics 1 - Chapter 4 (1).pptx
Aishah928448
 
Logic Design - Chapter 5: Part1 Combinattional Logic
Logic Design - Chapter 5: Part1 Combinattional LogicLogic Design - Chapter 5: Part1 Combinattional Logic
Logic Design - Chapter 5: Part1 Combinattional Logic
Gouda Mando
 
Decoders
DecodersDecoders
Decoders
Re Man
 

Similaire à Combinational circuit (20)

ATT SMK.pptx
ATT SMK.pptxATT SMK.pptx
ATT SMK.pptx
 
LOGIC DECODERS and MULTI.pptx
LOGIC DECODERS and MULTI.pptxLOGIC DECODERS and MULTI.pptx
LOGIC DECODERS and MULTI.pptx
 
Chapter 4 combinational circuit
Chapter 4 combinational circuit Chapter 4 combinational circuit
Chapter 4 combinational circuit
 
11.ppt
11.ppt11.ppt
11.ppt
 
Computer System and Architecture
Computer System and ArchitectureComputer System and Architecture
Computer System and Architecture
 
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
 
UNIT3.3.pdf
UNIT3.3.pdfUNIT3.3.pdf
UNIT3.3.pdf
 
SESSION 2.ppt
SESSION 2.pptSESSION 2.ppt
SESSION 2.ppt
 
Combinational circuits
Combinational circuitsCombinational circuits
Combinational circuits
 
ENG 202 – Digital Electronics 1 - Chapter 4 (1).pptx
ENG 202 – Digital Electronics 1 - Chapter 4 (1).pptxENG 202 – Digital Electronics 1 - Chapter 4 (1).pptx
ENG 202 – Digital Electronics 1 - Chapter 4 (1).pptx
 
multiplexer 4 input
multiplexer 4 inputmultiplexer 4 input
multiplexer 4 input
 
Lecture 1
Lecture 1Lecture 1
Lecture 1
 
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...
 
Decoders
DecodersDecoders
Decoders
 
Multiplexer and De multiplexers.docx
Multiplexer and De multiplexers.docxMultiplexer and De multiplexers.docx
Multiplexer and De multiplexers.docx
 
Logic Design - Chapter 5: Part1 Combinattional Logic
Logic Design - Chapter 5: Part1 Combinattional LogicLogic Design - Chapter 5: Part1 Combinattional Logic
Logic Design - Chapter 5: Part1 Combinattional Logic
 
digital electronics..
digital electronics..digital electronics..
digital electronics..
 
Decoders
DecodersDecoders
Decoders
 
Decodder presentation by ibrar
Decodder presentation by ibrarDecodder presentation by ibrar
Decodder presentation by ibrar
 
Multiplux
MultipluxMultiplux
Multiplux
 

Plus de Shailendra Gohil (6)

Xml
Xml Xml
Xml
 
Features Of Office 2007
Features Of Office 2007Features Of Office 2007
Features Of Office 2007
 
Cng as alternate to gasoline
Cng as alternate to gasolineCng as alternate to gasoline
Cng as alternate to gasoline
 
Computer virus
Computer virusComputer virus
Computer virus
 
Document authentication system with graphical security and sound
Document authentication system with graphical security and soundDocument authentication system with graphical security and sound
Document authentication system with graphical security and sound
 
History of orkut
History of orkutHistory of orkut
History of orkut
 

Dernier

The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
heathfieldcps1
 

Dernier (20)

Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
 
Fostering Friendships - Enhancing Social Bonds in the Classroom
Fostering Friendships - Enhancing Social Bonds  in the ClassroomFostering Friendships - Enhancing Social Bonds  in the Classroom
Fostering Friendships - Enhancing Social Bonds in the Classroom
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdf
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)
 
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxHMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
 
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
 
Wellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxWellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptx
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdf
 
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
 
Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structure
 

Combinational circuit

  • 1.
  • 3. INTEGRATED CIRCUITS An integrated circuit is a piece (also called a chip) of silicon on which multiple gates or transistors have been embedded These silicon pieces are mounted on a plastic or ceramic package with pins along the edges that can be soldered onto circuit boards or inserted into appropriate sockets
  • 4. INTEGRATED CIRCUITS  SSI, MSI, LSI: They perform small tasks such as addition of few bits. small memories, small processors  VLSI Tasks: - Large memory - Complex microprocessors, CPUs
  • 5. AN SSI CHIP CONTAINS INDEPENDENT NAND GATES
  • 6. EXAMPLES OF COMBINATIONAL CIRCUITS  a) Decoders  b) Encoders  c) Multiplexers  d) Demultiplexers
  • 7. DECODER  Accepts a value and decodes it  Output corresponds to value of n inputs  Consists of:  Inputs (n)  Outputs (2n , numbered from 0 ® 2n - 1)  Selectors / Enable (active high or active low)
  • 8. THE TRUTH TABLE OF 2-TO-4 DECODER
  • 11. THE TRUTH TABLE OF 3-TO-8 DECODER A2 A1 A0 D0 D1 D2 D3 D4 D5 D6 D7 0 0 0 1 0 0 1 1 0 1 0 1 0 1 1 1 1 0 0 1 1 0 1 1 1 1 0 1 1 1 1 1
  • 14. 2-TO-4 DECODER: NAND IMPLEMENTATION Decoder is enabled when E=0 and an output is active if it is 0
  • 15. DECODER EXPANSION Decoder expansion  Combine two or more small decoders with enable inputs to form a larger decoder  3-to-8-line decoder constructed from two 2-to-4-line decoders  The MSB is connected to the enable inputs  if A2=0, upper is enabled; if A2=1, lower is enabled.
  • 17. COMBINING TWO 2-4 DECODERS TO FORM ONE 3-8 DECODER USING ENABLE SWITCH The highest bit is used for the enables
  • 19. ENCODERS  Perform the inverse operation of a decoder 2n (or less) input lines and n output lines
  • 22. ENCODERS  Perform the inverse operation of a decoder 2n (or less) input lines and n output lines
  • 23. Encoders Can be implemented with 3 OR gates A0 = D1 + D3 + D5 + D7; A1 = D2 + D3 + D6 + D7; A2 = D4 + D5 + D6 + D7; If more than 2 inputs are active we need to use priority encoder (priority for inputs)
  • 24. MULTIPLEXER (MUX) A multiplexer can use addressing bits to select one of several input bits to be the output.  A selector chooses a single data input and passes it to the MUX output  It has one output selected at a time.
  • 25. 4 to 1 line multiplexer S1 S0 F 0 0 I0 0 1 I1 1 0 I2 1 1 I3 4 to 1 line multiplexer 2n MUX to 1 n for this MUX is 2 This means 2 selection lines s0 and s1
  • 26. MULTIPLEXER (MUX)  Consists of:  Inputs (multiple)= 2n  Output (single)  Selectors (# depends on # of inputs) = n  Enable (active high or active low)
  • 28. MULTIPLEXERS VERSUS DECODERS • A Multiplexer uses n binary select bits to choose from a maximum of 2n unique input lines. •Multiplexers and decoders both can decode minterms. •Decoders have n number of output lines while multiplexers have only one output line. •The decoded minterms are used to select data from one of up to 2n unique data input lines. •The output of the multiplexer is the data input whose index is specified by the n bit code.
  • 29. MULTIPLEXER VERSUS DECODER I3 I2 I1 I0 S1 S0 X 4-to-1 Multiplexer 2-t0-4 Decoder Note that the multiplexer has an extra OR gate. A1 and A0 are the two inputs in decoder. There are four inputs in multiplexer.
  • 31. Cascading multiplexers Using three 2-1 MUX to make one 4-1 MUX F S1 S0 F 0 0 I0 0 1 I1 1 0 I2 1 1 I3
  • 32. 2-1 F MU X S E S2 E S2 S1 S0 F 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 I0 I1 I2 I3 I4 I5 I6 I7 Example: Construct an 8-to-1 multiplexer using 2-to-1 multiplexers.
  • 33. Example ( ) Construct 8-to-1 multiplexer using one 2-to-1 multiplexer and two 4-to-1 multiplexers S2 S1 S0 X
  • 34. Quadruple 2-to-1 Line Multiplexer Used to supply four bits to the output. In this case two inputs four bits each.
  • 35. QUADRUPLE 2-TO-1 LINE MULTIPLEXER E (Enable) S (Select) Y (Output) 0 X All 0’s 1 0 A 1 1 B