VHDL program for implementing a 1:8 demultiplexer using Case statement.
--VHDL program for implementing a 1 to 8 demultiplexer using Case statement.
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;
For Safe Downloading of this program file please visit :-
Labels: 1:8 demultiplexer, case, Model Sim, program, VHDL
0 Comments:
Post a Comment
Please feel free to ask your questions
Subscribe to Post Comments [Atom]
<< Home