GitHub
06/15/2025, 7:19 PM** sch_path: /home/mati/IC_projects/test1/test_inverter.sch
**.subckt test_inverter
U1 VDD Vout Vin GND inverter
V1 Vin GND PULSE(0 1.8 1ns 100ps 100ps 2ns 4ns)
V2 VDD GND 1.8
C1 Vout GND 10p m=1
**** begin user architecture code
*.dc V1 0 1.8 0.01
.save all
.tran 0.01n 8n
.lib /usr/local/share/pdk/sky130B/libs.tech/combined/sky130.lib.spice tt
**** end user architecture code
**.ends
• expanding symbol: inverter.sym # of pins=4
** sym_path: /home/mati/IC_projects/test1/inverter.sym
** sch_path: /home/mati/IC_projects/test1/inverter.sch
.subckt inverter VDD Vout Vin VSS
*.opin Vout
*.ipin Vin
*.iopin VSS
*.iopin VDD
XM1 Vout Vin VSS VSS sky130_fd_pr__nfet_01v8 L=0.15 W=2 nf=1 ad=0.58 as=0.58 pd=4.58 ps=4.58 nrd=0.145 nrs=0.145 sa=0 sb=0 sd=0
• mult=1 m=1
XM2 Vout Vin VDD VDD sky130_fd_pr__pfet_01v8 L=0.15 W=6 nf=1 ad=1.74 as=1.74 pd=12.58 ps=12.58 nrd=0.0483333333333333
• nrs=0.0483333333333333 sa=0 sb=0 sd=0 mult=1 m=1
.ends
.GLOBAL VDD
.GLOBAL GND
.end
and when I simulate, I get the following error:
Note: No compatibility mode selected!
warning, can't find model 'gnd' from line
u1 vdd vout vin gnd inverter
Circuit: ** sch_path: /home/mati/ic_projects/test1/test_inverter.sch
Error on line 3 or its substitute:
u1 vdd vout vin 0 inverter
Unable to find definition of model 0
Simulation interrupted due to error!
The only step I haven't done yet from this webpage: <url|https://xschem.sourceforge.io/stefan/xschem_man/tutorial_xschem_sky130.html> is the creation of the .spiceinit file since I can't find the simulation folder.
What am I missing here? was there a problem with my installation since ngspice can't find a model for ground? It is important to say that I can simulated the included example tests for skywater.
RTimothyEdwards/open_pdksGitHub
06/16/2025, 3:09 AM