SlideShare a Scribd company logo
1
CSE370, Lecture 10
Overview
 Last lecture
 Timing diagrams
 Multilevel logic
 Multilevel NAND/NOR conversion
 AOI and OAI gates
 Hazards
 Today
 "Switching-network" logic blocks
 Multiplexers/selectors
 Demultiplexers/decoders
 Programmable logic devices (PLDs)
 Regular structures for 2-level logic
2
CSE370, Lecture 10
Switching-network logic blocks
 Multiplexer
 Routes one of many inputs to a single output
 Also called a selector
 Demultiplexer
 Routes a single input to one of many outputs
 Also called a decoder
multiplexer demultiplexer
control control
We construct these
devices from:
(1) logic gates
(2) networks of tran-
sistor switches
3
CSE370, Lecture 10
Rationale: Sharing complex logic functions
 Share an adder: Select inputs; route sum
multiple inputs
multiple output destinations
MUX
A B
Sum
A0 A1
Sa
Ss
Sb
B0 B1
MUX
DEMUX
Z0 Z1
single adder
4
CSE370, Lecture 10
Multiplexers
 Basic concept
 2n
data inputs; n control inputs ("selects"); 1 output
 Connects one of 2n
inputs to the output
 “Selects” decide which input connects to output
 Two alternative truth-tables: Functional and Logical
Example: A 2:1 Mux
Z = SIn1 + S'Ino
Functional truth table
S Z
0 In0
1 In1
In1 In0 S Z
0 0 0 0
0 0 1 0
0 1 0 1
0 1 1 0
1 0 0 0
1 0 1 1
1 1 0 1
1 1 1 1
Logical truth table
I0
S
I1
Z
5
CSE370, Lecture 10
Logic-gate implementation of multiplexers
2:1 mux 4:1 mux
I0
I1
I2
I3
S0 S1
I0
S
I1
I0
S
I1
Z
Z
Z
6
CSE370, Lecture 10
Multiplexers (con't)
 2:1 mux: Z = S'In0 + SIn1
 4:1 mux: Z = S0'S1'In0 + S0'S1In1 + S0S1'In2 + S0S1In3
 8:1 mux: Z = S0'S1'S2'In0 + S0'S1S2In1 + ...
I0
I1
I2
I3
I4
I5
I6
I7
S0 S1 S2
8:1
mux
Z
I0
I1
I2
I3
S0 S1
4:1
mux Z
I0
I1
S0
2:1
mux Z
7
CSE370, Lecture 10
Cascading multiplexers
 Can form large multiplexers from smaller ones
 Many implementation options
Z
4:1
mux
S2
2:1
mux
I4
I5
I6
I7
S0 S1
4:1
mux
S0
Z
S1 S2
4:1
mux
2:1
mux
2:1
mux
2:1
mux
2:1
mux
I4
I5
I2
I3
I0
I1
I6
I7
8:1 mux 8:1 mux
I0
I1
I2
I3
8
CSE370, Lecture 10
Multiplexers as general-purpose logic
 A 2n:1 mux can implement any function of n variables
 A lookup table
 A 2n – 1
:1 mux also can implement any function of n variables
 Example: F(A,B,C) = m0 + m2 + m6 + m7
= A'B'C' + A'BC' + ABC' + ABC
= A'B'(C') + A'B(C') + AB(0) + AB(1)
A B C F
0 0 0 1
0 0 1 0
0 1 0 1
0 1 1 0
1 0 0 0
1 0 1 0
1 1 0 1
1 1 1 1
C'
C'
0
1
S1 S0
F
0
1
2
3
4:1 MUX
C'
C'
0
1
0
1
2
3
4
5
6
7
1
0
1
0
0
0
1
1
S2
8:1 MUX
S1 S0
F
A B C
A B
9
CSE370, Lecture 10
Multiplexers as general-purpose logic
 Implementing a 2n:1 mux as a function of n–1 variables
 (n-1) mux control variables S0 – Sn–1
 One data variable Sn
 Four possible values for each data input: 0, 1, Sn, Sn'
 Example: F(A,B,C,D) implemented using an 8:1 mux
Choose A,B,C as
control variables
Choose D as a
data variable
0
1
2
3
4
5
6
7
1
D
0
1
D'
D
D'
D'
A
8:1
MUX
B C
F
D
1 0 1 1
1 0 0 0
1 1 0 1
0 1 1 0
AB
CD
A
00 01 11 10
00
01
11
10
C
B
S2 S1 S0
F=A’B’C’(1)+A’B’C(D)+A’BC’(0)+A’BC(1)
+AB’C’(D’)+AB’C(D)+ABC’(D’)+ABC(D’)
F = A’B’C’+A’CD+B’CD+AC’D’+BCD’
10
CSE370, Lecture 10
Demultiplexers
 Basic concept
 Single data input; n control inputs (“selects”); 2n
outputs
 Single input connects to one of 2n
outputs
 “Selects” decide which output is connected to the input
 When used as a decoder, the input is called an “enable” (G)
1:2 Decoder:
Out0 = G • S'
Out1 = G • S
2:4 Decoder:
Out0 = G • S1' • S0'
Out1 = G • S1' • S0
Out2 = G • S1 • S0'
Out3 = G • S1 • S0
3:8 Decoder:
Out0 = G • S2' • S1' • S0'
Out1 = G • S2' • S1' • S0
Out2 = G • S2' • S1 • S0'
Out3 = G • S2' • S1 • S0
Out4 = G • S2 • S1' • S0'
Out5 = G • S2 • S1' • S0
Out6 = G • S2 • S1 • S0'
Out7 = G • S2 • S1 • S0
11
CSE370, Lecture 10
Logic-gate implementation of demultiplexers
1:2 demux
Out0
G
S
Out1
S1
Out2
Out3
Out0
G
Out1
S0
2:4 demux
12
CSE370, Lecture 10
Demultiplexers as general-purpose logic
 A n:2n
demux can implement any function of n variables
 Use variables as select inputs
 Tie enable input to logic 1
 Sum the appropriate minterms (extra OR gate)
demultiplexer “decodes”
appropriate minterms
from the control signals
C
A B
0 A'B'C'
1 A'B'C
2 A'BC'
3 A'BC
4 AB'C'
5 AB'C
6 ABC'
7 ABC
S2
3:8
Demux
S1 S0
1
13
CSE370, Lecture 10
Demultiplexers as general-purpose logic
Example
F1 = A'BC'D + A'B'CD + ABCD
F2 = ABC'D' + ABC
F3 = (A'+B'+C'+D')
A B
0 A'B'C'D'
1 A'B'C'D
2 A'B'CD'
3 A'B'CD
4 A'BC'D'
5 A'BC'D
6 A'BCD'
7 A'BCD
8 AB'C'D'
9 AB'C'D
10 AB'CD'
11 AB'CD
12 ABC'D'
13 ABC'D
14 ABCD'
15 ABCD
4:16
Demux
Enable = 1
C D
F1
F2
F3
14
CSE370, Lecture 10
Cascading demultiplexers
 5:32 demux 0 A'B'C'D'E'
1
2
3
4
5
6
7
S2
3:8
Demux
S1 S0
A B
0
1
2
3
S1
2:4
Demux
S0
F
E
C D
0
1
2
3
4
5
6
7 ABCDE
S2 S1 S0
0
1
2 A'BC'DE'
3
4
5
6
7
S2 S1 S0
E
C D
0 AB'C'D'E'
1
2
3
4
5
6
7 AB'CDE
S2 S1 S0
3:8
Demux
3:8
Demux
3:8
Demux
15
CSE370, Lecture 10
• • •
• • •
inputs
outputs
product
terms
AND
array
OR
array
Programmable logic (PLAs & PALs )
 Concept: Large array of uncommitted AND/OR gates
 Actually NAND/NOR gates
 You program the array by making or breaking connections
 Programmable block for sum-of-products logic
16
CSE370, Lecture 10
All two-level logic functions are available
 You "program" the wire connections
A 3-input, 5-term,
4-function PLA
17
CSE370, Lecture 10
Sharing product terms
 Example: F0 = A + B'C'
F1 = AC' + AB
F2 = B'C' + AB
F3 = B'C + A
 Personality matrix:
1 = asserted in term
0 = negated in term
– = does not participate
inputs
1 = term connected to output
0 = no connection to output
outputs
product inputs outputs
term A B C F0 F1 F2 F3
AB 1 1 – 0 1 1 0
B'C – 0 1 0 0 0 1
AC' 1 – 0 0 1 0 0
B'C' – 0 0 1 0 1 0
A 1 – – 1 0 0 1
Reuse
terms
18
CSE370, Lecture 10
Programming the wire connections
 Fuse: Comes connected; break unwanted connections
 Anti-fuse: Comes disconnected; make wanted connections
A B C
F1 F2 F3
F0
AB
B'C
AC'
B'C'
A
F0 = A + B'C'
F1 = AC' + AB
F2 = B'C' + AB
F3 = B'C + A

More Related Content

What's hot

Multiplexer & de multiplexer
Multiplexer & de multiplexerMultiplexer & de multiplexer
Multiplexer & de multiplexer
vishalgohel12195
 
Multiplexers
MultiplexersMultiplexers
Multiplexers
Saloni Jain
 
1 Multiplexer
1 Multiplexer1 Multiplexer
1 Multiplexer
na491
 
Demultiplexer presentation
Demultiplexer presentationDemultiplexer presentation
Demultiplexer presentation
Shaikat Saha
 
multiplexer and d-multiplexer
multiplexer and d-multiplexermultiplexer and d-multiplexer
multiplexer and d-multiplexer
malikwaqar75033149
 
Multiplexer and DeMultiplexer
Multiplexer and DeMultiplexerMultiplexer and DeMultiplexer
Multiplexer and DeMultiplexer
Estiak Khan
 
 multiplexer 
 multiplexer  multiplexer 
 multiplexer 
rounak077
 
COMPUTER ORGANIZATION -Multiplexer,Demultiplexer, Encoder
COMPUTER ORGANIZATION -Multiplexer,Demultiplexer, EncoderCOMPUTER ORGANIZATION -Multiplexer,Demultiplexer, Encoder
COMPUTER ORGANIZATION -Multiplexer,Demultiplexer, Encoder
Vanitha Chandru
 
Combinational circuit
Combinational circuitCombinational circuit
Combinational circuit
Shailendra Gohil
 
CSL 202, Multiplexer and Demultiplexer
CSL 202, Multiplexer and DemultiplexerCSL 202, Multiplexer and Demultiplexer
CSL 202, Multiplexer and Demultiplexer
CKSunith1
 
DESIGN OF COMBINATIONAL LOGIC
DESIGN OF COMBINATIONAL LOGICDESIGN OF COMBINATIONAL LOGIC
Saur lecture 16
Saur lecture 16Saur lecture 16
Saur lecture 16
saur28_83
 
Ceng232 Decoder Multiplexer Adder
Ceng232 Decoder Multiplexer AdderCeng232 Decoder Multiplexer Adder
Ceng232 Decoder Multiplexer Adder
gueste731a4
 
Multiplexer and demultiplexer applications.ppsx 3
Multiplexer and demultiplexer applications.ppsx 3Multiplexer and demultiplexer applications.ppsx 3
Multiplexer and demultiplexer applications.ppsx 3
safia safreen
 
عرض تقديمي1
عرض تقديمي1عرض تقديمي1
عرض تقديمي1
hmhashmi
 
encoder and decoder in digital electronics
encoder and decoder in digital electronicsencoder and decoder in digital electronics
encoder and decoder in digital electronics
vikram rajpurohit
 
3. multiplexer
3. multiplexer3. multiplexer
3. multiplexer
DEPARTMENT OF PHYSICS
 
Mux decod pld2_vs2
Mux decod pld2_vs2Mux decod pld2_vs2
Mux decod pld2_vs2
WanNurdiana
 
Decoders
DecodersDecoders
Decoders
Re Man
 
08 decoder
08 decoder08 decoder
08 decoder
Aamina Aslam
 

What's hot (20)

Multiplexer & de multiplexer
Multiplexer & de multiplexerMultiplexer & de multiplexer
Multiplexer & de multiplexer
 
Multiplexers
MultiplexersMultiplexers
Multiplexers
 
1 Multiplexer
1 Multiplexer1 Multiplexer
1 Multiplexer
 
Demultiplexer presentation
Demultiplexer presentationDemultiplexer presentation
Demultiplexer presentation
 
multiplexer and d-multiplexer
multiplexer and d-multiplexermultiplexer and d-multiplexer
multiplexer and d-multiplexer
 
Multiplexer and DeMultiplexer
Multiplexer and DeMultiplexerMultiplexer and DeMultiplexer
Multiplexer and DeMultiplexer
 
 multiplexer 
 multiplexer  multiplexer 
 multiplexer 
 
COMPUTER ORGANIZATION -Multiplexer,Demultiplexer, Encoder
COMPUTER ORGANIZATION -Multiplexer,Demultiplexer, EncoderCOMPUTER ORGANIZATION -Multiplexer,Demultiplexer, Encoder
COMPUTER ORGANIZATION -Multiplexer,Demultiplexer, Encoder
 
Combinational circuit
Combinational circuitCombinational circuit
Combinational circuit
 
CSL 202, Multiplexer and Demultiplexer
CSL 202, Multiplexer and DemultiplexerCSL 202, Multiplexer and Demultiplexer
CSL 202, Multiplexer and Demultiplexer
 
DESIGN OF COMBINATIONAL LOGIC
DESIGN OF COMBINATIONAL LOGICDESIGN OF COMBINATIONAL LOGIC
DESIGN OF COMBINATIONAL LOGIC
 
Saur lecture 16
Saur lecture 16Saur lecture 16
Saur lecture 16
 
Ceng232 Decoder Multiplexer Adder
Ceng232 Decoder Multiplexer AdderCeng232 Decoder Multiplexer Adder
Ceng232 Decoder Multiplexer Adder
 
Multiplexer and demultiplexer applications.ppsx 3
Multiplexer and demultiplexer applications.ppsx 3Multiplexer and demultiplexer applications.ppsx 3
Multiplexer and demultiplexer applications.ppsx 3
 
عرض تقديمي1
عرض تقديمي1عرض تقديمي1
عرض تقديمي1
 
encoder and decoder in digital electronics
encoder and decoder in digital electronicsencoder and decoder in digital electronics
encoder and decoder in digital electronics
 
3. multiplexer
3. multiplexer3. multiplexer
3. multiplexer
 
Mux decod pld2_vs2
Mux decod pld2_vs2Mux decod pld2_vs2
Mux decod pld2_vs2
 
Decoders
DecodersDecoders
Decoders
 
08 decoder
08 decoder08 decoder
08 decoder
 

Viewers also liked

Multiplexing
MultiplexingMultiplexing
Multiplexing
Mahesh Kumar Attri
 
Pcm pulse codemodulation-2
Pcm pulse codemodulation-2Pcm pulse codemodulation-2
Pcm pulse codemodulation-2
Akshay Nagpurkar
 
3 multiplexing-wdm
3 multiplexing-wdm3 multiplexing-wdm
3 multiplexing-wdm
Akshay Nagpurkar
 
Sdh alarm presentation
Sdh alarm presentationSdh alarm presentation
Sdh alarm presentation
Rajiv Ranjan
 
Multiplexing changes(2)
Multiplexing   changes(2)Multiplexing   changes(2)
Multiplexing changes(2)
Muhammad Wajahat Bajwa
 
Dwdm
DwdmDwdm
Telephone system & multiplexing
Telephone system & multiplexingTelephone system & multiplexing
Telephone system & multiplexing
gamer007
 
Multiplexing
MultiplexingMultiplexing
Multiplexing
Aman Jaiswal
 
optical time division multiplexing
optical time division multiplexingoptical time division multiplexing
optical time division multiplexing
Amandeep kaur
 
Introduction to dwdm technology
Introduction to dwdm technologyIntroduction to dwdm technology
Introduction to dwdm technology
Sayed Qaisar Shah
 
DWDM
DWDMDWDM
Ch 06
Ch 06Ch 06
10 Slides to Sonet
10 Slides to Sonet10 Slides to Sonet
10 Slides to Sonet
seanraz
 
Aml cft training programme
Aml cft training programmeAml cft training programme
Aml cft training programme
Subhalakshmi Girish
 
Optical Networking & DWDM
Optical Networking & DWDMOptical Networking & DWDM
Optical Networking & DWDM
Tal Lavian Ph.D.
 
Sdh total final
Sdh total finalSdh total final
Sdh total final
Manish Desai
 
Sonet Sdh Dwdm
Sonet Sdh DwdmSonet Sdh Dwdm
Sonet Sdh Dwdm
deven l
 
dwdm
 dwdm dwdm
dwdm
g d
 
DWDM Presentation
DWDM PresentationDWDM Presentation
DWDM Presentation
ayodejieasy
 
Fundamentals of sdh
Fundamentals of sdhFundamentals of sdh
Fundamentals of sdh
sreejithkt
 

Viewers also liked (20)

Multiplexing
MultiplexingMultiplexing
Multiplexing
 
Pcm pulse codemodulation-2
Pcm pulse codemodulation-2Pcm pulse codemodulation-2
Pcm pulse codemodulation-2
 
3 multiplexing-wdm
3 multiplexing-wdm3 multiplexing-wdm
3 multiplexing-wdm
 
Sdh alarm presentation
Sdh alarm presentationSdh alarm presentation
Sdh alarm presentation
 
Multiplexing changes(2)
Multiplexing   changes(2)Multiplexing   changes(2)
Multiplexing changes(2)
 
Dwdm
DwdmDwdm
Dwdm
 
Telephone system & multiplexing
Telephone system & multiplexingTelephone system & multiplexing
Telephone system & multiplexing
 
Multiplexing
MultiplexingMultiplexing
Multiplexing
 
optical time division multiplexing
optical time division multiplexingoptical time division multiplexing
optical time division multiplexing
 
Introduction to dwdm technology
Introduction to dwdm technologyIntroduction to dwdm technology
Introduction to dwdm technology
 
DWDM
DWDMDWDM
DWDM
 
Ch 06
Ch 06Ch 06
Ch 06
 
10 Slides to Sonet
10 Slides to Sonet10 Slides to Sonet
10 Slides to Sonet
 
Aml cft training programme
Aml cft training programmeAml cft training programme
Aml cft training programme
 
Optical Networking & DWDM
Optical Networking & DWDMOptical Networking & DWDM
Optical Networking & DWDM
 
Sdh total final
Sdh total finalSdh total final
Sdh total final
 
Sonet Sdh Dwdm
Sonet Sdh DwdmSonet Sdh Dwdm
Sonet Sdh Dwdm
 
dwdm
 dwdm dwdm
dwdm
 
DWDM Presentation
DWDM PresentationDWDM Presentation
DWDM Presentation
 
Fundamentals of sdh
Fundamentals of sdhFundamentals of sdh
Fundamentals of sdh
 

Similar to 10 multiplexers-de mux

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
 
unit-6_combinational_jbiunkjnjbkjbjjcircuit-2.ppt
unit-6_combinational_jbiunkjnjbkjbjjcircuit-2.pptunit-6_combinational_jbiunkjnjbkjbjjcircuit-2.ppt
unit-6_combinational_jbiunkjnjbkjbjjcircuit-2.ppt
J. Glory Precious
 
ANALYSIS & DESIGN OF COMBINATIONAL LOGIC
ANALYSIS & DESIGN OF COMBINATIONAL LOGICANALYSIS & DESIGN OF COMBINATIONAL LOGIC
ANALYSIS & DESIGN OF COMBINATIONAL LOGIC
Supanna Shirguppe
 
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
 
Chapter 06 Combinational Logic Functions
Chapter 06 Combinational Logic FunctionsChapter 06 Combinational Logic Functions
Chapter 06 Combinational Logic Functions
SSE_AndyLi
 
Unit 4 dica
Unit 4 dicaUnit 4 dica
Unit 4 dica
Pavan Mukku
 
Lcdf4 chap 03_p2
Lcdf4 chap 03_p2Lcdf4 chap 03_p2
Lcdf4 chap 03_p2
ozgur_can
 
microprocessors
microprocessorsmicroprocessors
microprocessors
Hossam Zein
 
Coa presentation2
Coa presentation2Coa presentation2
Coa presentation2
rickypatel151
 
Clock Sources on ZedBoard.pdf
Clock Sources on ZedBoard.pdfClock Sources on ZedBoard.pdf
Clock Sources on ZedBoard.pdf
VishnuvardhanNeerati2
 
VLSI Design Final Project - 32 bit ALU
VLSI Design Final Project - 32 bit ALUVLSI Design Final Project - 32 bit ALU
VLSI Design Final Project - 32 bit ALU
Sachin Kumar Asokan
 
Bidirect visitor counter
Bidirect visitor counterBidirect visitor counter
Bidirect visitor counter
Electric&elctronics&engineeering
 
Logic gate tester for IC's ( Digital Electronics and Logic deisgn EE3114 )
Logic gate tester for IC's ( Digital Electronics and Logic deisgn EE3114 )Logic gate tester for IC's ( Digital Electronics and Logic deisgn EE3114 )
Logic gate tester for IC's ( Digital Electronics and Logic deisgn EE3114 )
Jikrul Sayeed
 
Lecture 1
Lecture 1Lecture 1
Laboratory exercise 5
Laboratory exercise 5Laboratory exercise 5
Laboratory exercise 5
swapnilswap11
 
Analog to Digital Converter
Analog to Digital ConverterAnalog to Digital Converter
Analog to Digital Converter
Ariel Tonatiuh Espindola
 
Digital Logic circuit
Digital Logic circuitDigital Logic circuit
Digital Logic circuit
kavitha muneeshwaran
 
Ecad &vlsi lab 18
Ecad &vlsi lab 18Ecad &vlsi lab 18
Ecad &vlsi lab 18
Shekar Midde
 
4,encoder & decoder MUX and DEMUX EEng - Copy.pdf
4,encoder & decoder MUX and DEMUX EEng - Copy.pdf4,encoder & decoder MUX and DEMUX EEng - Copy.pdf
4,encoder & decoder MUX and DEMUX EEng - Copy.pdf
DamotTesfaye
 
Fpga creating counter with internal clock
Fpga   creating counter with internal clockFpga   creating counter with internal clock
Fpga creating counter with internal clock
Politeknik Elektronika Negeri Surabaya
 

Similar to 10 multiplexers-de mux (20)

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
 
unit-6_combinational_jbiunkjnjbkjbjjcircuit-2.ppt
unit-6_combinational_jbiunkjnjbkjbjjcircuit-2.pptunit-6_combinational_jbiunkjnjbkjbjjcircuit-2.ppt
unit-6_combinational_jbiunkjnjbkjbjjcircuit-2.ppt
 
ANALYSIS & DESIGN OF COMBINATIONAL LOGIC
ANALYSIS & DESIGN OF COMBINATIONAL LOGICANALYSIS & DESIGN OF COMBINATIONAL LOGIC
ANALYSIS & DESIGN OF COMBINATIONAL LOGIC
 
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
 
Chapter 06 Combinational Logic Functions
Chapter 06 Combinational Logic FunctionsChapter 06 Combinational Logic Functions
Chapter 06 Combinational Logic Functions
 
Unit 4 dica
Unit 4 dicaUnit 4 dica
Unit 4 dica
 
Lcdf4 chap 03_p2
Lcdf4 chap 03_p2Lcdf4 chap 03_p2
Lcdf4 chap 03_p2
 
microprocessors
microprocessorsmicroprocessors
microprocessors
 
Coa presentation2
Coa presentation2Coa presentation2
Coa presentation2
 
Clock Sources on ZedBoard.pdf
Clock Sources on ZedBoard.pdfClock Sources on ZedBoard.pdf
Clock Sources on ZedBoard.pdf
 
VLSI Design Final Project - 32 bit ALU
VLSI Design Final Project - 32 bit ALUVLSI Design Final Project - 32 bit ALU
VLSI Design Final Project - 32 bit ALU
 
Bidirect visitor counter
Bidirect visitor counterBidirect visitor counter
Bidirect visitor counter
 
Logic gate tester for IC's ( Digital Electronics and Logic deisgn EE3114 )
Logic gate tester for IC's ( Digital Electronics and Logic deisgn EE3114 )Logic gate tester for IC's ( Digital Electronics and Logic deisgn EE3114 )
Logic gate tester for IC's ( Digital Electronics and Logic deisgn EE3114 )
 
Lecture 1
Lecture 1Lecture 1
Lecture 1
 
Laboratory exercise 5
Laboratory exercise 5Laboratory exercise 5
Laboratory exercise 5
 
Analog to Digital Converter
Analog to Digital ConverterAnalog to Digital Converter
Analog to Digital Converter
 
Digital Logic circuit
Digital Logic circuitDigital Logic circuit
Digital Logic circuit
 
Ecad &vlsi lab 18
Ecad &vlsi lab 18Ecad &vlsi lab 18
Ecad &vlsi lab 18
 
4,encoder & decoder MUX and DEMUX EEng - Copy.pdf
4,encoder & decoder MUX and DEMUX EEng - Copy.pdf4,encoder & decoder MUX and DEMUX EEng - Copy.pdf
4,encoder & decoder MUX and DEMUX EEng - Copy.pdf
 
Fpga creating counter with internal clock
Fpga   creating counter with internal clockFpga   creating counter with internal clock
Fpga creating counter with internal clock
 

Recently uploaded

A SYSTEMATIC RISK ASSESSMENT APPROACH FOR SECURING THE SMART IRRIGATION SYSTEMS
A SYSTEMATIC RISK ASSESSMENT APPROACH FOR SECURING THE SMART IRRIGATION SYSTEMSA SYSTEMATIC RISK ASSESSMENT APPROACH FOR SECURING THE SMART IRRIGATION SYSTEMS
A SYSTEMATIC RISK ASSESSMENT APPROACH FOR SECURING THE SMART IRRIGATION SYSTEMS
IJNSA Journal
 
Literature Review Basics and Understanding Reference Management.pptx
Literature Review Basics and Understanding Reference Management.pptxLiterature Review Basics and Understanding Reference Management.pptx
Literature Review Basics and Understanding Reference Management.pptx
Dr Ramhari Poudyal
 
The Python for beginners. This is an advance computer language.
The Python for beginners. This is an advance computer language.The Python for beginners. This is an advance computer language.
The Python for beginners. This is an advance computer language.
sachin chaurasia
 
Harnessing WebAssembly for Real-time Stateless Streaming Pipelines
Harnessing WebAssembly for Real-time Stateless Streaming PipelinesHarnessing WebAssembly for Real-time Stateless Streaming Pipelines
Harnessing WebAssembly for Real-time Stateless Streaming Pipelines
Christina Lin
 
Electric vehicle and photovoltaic advanced roles in enhancing the financial p...
Electric vehicle and photovoltaic advanced roles in enhancing the financial p...Electric vehicle and photovoltaic advanced roles in enhancing the financial p...
Electric vehicle and photovoltaic advanced roles in enhancing the financial p...
IJECEIAES
 
Generative AI leverages algorithms to create various forms of content
Generative AI leverages algorithms to create various forms of contentGenerative AI leverages algorithms to create various forms of content
Generative AI leverages algorithms to create various forms of content
Hitesh Mohapatra
 
CSM Cloud Service Management Presentarion
CSM Cloud Service Management PresentarionCSM Cloud Service Management Presentarion
CSM Cloud Service Management Presentarion
rpskprasana
 
ML Based Model for NIDS MSc Updated Presentation.v2.pptx
ML Based Model for NIDS MSc Updated Presentation.v2.pptxML Based Model for NIDS MSc Updated Presentation.v2.pptx
ML Based Model for NIDS MSc Updated Presentation.v2.pptx
JamalHussainArman
 
Engine Lubrication performance System.pdf
Engine Lubrication performance System.pdfEngine Lubrication performance System.pdf
Engine Lubrication performance System.pdf
mamamaam477
 
Optimizing Gradle Builds - Gradle DPE Tour Berlin 2024
Optimizing Gradle Builds - Gradle DPE Tour Berlin 2024Optimizing Gradle Builds - Gradle DPE Tour Berlin 2024
Optimizing Gradle Builds - Gradle DPE Tour Berlin 2024
Sinan KOZAK
 
A review on techniques and modelling methodologies used for checking electrom...
A review on techniques and modelling methodologies used for checking electrom...A review on techniques and modelling methodologies used for checking electrom...
A review on techniques and modelling methodologies used for checking electrom...
nooriasukmaningtyas
 
哪里办理(csu毕业证书)查尔斯特大学毕业证硕士学历原版一模一样
哪里办理(csu毕业证书)查尔斯特大学毕业证硕士学历原版一模一样哪里办理(csu毕业证书)查尔斯特大学毕业证硕士学历原版一模一样
哪里办理(csu毕业证书)查尔斯特大学毕业证硕士学历原版一模一样
insn4465
 
Eric Nizeyimana's document 2006 from gicumbi to ttc nyamata handball play
Eric Nizeyimana's document 2006 from gicumbi to ttc nyamata handball playEric Nizeyimana's document 2006 from gicumbi to ttc nyamata handball play
Eric Nizeyimana's document 2006 from gicumbi to ttc nyamata handball play
enizeyimana36
 
BPV-GUI-01-Guide-for-ASME-Review-Teams-(General)-10-10-2023.pdf
BPV-GUI-01-Guide-for-ASME-Review-Teams-(General)-10-10-2023.pdfBPV-GUI-01-Guide-for-ASME-Review-Teams-(General)-10-10-2023.pdf
BPV-GUI-01-Guide-for-ASME-Review-Teams-(General)-10-10-2023.pdf
MIGUELANGEL966976
 
DEEP LEARNING FOR SMART GRID INTRUSION DETECTION: A HYBRID CNN-LSTM-BASED MODEL
DEEP LEARNING FOR SMART GRID INTRUSION DETECTION: A HYBRID CNN-LSTM-BASED MODELDEEP LEARNING FOR SMART GRID INTRUSION DETECTION: A HYBRID CNN-LSTM-BASED MODEL
DEEP LEARNING FOR SMART GRID INTRUSION DETECTION: A HYBRID CNN-LSTM-BASED MODEL
gerogepatton
 
ACEP Magazine edition 4th launched on 05.06.2024
ACEP Magazine edition 4th launched on 05.06.2024ACEP Magazine edition 4th launched on 05.06.2024
ACEP Magazine edition 4th launched on 05.06.2024
Rahul
 
Recycled Concrete Aggregate in Construction Part II
Recycled Concrete Aggregate in Construction Part IIRecycled Concrete Aggregate in Construction Part II
Recycled Concrete Aggregate in Construction Part II
Aditya Rajan Patra
 
Modelagem de um CSTR com reação endotermica.pdf
Modelagem de um CSTR com reação endotermica.pdfModelagem de um CSTR com reação endotermica.pdf
Modelagem de um CSTR com reação endotermica.pdf
camseq
 
Advanced control scheme of doubly fed induction generator for wind turbine us...
Advanced control scheme of doubly fed induction generator for wind turbine us...Advanced control scheme of doubly fed induction generator for wind turbine us...
Advanced control scheme of doubly fed induction generator for wind turbine us...
IJECEIAES
 
2008 BUILDING CONSTRUCTION Illustrated - Ching Chapter 02 The Building.pdf
2008 BUILDING CONSTRUCTION Illustrated - Ching Chapter 02 The Building.pdf2008 BUILDING CONSTRUCTION Illustrated - Ching Chapter 02 The Building.pdf
2008 BUILDING CONSTRUCTION Illustrated - Ching Chapter 02 The Building.pdf
Yasser Mahgoub
 

Recently uploaded (20)

A SYSTEMATIC RISK ASSESSMENT APPROACH FOR SECURING THE SMART IRRIGATION SYSTEMS
A SYSTEMATIC RISK ASSESSMENT APPROACH FOR SECURING THE SMART IRRIGATION SYSTEMSA SYSTEMATIC RISK ASSESSMENT APPROACH FOR SECURING THE SMART IRRIGATION SYSTEMS
A SYSTEMATIC RISK ASSESSMENT APPROACH FOR SECURING THE SMART IRRIGATION SYSTEMS
 
Literature Review Basics and Understanding Reference Management.pptx
Literature Review Basics and Understanding Reference Management.pptxLiterature Review Basics and Understanding Reference Management.pptx
Literature Review Basics and Understanding Reference Management.pptx
 
The Python for beginners. This is an advance computer language.
The Python for beginners. This is an advance computer language.The Python for beginners. This is an advance computer language.
The Python for beginners. This is an advance computer language.
 
Harnessing WebAssembly for Real-time Stateless Streaming Pipelines
Harnessing WebAssembly for Real-time Stateless Streaming PipelinesHarnessing WebAssembly for Real-time Stateless Streaming Pipelines
Harnessing WebAssembly for Real-time Stateless Streaming Pipelines
 
Electric vehicle and photovoltaic advanced roles in enhancing the financial p...
Electric vehicle and photovoltaic advanced roles in enhancing the financial p...Electric vehicle and photovoltaic advanced roles in enhancing the financial p...
Electric vehicle and photovoltaic advanced roles in enhancing the financial p...
 
Generative AI leverages algorithms to create various forms of content
Generative AI leverages algorithms to create various forms of contentGenerative AI leverages algorithms to create various forms of content
Generative AI leverages algorithms to create various forms of content
 
CSM Cloud Service Management Presentarion
CSM Cloud Service Management PresentarionCSM Cloud Service Management Presentarion
CSM Cloud Service Management Presentarion
 
ML Based Model for NIDS MSc Updated Presentation.v2.pptx
ML Based Model for NIDS MSc Updated Presentation.v2.pptxML Based Model for NIDS MSc Updated Presentation.v2.pptx
ML Based Model for NIDS MSc Updated Presentation.v2.pptx
 
Engine Lubrication performance System.pdf
Engine Lubrication performance System.pdfEngine Lubrication performance System.pdf
Engine Lubrication performance System.pdf
 
Optimizing Gradle Builds - Gradle DPE Tour Berlin 2024
Optimizing Gradle Builds - Gradle DPE Tour Berlin 2024Optimizing Gradle Builds - Gradle DPE Tour Berlin 2024
Optimizing Gradle Builds - Gradle DPE Tour Berlin 2024
 
A review on techniques and modelling methodologies used for checking electrom...
A review on techniques and modelling methodologies used for checking electrom...A review on techniques and modelling methodologies used for checking electrom...
A review on techniques and modelling methodologies used for checking electrom...
 
哪里办理(csu毕业证书)查尔斯特大学毕业证硕士学历原版一模一样
哪里办理(csu毕业证书)查尔斯特大学毕业证硕士学历原版一模一样哪里办理(csu毕业证书)查尔斯特大学毕业证硕士学历原版一模一样
哪里办理(csu毕业证书)查尔斯特大学毕业证硕士学历原版一模一样
 
Eric Nizeyimana's document 2006 from gicumbi to ttc nyamata handball play
Eric Nizeyimana's document 2006 from gicumbi to ttc nyamata handball playEric Nizeyimana's document 2006 from gicumbi to ttc nyamata handball play
Eric Nizeyimana's document 2006 from gicumbi to ttc nyamata handball play
 
BPV-GUI-01-Guide-for-ASME-Review-Teams-(General)-10-10-2023.pdf
BPV-GUI-01-Guide-for-ASME-Review-Teams-(General)-10-10-2023.pdfBPV-GUI-01-Guide-for-ASME-Review-Teams-(General)-10-10-2023.pdf
BPV-GUI-01-Guide-for-ASME-Review-Teams-(General)-10-10-2023.pdf
 
DEEP LEARNING FOR SMART GRID INTRUSION DETECTION: A HYBRID CNN-LSTM-BASED MODEL
DEEP LEARNING FOR SMART GRID INTRUSION DETECTION: A HYBRID CNN-LSTM-BASED MODELDEEP LEARNING FOR SMART GRID INTRUSION DETECTION: A HYBRID CNN-LSTM-BASED MODEL
DEEP LEARNING FOR SMART GRID INTRUSION DETECTION: A HYBRID CNN-LSTM-BASED MODEL
 
ACEP Magazine edition 4th launched on 05.06.2024
ACEP Magazine edition 4th launched on 05.06.2024ACEP Magazine edition 4th launched on 05.06.2024
ACEP Magazine edition 4th launched on 05.06.2024
 
Recycled Concrete Aggregate in Construction Part II
Recycled Concrete Aggregate in Construction Part IIRecycled Concrete Aggregate in Construction Part II
Recycled Concrete Aggregate in Construction Part II
 
Modelagem de um CSTR com reação endotermica.pdf
Modelagem de um CSTR com reação endotermica.pdfModelagem de um CSTR com reação endotermica.pdf
Modelagem de um CSTR com reação endotermica.pdf
 
Advanced control scheme of doubly fed induction generator for wind turbine us...
Advanced control scheme of doubly fed induction generator for wind turbine us...Advanced control scheme of doubly fed induction generator for wind turbine us...
Advanced control scheme of doubly fed induction generator for wind turbine us...
 
2008 BUILDING CONSTRUCTION Illustrated - Ching Chapter 02 The Building.pdf
2008 BUILDING CONSTRUCTION Illustrated - Ching Chapter 02 The Building.pdf2008 BUILDING CONSTRUCTION Illustrated - Ching Chapter 02 The Building.pdf
2008 BUILDING CONSTRUCTION Illustrated - Ching Chapter 02 The Building.pdf
 

10 multiplexers-de mux

  • 1. 1 CSE370, Lecture 10 Overview  Last lecture  Timing diagrams  Multilevel logic  Multilevel NAND/NOR conversion  AOI and OAI gates  Hazards  Today  "Switching-network" logic blocks  Multiplexers/selectors  Demultiplexers/decoders  Programmable logic devices (PLDs)  Regular structures for 2-level logic 2 CSE370, Lecture 10 Switching-network logic blocks  Multiplexer  Routes one of many inputs to a single output  Also called a selector  Demultiplexer  Routes a single input to one of many outputs  Also called a decoder multiplexer demultiplexer control control We construct these devices from: (1) logic gates (2) networks of tran- sistor switches 3 CSE370, Lecture 10 Rationale: Sharing complex logic functions  Share an adder: Select inputs; route sum multiple inputs multiple output destinations MUX A B Sum A0 A1 Sa Ss Sb B0 B1 MUX DEMUX Z0 Z1 single adder 4 CSE370, Lecture 10 Multiplexers  Basic concept  2n data inputs; n control inputs ("selects"); 1 output  Connects one of 2n inputs to the output  “Selects” decide which input connects to output  Two alternative truth-tables: Functional and Logical Example: A 2:1 Mux Z = SIn1 + S'Ino Functional truth table S Z 0 In0 1 In1 In1 In0 S Z 0 0 0 0 0 0 1 0 0 1 0 1 0 1 1 0 1 0 0 0 1 0 1 1 1 1 0 1 1 1 1 1 Logical truth table I0 S I1 Z
  • 2. 5 CSE370, Lecture 10 Logic-gate implementation of multiplexers 2:1 mux 4:1 mux I0 I1 I2 I3 S0 S1 I0 S I1 I0 S I1 Z Z Z 6 CSE370, Lecture 10 Multiplexers (con't)  2:1 mux: Z = S'In0 + SIn1  4:1 mux: Z = S0'S1'In0 + S0'S1In1 + S0S1'In2 + S0S1In3  8:1 mux: Z = S0'S1'S2'In0 + S0'S1S2In1 + ... I0 I1 I2 I3 I4 I5 I6 I7 S0 S1 S2 8:1 mux Z I0 I1 I2 I3 S0 S1 4:1 mux Z I0 I1 S0 2:1 mux Z 7 CSE370, Lecture 10 Cascading multiplexers  Can form large multiplexers from smaller ones  Many implementation options Z 4:1 mux S2 2:1 mux I4 I5 I6 I7 S0 S1 4:1 mux S0 Z S1 S2 4:1 mux 2:1 mux 2:1 mux 2:1 mux 2:1 mux I4 I5 I2 I3 I0 I1 I6 I7 8:1 mux 8:1 mux I0 I1 I2 I3 8 CSE370, Lecture 10 Multiplexers as general-purpose logic  A 2n:1 mux can implement any function of n variables  A lookup table  A 2n – 1 :1 mux also can implement any function of n variables  Example: F(A,B,C) = m0 + m2 + m6 + m7 = A'B'C' + A'BC' + ABC' + ABC = A'B'(C') + A'B(C') + AB(0) + AB(1) A B C F 0 0 0 1 0 0 1 0 0 1 0 1 0 1 1 0 1 0 0 0 1 0 1 0 1 1 0 1 1 1 1 1 C' C' 0 1 S1 S0 F 0 1 2 3 4:1 MUX C' C' 0 1 0 1 2 3 4 5 6 7 1 0 1 0 0 0 1 1 S2 8:1 MUX S1 S0 F A B C A B
  • 3. 9 CSE370, Lecture 10 Multiplexers as general-purpose logic  Implementing a 2n:1 mux as a function of n–1 variables  (n-1) mux control variables S0 – Sn–1  One data variable Sn  Four possible values for each data input: 0, 1, Sn, Sn'  Example: F(A,B,C,D) implemented using an 8:1 mux Choose A,B,C as control variables Choose D as a data variable 0 1 2 3 4 5 6 7 1 D 0 1 D' D D' D' A 8:1 MUX B C F D 1 0 1 1 1 0 0 0 1 1 0 1 0 1 1 0 AB CD A 00 01 11 10 00 01 11 10 C B S2 S1 S0 F=A’B’C’(1)+A’B’C(D)+A’BC’(0)+A’BC(1) +AB’C’(D’)+AB’C(D)+ABC’(D’)+ABC(D’) F = A’B’C’+A’CD+B’CD+AC’D’+BCD’ 10 CSE370, Lecture 10 Demultiplexers  Basic concept  Single data input; n control inputs (“selects”); 2n outputs  Single input connects to one of 2n outputs  “Selects” decide which output is connected to the input  When used as a decoder, the input is called an “enable” (G) 1:2 Decoder: Out0 = G • S' Out1 = G • S 2:4 Decoder: Out0 = G • S1' • S0' Out1 = G • S1' • S0 Out2 = G • S1 • S0' Out3 = G • S1 • S0 3:8 Decoder: Out0 = G • S2' • S1' • S0' Out1 = G • S2' • S1' • S0 Out2 = G • S2' • S1 • S0' Out3 = G • S2' • S1 • S0 Out4 = G • S2 • S1' • S0' Out5 = G • S2 • S1' • S0 Out6 = G • S2 • S1 • S0' Out7 = G • S2 • S1 • S0 11 CSE370, Lecture 10 Logic-gate implementation of demultiplexers 1:2 demux Out0 G S Out1 S1 Out2 Out3 Out0 G Out1 S0 2:4 demux 12 CSE370, Lecture 10 Demultiplexers as general-purpose logic  A n:2n demux can implement any function of n variables  Use variables as select inputs  Tie enable input to logic 1  Sum the appropriate minterms (extra OR gate) demultiplexer “decodes” appropriate minterms from the control signals C A B 0 A'B'C' 1 A'B'C 2 A'BC' 3 A'BC 4 AB'C' 5 AB'C 6 ABC' 7 ABC S2 3:8 Demux S1 S0 1
  • 4. 13 CSE370, Lecture 10 Demultiplexers as general-purpose logic Example F1 = A'BC'D + A'B'CD + ABCD F2 = ABC'D' + ABC F3 = (A'+B'+C'+D') A B 0 A'B'C'D' 1 A'B'C'D 2 A'B'CD' 3 A'B'CD 4 A'BC'D' 5 A'BC'D 6 A'BCD' 7 A'BCD 8 AB'C'D' 9 AB'C'D 10 AB'CD' 11 AB'CD 12 ABC'D' 13 ABC'D 14 ABCD' 15 ABCD 4:16 Demux Enable = 1 C D F1 F2 F3 14 CSE370, Lecture 10 Cascading demultiplexers  5:32 demux 0 A'B'C'D'E' 1 2 3 4 5 6 7 S2 3:8 Demux S1 S0 A B 0 1 2 3 S1 2:4 Demux S0 F E C D 0 1 2 3 4 5 6 7 ABCDE S2 S1 S0 0 1 2 A'BC'DE' 3 4 5 6 7 S2 S1 S0 E C D 0 AB'C'D'E' 1 2 3 4 5 6 7 AB'CDE S2 S1 S0 3:8 Demux 3:8 Demux 3:8 Demux 15 CSE370, Lecture 10 • • • • • • inputs outputs product terms AND array OR array Programmable logic (PLAs & PALs )  Concept: Large array of uncommitted AND/OR gates  Actually NAND/NOR gates  You program the array by making or breaking connections  Programmable block for sum-of-products logic 16 CSE370, Lecture 10 All two-level logic functions are available  You "program" the wire connections A 3-input, 5-term, 4-function PLA
  • 5. 17 CSE370, Lecture 10 Sharing product terms  Example: F0 = A + B'C' F1 = AC' + AB F2 = B'C' + AB F3 = B'C + A  Personality matrix: 1 = asserted in term 0 = negated in term – = does not participate inputs 1 = term connected to output 0 = no connection to output outputs product inputs outputs term A B C F0 F1 F2 F3 AB 1 1 – 0 1 1 0 B'C – 0 1 0 0 0 1 AC' 1 – 0 0 1 0 0 B'C' – 0 0 1 0 1 0 A 1 – – 1 0 0 1 Reuse terms 18 CSE370, Lecture 10 Programming the wire connections  Fuse: Comes connected; break unwanted connections  Anti-fuse: Comes disconnected; make wanted connections A B C F1 F2 F3 F0 AB B'C AC' B'C' A F0 = A + B'C' F1 = AC' + AB F2 = B'C' + AB F3 = B'C + A