entity fulladder is port ( a : in bit; b : in bit; c : in bit; u : out bit; s : out bit ); end; architecture behv of fulladder is begin s <= a xor b xor c; u <= (a and b) or (b and c) or (a and c); end;