-- any Xilinx leaf cells in this code.
library UNISIM;
use UNISIM.VComponents.all;
entity AS4 is
Port ( a : in STD_LOGIC_VECTOR (3 downto 0);
b : in STD_LOGIC_VECTOR (3 downto 0);
sel : in STD_LOGIC;
s : out STD_LOGIC_VECTOR (3 downto 0);
c : out STD_LOGIC);
end AS4;
architecture AS4_arc of AS4 is
signal b_int : std_logic_vector(3 downto 0);
signal rs_int : std_logic_vector(2 downto 0);
component xor2 is port (i0,i1 : in std_logic; o :
out std_logic);
end component;
component add1c is port (x,y,re : in std_logic;
s,rs : out std_logic);
end component;
begin
inst_xor21 : xor2 port map (i0=>sel, i1=>b(0),
o=>b_int(0));
inst_xor22 : xor2 port map (i0=>sel, i1=>b(1),
o=>b_int(1));
inst_xor23 : xor2 port map (i0=>sel, i1=>b(2),
o=>b_int(2));