SlideShare a Scribd company logo
1 of 20
Unit III - Multiplexers
Introduction
• A multiplexer connects data from one of
the multiple sources to the output
• The image shows a n-input b-bit
multiplexer
• Each data source has b-bits
• Based on the select value, any one of the
data sources will be connected to the
output
Functional Diagram
74x151 8 input 1-bit Multiplexer
• It has 8(n) input lines each with 1 bit
of data
• It requires 3 select pins to select any
of the eight inputs
• No of select pins s= log2n
• It has an Enable pin which is active
low
• The inverted output is also available
Functional Truth table
Logic Diagram
module mux8to1( input C,B,A, EN_L, input [7:0] D, output reg Y,Y_L );
always @(*)
begin
casex({EN_L, C, B, A})
4'b1xxx: begin Y=0; Y_L=~Y; end
4'b0000: begin Y=D[0]; Y_L=~Y; end
4'b0001: begin Y=D[1]; Y_L=~Y; end
4'b0010: begin Y=D[2]; Y_L=~Y; end
4'b0011: begin Y=D[3]; Y_L=~Y; end
4'b0100: begin Y=D[4]; Y_L=~Y; end
4'b0101: begin Y=D[5]; Y_L=~Y; end
4'b0110: begin Y=D[6]; Y_L=~Y; end
4'b0111: begin Y=D[7]; Y_L=~Y; end
default: begin Y=0; Y_L=~Y; end
endcase
end
endmodule
Cascading 8 :1 Mux to realize 32 :1 Mux
XEN_L XA4 XA3 XA2 XA1 XA0 XO_0 XO_1 XO_2 XO_3 XOUT
0 0 0 0 0 0 X0 0 0 0 X0
0 0 0 0 0 1 X1 0 0 0 X1
0 0 0 0 1 0 X2 0 0 0 X2
0 0 0 0 1 1 X3 0 0 0 X3
0 0 0 1 0 0 X4 0 0 0 X4
0 0 0 1 0 1 X5 0 0 0 X5
0 0 0 1 1 0 X6 0 0 0 X6
0 0 0 1 1 1 X7 0 0 0 X7
0 0 1 0 0 0 0 X8 0 0 X8
0 0 1 0 0 1 0 X9 0 0 X9
0 0 1 0 1 0 0 X10 0 0 X10
0 0 1 0 1 1 0 X11 0 0 X11
0 0 1 1 0 0 0 X12 0 0 X12
0 0 1 1 0 1 0 X13 0 0 X13
0 0 1 1 1 0 0 X14 0 0 X14
0 0 1 1 1 1 0 X15 0 0 X15
XEN_L XA4 XA3 XA2 XA1 XA0 XO_0 XO_1 XO_2 XO_3 XOUT
0 1 0 0 0 0 0 0 X16 0 X16
0 1 0 0 0 1 0 0 X17 0 X17
0 1 0 0 1 0 0 0 X18 0 X18
0 1 0 0 1 1 0 0 X19 0 X19
0 1 0 1 0 0 0 0 X20 0 X20
0 1 0 1 0 1 0 0 X21 0 X21
0 1 0 1 1 0 0 0 X22 0 X22
0 1 0 1 1 1 0 0 X23 0 X23
0 1 1 0 0 0 0 0 0 X24 X24
0 1 1 0 0 1 0 0 0 X25 X25
0 1 1 0 1 0 0 0 0 X26 X26
0 1 1 0 1 1 0 0 0 X27 X27
0 1 1 1 0 0 0 0 0 X28 X28
0 1 1 1 0 1 0 0 0 X29 X29
0 1 1 1 1 0 0 0 0 X30 X30
0 1 1 1 1 1 0 0 0 X31 X31
Questions
1. Draw the logic diagram of 74x151 and explain its operation
2. Design a 32x1 Multiplexer using 8x1 multiplexers
3. Draw the logic symbol, write the truth table and write the VeriLog
code for 8x1 multiplexer
74x157 2-input 4-bit multiplexer
• It has 2(n) input lines each of which is
4(b) bits width
• One select pin to select one of the two
inputs
module mux2input4bit(
input G_L, S,
input [3:0] A, B,
output reg[3:0] Y
);
always @(*)
begin
if(G_L==1)
Y=4'b0000;
else if(G_L==0 & S==0)
Y=A;
else
Y=B;
end
endmodule
module muxdf24( input G_L, S, input [3:0] A, B, output [3:0] Y );
wire SA, SB, YA1, YB1, YA2, YB2, YA3, YB3, YA4, YB4;
assign SA= (~G_L & ~S);
assign SB= (~G_L & S);
assign YA1= (SA & A[0]);
assign YB1= (SB & B[0]);
assign YA2= (SA & A[1]);
assign YB2= (SB & B[1]);
assign YA3= (SA & A[2]);
assign YB3= (SB & B[2]);
assign YA4= (SA & A[3]);
assign YB4= (SB & B[3]);
assign Y[0]= (YA1 | YB1);
assign Y[1]= (YA2 | YB2);
assign Y[2]= (YA3 | YB3);
assign Y[3]= (YA4 | YB4);
endmodule
74x153 4-input 2-bit multiplexer
• It has 4 inputs each of which is 2 bits
width
• A, B are the select pins which selects any
one of the four inputs
• Enable pins are provided for selection of
individual bits in each input
Demultiplexer
• A demux does the reverse operation of the multiplexer
• It receives the data and based on the select pins the data will be
passed to the one of the outputs
• A decoder can be used as a demultiplexer by giving the data line to the
enable pin of the decoder
• The select lines of the decoder will decide which output line will be
driven with that data
• For example, half section of a 74x139 decoder can be used as a 1-bit 4
output demultiplexer
MULTIPLEXER_DICA UNIT III-III.pptx

More Related Content

Similar to MULTIPLEXER_DICA UNIT III-III.pptx

Encoder, decoder, multiplexers and demultiplexers
Encoder, decoder, multiplexers and demultiplexersEncoder, decoder, multiplexers and demultiplexers
Encoder, decoder, multiplexers and demultiplexerspubgalarab
 
Combinational logic 2
Combinational logic 2Combinational logic 2
Combinational logic 2Heman Pathak
 
Digital electronics Multiplexers & Demultiplexers
Digital electronics Multiplexers & DemultiplexersDigital electronics Multiplexers & Demultiplexers
Digital electronics Multiplexers & DemultiplexersSweta Kumari Barnwal
 
UNIT - II.pptx
UNIT - II.pptxUNIT - II.pptx
UNIT - II.pptxamudhak10
 
multiplexers and demultiplexers
 multiplexers and demultiplexers multiplexers and demultiplexers
multiplexers and demultiplexersUnsa Shakir
 
Mux decod pld2_vs2
Mux decod pld2_vs2Mux decod pld2_vs2
Mux decod pld2_vs2WanNurdiana
 
Switching theory unit 2
Switching theory unit 2Switching theory unit 2
Switching theory unit 2SURBHI SAROHA
 
Combinational circuits
Combinational circuitsCombinational circuits
Combinational circuitsHareem Aslam
 
21EC201– Digital Principles and system design.pptx
21EC201– Digital Principles and system design.pptx21EC201– Digital Principles and system design.pptx
21EC201– Digital Principles and system design.pptxGobinathAECEJRF1101
 
computer logic and digital design chapter 1
computer logic and digital design chapter 1computer logic and digital design chapter 1
computer logic and digital design chapter 1tendaisigauke3
 
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 LogicGouda Mando
 
Kaizen cso002 l1
Kaizen cso002 l1Kaizen cso002 l1
Kaizen cso002 l1asslang
 
Digital VLSI - Unit 2.pptx
Digital VLSI - Unit 2.pptxDigital VLSI - Unit 2.pptx
Digital VLSI - Unit 2.pptxSanjaiPrasad
 

Similar to MULTIPLEXER_DICA UNIT III-III.pptx (20)

Multiplexers & Demultiplexers
Multiplexers & DemultiplexersMultiplexers & Demultiplexers
Multiplexers & Demultiplexers
 
Encoder, decoder, multiplexers and demultiplexers
Encoder, decoder, multiplexers and demultiplexersEncoder, decoder, multiplexers and demultiplexers
Encoder, decoder, multiplexers and demultiplexers
 
Combinational logic 2
Combinational logic 2Combinational logic 2
Combinational logic 2
 
Digital electronics Multiplexers & Demultiplexers
Digital electronics Multiplexers & DemultiplexersDigital electronics Multiplexers & Demultiplexers
Digital electronics Multiplexers & Demultiplexers
 
UNIT - II.pptx
UNIT - II.pptxUNIT - II.pptx
UNIT - II.pptx
 
multiplexers and demultiplexers
 multiplexers and demultiplexers multiplexers and demultiplexers
multiplexers and demultiplexers
 
Mux decod pld2_vs2
Mux decod pld2_vs2Mux decod pld2_vs2
Mux decod pld2_vs2
 
Switching theory unit 2
Switching theory unit 2Switching theory unit 2
Switching theory unit 2
 
Combinational circuits
Combinational circuitsCombinational circuits
Combinational circuits
 
UNIT3.3.pdf
UNIT3.3.pdfUNIT3.3.pdf
UNIT3.3.pdf
 
Combinational circuits
Combinational circuitsCombinational circuits
Combinational circuits
 
21EC201– Digital Principles and system design.pptx
21EC201– Digital Principles and system design.pptx21EC201– Digital Principles and system design.pptx
21EC201– Digital Principles and system design.pptx
 
Chapter1.ppt
Chapter1.pptChapter1.ppt
Chapter1.ppt
 
computer logic and digital design chapter 1
computer logic and digital design chapter 1computer logic and digital design chapter 1
computer logic and digital design chapter 1
 
Chapter1
Chapter1Chapter1
Chapter1
 
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
 
Kaizen cso002 l1
Kaizen cso002 l1Kaizen cso002 l1
Kaizen cso002 l1
 
multiplexer and d-multiplexer
multiplexer and d-multiplexermultiplexer and d-multiplexer
multiplexer and d-multiplexer
 
Digital VLSI - Unit 2.pptx
Digital VLSI - Unit 2.pptxDigital VLSI - Unit 2.pptx
Digital VLSI - Unit 2.pptx
 
Digital Logic circuit
Digital Logic circuitDigital Logic circuit
Digital Logic circuit
 

Recently uploaded

Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escortsranjana rawat
 
Introduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxIntroduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxupamatechverse
 
Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)simmis5
 
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...Call Girls in Nagpur High Profile
 
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and workingUNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and workingrknatarajan
 
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCollege Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCall Girls in Nagpur High Profile
 
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdfONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdfKamal Acharya
 
Russian Call Girls in Nagpur Grishma Call 7001035870 Meet With Nagpur Escorts
Russian Call Girls in Nagpur Grishma Call 7001035870 Meet With Nagpur EscortsRussian Call Girls in Nagpur Grishma Call 7001035870 Meet With Nagpur Escorts
Russian Call Girls in Nagpur Grishma Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
UNIT-II FMM-Flow Through Circular Conduits
UNIT-II FMM-Flow Through Circular ConduitsUNIT-II FMM-Flow Through Circular Conduits
UNIT-II FMM-Flow Through Circular Conduitsrknatarajan
 
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Bookingdharasingh5698
 
MANUFACTURING PROCESS-II UNIT-1 THEORY OF METAL CUTTING
MANUFACTURING PROCESS-II UNIT-1 THEORY OF METAL CUTTINGMANUFACTURING PROCESS-II UNIT-1 THEORY OF METAL CUTTING
MANUFACTURING PROCESS-II UNIT-1 THEORY OF METAL CUTTINGSIVASHANKAR N
 
Introduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxIntroduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxupamatechverse
 
Extrusion Processes and Their Limitations
Extrusion Processes and Their LimitationsExtrusion Processes and Their Limitations
Extrusion Processes and Their Limitations120cr0395
 
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Christo Ananth
 
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINEMANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINESIVASHANKAR N
 

Recently uploaded (20)

Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
 
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINEDJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
 
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
 
Introduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxIntroduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptx
 
Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)
 
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
 
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and workingUNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
 
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCollege Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
 
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdfONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
 
Russian Call Girls in Nagpur Grishma Call 7001035870 Meet With Nagpur Escorts
Russian Call Girls in Nagpur Grishma Call 7001035870 Meet With Nagpur EscortsRussian Call Girls in Nagpur Grishma Call 7001035870 Meet With Nagpur Escorts
Russian Call Girls in Nagpur Grishma Call 7001035870 Meet With Nagpur Escorts
 
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
UNIT-II FMM-Flow Through Circular Conduits
UNIT-II FMM-Flow Through Circular ConduitsUNIT-II FMM-Flow Through Circular Conduits
UNIT-II FMM-Flow Through Circular Conduits
 
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
 
MANUFACTURING PROCESS-II UNIT-1 THEORY OF METAL CUTTING
MANUFACTURING PROCESS-II UNIT-1 THEORY OF METAL CUTTINGMANUFACTURING PROCESS-II UNIT-1 THEORY OF METAL CUTTING
MANUFACTURING PROCESS-II UNIT-1 THEORY OF METAL CUTTING
 
Introduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxIntroduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptx
 
Extrusion Processes and Their Limitations
Extrusion Processes and Their LimitationsExtrusion Processes and Their Limitations
Extrusion Processes and Their Limitations
 
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
 
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINEMANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
 
Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024
 

MULTIPLEXER_DICA UNIT III-III.pptx

  • 1. Unit III - Multiplexers
  • 2. Introduction • A multiplexer connects data from one of the multiple sources to the output • The image shows a n-input b-bit multiplexer • Each data source has b-bits • Based on the select value, any one of the data sources will be connected to the output
  • 4. 74x151 8 input 1-bit Multiplexer • It has 8(n) input lines each with 1 bit of data • It requires 3 select pins to select any of the eight inputs • No of select pins s= log2n • It has an Enable pin which is active low • The inverted output is also available
  • 7. module mux8to1( input C,B,A, EN_L, input [7:0] D, output reg Y,Y_L ); always @(*) begin casex({EN_L, C, B, A}) 4'b1xxx: begin Y=0; Y_L=~Y; end 4'b0000: begin Y=D[0]; Y_L=~Y; end 4'b0001: begin Y=D[1]; Y_L=~Y; end 4'b0010: begin Y=D[2]; Y_L=~Y; end 4'b0011: begin Y=D[3]; Y_L=~Y; end 4'b0100: begin Y=D[4]; Y_L=~Y; end 4'b0101: begin Y=D[5]; Y_L=~Y; end 4'b0110: begin Y=D[6]; Y_L=~Y; end 4'b0111: begin Y=D[7]; Y_L=~Y; end default: begin Y=0; Y_L=~Y; end endcase end endmodule
  • 8. Cascading 8 :1 Mux to realize 32 :1 Mux
  • 9. XEN_L XA4 XA3 XA2 XA1 XA0 XO_0 XO_1 XO_2 XO_3 XOUT 0 0 0 0 0 0 X0 0 0 0 X0 0 0 0 0 0 1 X1 0 0 0 X1 0 0 0 0 1 0 X2 0 0 0 X2 0 0 0 0 1 1 X3 0 0 0 X3 0 0 0 1 0 0 X4 0 0 0 X4 0 0 0 1 0 1 X5 0 0 0 X5 0 0 0 1 1 0 X6 0 0 0 X6 0 0 0 1 1 1 X7 0 0 0 X7 0 0 1 0 0 0 0 X8 0 0 X8 0 0 1 0 0 1 0 X9 0 0 X9 0 0 1 0 1 0 0 X10 0 0 X10 0 0 1 0 1 1 0 X11 0 0 X11 0 0 1 1 0 0 0 X12 0 0 X12 0 0 1 1 0 1 0 X13 0 0 X13 0 0 1 1 1 0 0 X14 0 0 X14 0 0 1 1 1 1 0 X15 0 0 X15
  • 10. XEN_L XA4 XA3 XA2 XA1 XA0 XO_0 XO_1 XO_2 XO_3 XOUT 0 1 0 0 0 0 0 0 X16 0 X16 0 1 0 0 0 1 0 0 X17 0 X17 0 1 0 0 1 0 0 0 X18 0 X18 0 1 0 0 1 1 0 0 X19 0 X19 0 1 0 1 0 0 0 0 X20 0 X20 0 1 0 1 0 1 0 0 X21 0 X21 0 1 0 1 1 0 0 0 X22 0 X22 0 1 0 1 1 1 0 0 X23 0 X23 0 1 1 0 0 0 0 0 0 X24 X24 0 1 1 0 0 1 0 0 0 X25 X25 0 1 1 0 1 0 0 0 0 X26 X26 0 1 1 0 1 1 0 0 0 X27 X27 0 1 1 1 0 0 0 0 0 X28 X28 0 1 1 1 0 1 0 0 0 X29 X29 0 1 1 1 1 0 0 0 0 X30 X30 0 1 1 1 1 1 0 0 0 X31 X31
  • 11. Questions 1. Draw the logic diagram of 74x151 and explain its operation 2. Design a 32x1 Multiplexer using 8x1 multiplexers 3. Draw the logic symbol, write the truth table and write the VeriLog code for 8x1 multiplexer
  • 12. 74x157 2-input 4-bit multiplexer • It has 2(n) input lines each of which is 4(b) bits width • One select pin to select one of the two inputs
  • 13.
  • 14. module mux2input4bit( input G_L, S, input [3:0] A, B, output reg[3:0] Y ); always @(*) begin if(G_L==1) Y=4'b0000; else if(G_L==0 & S==0) Y=A; else Y=B; end endmodule
  • 15. module muxdf24( input G_L, S, input [3:0] A, B, output [3:0] Y ); wire SA, SB, YA1, YB1, YA2, YB2, YA3, YB3, YA4, YB4; assign SA= (~G_L & ~S); assign SB= (~G_L & S); assign YA1= (SA & A[0]); assign YB1= (SB & B[0]); assign YA2= (SA & A[1]); assign YB2= (SB & B[1]); assign YA3= (SA & A[2]); assign YB3= (SB & B[2]); assign YA4= (SA & A[3]); assign YB4= (SB & B[3]); assign Y[0]= (YA1 | YB1); assign Y[1]= (YA2 | YB2); assign Y[2]= (YA3 | YB3); assign Y[3]= (YA4 | YB4); endmodule
  • 16. 74x153 4-input 2-bit multiplexer • It has 4 inputs each of which is 2 bits width • A, B are the select pins which selects any one of the four inputs • Enable pins are provided for selection of individual bits in each input
  • 17.
  • 18. Demultiplexer • A demux does the reverse operation of the multiplexer • It receives the data and based on the select pins the data will be passed to the one of the outputs
  • 19. • A decoder can be used as a demultiplexer by giving the data line to the enable pin of the decoder • The select lines of the decoder will decide which output line will be driven with that data • For example, half section of a 74x139 decoder can be used as a 1-bit 4 output demultiplexer