Multiplexer and Demultiplexer
Multiplexer and Demultiplexer
Enable E
Select Lines
entity mux8 3 is
port (sel : in std logie_vector(2 downto 0):
DO.DID2,D3.D4,D5,D6.D7 enable: in std logic:
Y:outstd logic);
end mux8 3:
architecture behavior of mux8 3 is
begin
if (enable=-0)
then
begin
process (sel, D0,D1,D2,D3,D4,DS,D6,D7)
begin
case sel is
when "000 => Y <-D0;
when "001" => Y <-D1;
when "010" =>Y <=D2;
when "011" => Y <=D3;
when "100" => Y <=D4;
when "101" =>Y <-D5:
when 110" => Y <-D6;
when 111" =>Y<-D7;
when others => Y <-D0;$
end case:;
end process;
else
Y <=0;
end if;
end mux8 3;
1:4Demultiplexer
Ademultiplexer is a combinational logic circuit that receives the information on a single input
and transmitsthe same information over one of 2n possible output lines.
m. hi combinations of the select lines control the selection of
specific output line to be
oonnected to the input at given instant. A l-t0-4 demultiplexer has a single input (D), two
selection lines (SI and S0) and four outputs (YO to Y3). The input data goes to any one of the
four outputs at a given time for a particular combination of select lines.
This demultiplexer is also called as a 2-to-4 demultiplexer which means that two select lines and
4output lines. The block diagram of 1:4 DEMUX is shown below.
Outputs
YO
Input 1:4
Din
DEMUX Y2
Y3
S S0