2 to 4 Line Decoder

2 to 4 Line Decoder

2 to 4 Line Decoder(Data Flow)

library ieee;
use ieee.std_logic_1164.all;
 entity Decoder2_4 is
  port( S0 : in std_logic;
        S1 : in std_logic;
        I : in std_logic;
        Out0 : out std_logic;
        Out1 : out std_logic;
        Out2 : out std_logic;
        Out3 : out std_logic);
 end entity Decoder2_4;
architecture Decoder_2_4 of Decoder2_4 is
 begin
  Out0<= (NOT S0) AND (NOT S1) AND I;
  Out1<= S0 AND (NOT S1) AND I;
  Out2<= (NOT S0) AND S1 AND I;
  Out3<= S0 AND S1 AND I;
end architecture Decoder_2_4;