I have a dout how would circuit designers design a circuit ?? For example we take a lc oscillator?? How come a designer know that the nmos or pmos used should connect in a proper way?? Where the input is given?? And how to connect each of them ?? Please some one explain me the root logic behind this.
Most of design are taken from the Datasheet, when making a device the application circuit also built accordingly.
The behavior of the every IC, and others are checked and those information are attached with datasheet. Most of the designers will look for datasheet and with application examples they will design.
In your case:
It is very clear the the PMOS should be near Power supply (+ve) and NMOS should be near ground (-ve)
A lot of this is simply "design lore" which has to be
absorbed and integrated with your artistic side, in
order to build the sculpture. You have to collect your
chisels and mallet, like. And practice, and observe.
This normally happens over the course of some years
in school and some decades outside, as you proceed
from apprentice to journeyman to master of your craft.
Not within the attention-span of an internet discussion
thread and its denizens.