fourByFourMux.vhd

-- msTimer - 4 x 4bit MUX

library IEEE;
use IEEE.STD_LOGIC_1164.ALL;
use IEEE.STD_LOGIC_ARITH.ALL;
use IEEE.STD_LOGIC_UNSIGNED.ALL;

entity fourByThreeMux is
port(    sel:                in        std_logic_vector(1 downto 0);
        i0,i1,i2,i3:    in     std_logic_vector(3 downto 0);
        y:                    out     std_logic_vector(3 downto 0));
end fourByThreeMux;

architecture Behavioral of fourByThreeMux is
begin

    with sel select
        y <=
            i0 when "00",
            i1 when "01",
            i2 when "10",
            i3 when others;

end Behavioral;

Creative Commons License
Milisecond Precsion Timer by Patrick Kramer is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 United States License.

<< BACK

  1. No comments yet.

  1. No trackbacks yet.