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