hemanth kumar
03/14/2022, 3:29 PMLuis Henrique Rodovalho
03/14/2022, 3:33 PM* Include SkyWater sky130 device models
.lib "/usr/share/pdk/sky130A/libs.tech/ngspice/sky130.lib.spice" tt
.param mc_mm_switch=0
Luis Henrique Rodovalho
03/14/2022, 3:35 PMTed Lekan
03/23/2022, 9:33 PMLuis Henrique Rodovalho
03/23/2022, 9:50 PM* Include SkyWater sky130 device models
.include "../../../models/r+c/res_typical__cap_typical__lin.spice"
.include "../../../models/r+c/res_typical__cap_typical.spice"
.include "../../../models/corners/tt.spice"
This code here has relative paths. This might be your mistake. The code with the PDK should run with no problems unless a new update broke it.Luis Henrique Rodovalho
03/23/2022, 10:03 PM* CMOS inverter testbench
* Include SkyWater sky130 device models
.lib "/usr/share/pdk/sky130A/libs.tech/ngspice/sky130.lib.spice" tt
.param mc_mm_switch=0
.param pVDD = 3.3
VDD vdd 0 dc {pVDD}
VSS vss 0 0
.subckt inv in out vdd vss
XP out in vdd vdd sky130_fd_pr__pfet_g5v0d10v5 ad=4e+11p pd=2.8e+06u as=4e+11p ps=2.8e+06u w=1e+06u l=500000u m=3
XN out in vss vss sky130_fd_pr__nfet_g5v0d10v5 ad=4e+11p pd=2.8e+06u as=4e+11p ps=2.8e+06u w=1e+06u l=500000u m=1
.ends
vin in vss 0
* DUT
X0 in out vdd vss inv
.option gmin=1e-15
.option scale=1e-6
.control
dc vin 0 3.3 10m
plot in out
.endc
.end
Try this. This only works with Open PDKs installed, as it install all the spice models in
.lib "/usr/share/pdk/sky130A/libs.tech/ngspice/sky130.lib.spice" tt
Ted Lekan
03/24/2022, 7:52 PMLinen is a search-engine friendly community platform. We offer integrations with existing Slack/Discord communities and make those conversations Google-searchable.
Powered by