CS-resNoise * file: CS-resNoise.cir * SPICE (SIMetrix) circuit file .lib CMOS18-1.lib C1 1 0 1 E1 2 0 1 0 1k V1 3 2 0 R1 3 4 600 M1 5 4 0 0 C18nmos L=180n W={W} V2 5 6 0.9 R2 6 1 1meg I1 0 6 {W*6.15m/54.6u} .param W=54.6u * instruction for plotting source referred noise spectrum * over a frequency range from 100MHz to 100GHZ .noise V(5) V1 Dec 25 100meg 100G .graph "inoise" + xlog="log" * instruction for plotting the figure noise versus the width * over a frequency range from 1GHz to 5GHZ .noise V(5) V1 Lin 25 1G 5G 1 SWEEP PARAM=W LIN 100 10u 100u * Plot the noise figure NF * NF = 20*log(total_onoise/contribution_of_R1_in_total_onoise) * SIMetrix: 20*log(Sumnoise(onoise)/SumNoise(R1#noise)) .graph "XY(20*log((SumNoise(onoise))[][0]/(SumNoise(R1#noise))[][0] ),GetVecStepVals(V2#p))" + graphname="NF" + ylabel="NF" + yunit="dB" + curvelabel="Ids=W/54.6u*6.15m" + xlabel=W + xunit=m .end