You are on page 1of 1

process(sel)

begin
case sel is
when "000"=>z<=i(0);
when "001"=>z<=i(1);
when "010"=>z<=i(2);
when "011"=>z<=i(3);
when "100"=>z<=i(4);
when "101"=>z<=i(5);
when "110"=>z<=i(6);
when "111"=>z<=i(7);
when others=>null;
end case;
end process;

You might also like