PPT ½½¶óÀ̵å
- 2 to 1 Mux (WHEN ELSE±¸¹®)
library ieee;
use ieee.std_logic_1164.all;
entity mux2 is
port (
i0,i1 : in std_logic;
sel : in std_logic;
y : out std_logic
);
end mux2;
architecture behave_mux2 of mux2 is
begin
y <= i0 when sel = ¡®0¡¯ else i1;
end behave_mux2;