logic gate (AND, OR, XOR, NOT, NAND, NOR and XNOR)