.lib /usr/local/share/pdk/sky130A/libs.tech/ngspice/sky130.lib.spice tt
.GLOBAL GND
XM1 out in GND GND sky130_fd_pr__nfet_01v8 L=0.15 W='5 * 1 ' nf=1
Rd vdd out 1k m=1
Vin in GND 1.8
Vdd vdd GND 1.8
.control
.save deriv(V(out))
.save V(in)
.save V(out)
.save I(Vdd)
dc Vin 0 1.8 0.005 Rd 500 3500 500
write filename.raw
.endc
.end
.lib /usr/local/share/pdk/sky130A/libs.tech/ngspice/sky130.lib.spice tt
.GLOBAL GND
XM1 out in vdd vdd sky130_fd_pr__pfet_01v8 L=0.15 W='5 * 1 ' nf=1
Rd out GND 1k m=1
Vin in GND 1.8
Vdd vdd GND 1.8
.control
.save deriv(V(out))
.save V(in)
.save V(out)
.save I(Vdd)
dc Vin 0 1.8 0.005 Rd 500 3500 500
write filename.raw
.endc
.end