digital integrated circuits and applications is a course in electronics and communication branch in engineering .multiplexers is a concept in digital integrated circuits.
this concept is very useful in engineering domain
electronics and communication branch is most recognised branch in engineering domain
multiplexers are used in digital communications.
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
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
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