I am trying to write simple netlist which uses pmos. I am not getting any error but when I plot i(V3) vs v(vin) i got some weired waveform. Basically I am trying to plot id vs vgs.
Am I using pmos correctly. My code are as follow.
**PMOS Example
V1 vdd 0 5V
V2 vss 0 0v
V3 in vss pulse(0 3 0 100p 100p 1.9n 4n)
R1 in vin 10k
R2 out 0 4k
Mp1 out vin vdd vdd pch l=0.35u w=20.0u
.MODEL pch PMOS
.tran .1n 200n
.End
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
I am trying to write simple netlist which uses pmos. I am not getting any error but when I plot i(V3) vs v(vin) i got some weired waveform. Basically I am trying to plot id vs vgs.
Am I using pmos correctly. My code are as follow.
Hi,
Actually I am writing script for which will keeps changing the value of vth and to plot id vs vgs.
I have modefied it.
But I dont know how to use plot in control statement.
Regards,
Fahim Khan