Posted by Saradwata Bandyopadhyay on 28-02-2025
Here is the solution for the above question =>
library IEEE;
use IEEE.STD_LOGIC_1164.all;
entity demultiplexer1_8_case is
port(
din : in STD_LOGIC;
sel : in STD_LOGIC_VECTOR(2 downto 0);
dout : out STD_LOGIC_VECTOR(7 downto 0)
);
end demultiplexer1_8_case;
architecture demultiplexer1_8_arc of demultiplexer1_8_case is
begin
dout <= (din & "0000000") when (sel="000") else
('0' & din & "000000") when (sel="001") else
("00" & din & "00000") when (sel="010") else
("000" & din & "0000") when (sel="011") else
("0000" & din & "000") when (sel="100") else
("00000" & din & "00") when (sel="101") else
("000000" & din & '0') when (sel="110") else
("0000000" & din) ;
end demultiplexer1_8_arc;
You can directly download the Source Code and the Model Sim application from the
links below =>
Login to Comment.