Basic physical design of simple logic gates