The basic common-source amplifier is given here, from Schematics.
Plots of the load resistor and PMOS characteristics are shown here. The PMOS gate voltage is selected to provide an intersection at VD=4 V, for a suitable operating point. The gain will be the transconductance gm divided by the sum of gds of the transistor, and 1/RD, that is the load conductance. The plots indicate that there exists a somewhat linear range for over plus and minus 2V.
A DC sweep follows. The pre-saturation appears on the right end, and the center confirms the bias point from the above plot. A linear estimate from VG1=2.2 to VG1=2.6 for an increment of VD=3 V predicts a DC transfer of -7.5.
The DC transfer simulator is used to check the results. The DC transfer is the slope over a short range of VG. CS gain is computed as shown below.
NMOS case. The gds of the NMOS is superior, as is gm.
The following is for replacing RD with an NMOS. VGn is adjusted for the same output bias voltage. The slope of the NMOS is much less than for case of RD. The NMOS load is equivalent to a resistor with intercept at a negative VDS value.
This circuit, from Schematics, with dual power supplies, is shown here. Note that the gate voltage VGSp is 4-1.65.
A DC sweep from Schematics follows, with variable VGn. The bias value, for VD=4 V, agrees with the above plot. The DC transfer is given below. The output resistance is about 37k compared with approximately 10k for the RD case.
The LabVIEW simulator for the circuit is here.
The practical amplifier replaces the DC source with a diode-connected transistor as in the next circuit. The value of R2 is selected to establish the voltage VGn of the above circuit, which is VGS3, with VDS3=VGS3. The DC transfer is the same as in that circuit.
The LabVIEW simulator now includes this feature. The voltage VGn here is supplied by the reference circuit.
The reference voltage iteration loop is as follows. The iteration is on the resistance voltage, and the loop halts when the current through the resistor is equal to that from the NMOS simulator, 3 N.