Code:
ENTITY Decoder3_8_Enable IS
port (a: in std_logic_vector(2 downto 0);
e: in std_logic ;
y:out std_logic_vector(7 downto 0));
END ENTITY Decoder3_8_Enable;
--
ARCHITECTURE RTL OF Decoder3_8 IS
BEGIN
process (e , a)
begin
if e = '1' then
if a="000" then y="00000001"
elsif a="001" then y="00000010"
elsif a="010" then y="00000100"
elsif a="011" then y="00001000"
elsif a="100" then y="00010000"
elsif a="101" then y="00100000"
elsif a="110" then y="01000000"
elsif a="111" then y="10000000"
else'--------';
end if;
end process
END ARCHITECTURE RTL;
the code doesnt work , anyone know why ?!!