entity NAND2 is
	port(
	A,B: in bit;
	C: out bit);
end NAND2;

architecture behavior of NAND2 is 
signal COut: bit;
begin
	COut <= A and B;
	C<= not COut;
end behavior;