entity cfa is port (a,b,ci : in bit; s,co : out bit ); end entity; architecture arch of cfa is begin s<=ci xor a xor b; co<=(a and b) or (ci and a) or (ci and b); end architecture;