use IEEE.STD_LOGIC_1164.ALL;
entity half_add_subtractor is
Port ( a : in STD_LOGIC;
b : in STD_LOGIC;
s : out STD_LOGIC;
c : out STD_LOGIC;
d : out STD_LOGIC;
bo : out STD_LOGIC);
end half_add_subtractor;
begin
s <= a xor b ;
c <= a and b;
d <= a xor b;
bo <= (not a ) and b ;
end Behavioral;