--------------------------------------------------------------------------------------------------- -- -- Title : 2to1mux -- Design : MidTerm -- Author : Kamal Sayeed -- Company : George Mason University -- --------------------------------------------------------------------------------------------------- -- -- File : Th_problem3_2to1mux.vhd -- Generated : Sun Mar 7 21:01:23 2004 -- From : interface description file -- By : Itf2Vhdl ver. 1.20 -- --------------------------------------------------------------------------------------------------- library IEEE; use IEEE.STD_LOGIC_1164.all; entity Mux_2to1 is port( input1 : in STD_LOGIC; input2 : in STD_LOGIC; sel : in STD_LOGIC; output : out STD_LOGIC ); end Mux_2to1; --}} End of automatically maintained section architecture beh of Mux_2to1 is begin with sel select output <= input1 when '0', input2 when others; end beh;