Hi, my SPICE simulation (for the inverter circuit)...
# sky130-pv-workshop
a
Hi, my SPICE simulation (for the inverter circuit) fails due to a parameter error. The error points to the SPICE model of the nfet_01v8 device. I checked the videos again and could not spot any difference between the presented example and my own design. Did I miss anything? Following are the error and SPICE netlist for the inverter.
Copy code
β€Œβ€Œβ€Œ**.subckt inverter in out vdd vss
*.ipin in
*.opin out
*.iopin vdd
*.iopin vss
XM1 out in vss vss sky130_fd_pr__nfet_01v8 L=0.18 W=4.5 nf=3 ad='int((nf+1)/2) * W/nf * 0.29' as='int((nf+2)/2) * W/nf * 0.29'
+ pd='2*int((nf+1)/2) * (W/nf + 0.29)' ps='2*int((nf+2)/2) * (W/nf + 0.29)' nrd='0.29 / W' nrs='0.29 / W'
+ sa=0 sb=0 sd=0 mult=1 m=1 
XM2 out in vdd vdd sky130_fd_pr__pfet_01v8 L=0.18 W=3 nf=3 ad='int((nf+1)/2) * W/nf * 0.29' as='int((nf+2)/2) * W/nf * 0.29'
+ pd='2*int((nf+1)/2) * (W/nf + 0.29)' ps='2*int((nf+2)/2) * (W/nf + 0.29)' nrd='0.29 / W' nrs='0.29 / W'
+ sa=0 sb=0 sd=0 mult=1 m=1 
**.ends
** flattened .save nodes
.end
s
Have you copied the .spiceinit file in the scheme directory?
πŸ‘ 1
a
That's it! Apparently I had set up a symbolic link for spinit, but did not rename the link target from "spinit" to ".spiceinit"...
y
Hey, I am facing a similar issue, any suggestions?
a
Your install of the pdk appears to be at /usr/*local*/share/pdk. The default is /usr/share/pdk (no local). If the pdk is installed to a different location you need to change the xschemrc file, since it contains some variables with absolute paths to the spice models. E.g. look at the very end of xschemrc where the variable SKYWATER_MODELS are defined.
y
As seen in the terminal, the xschemrc does find the pdk install directory and sets all the required paths appropriately
the xschemrc docs have functions to set the paths automatically in case they are not at the default location
@SUMANTO KAR would you have any idea how to solve this issue?
s
@Yatharth Agarwal @andrsmllr remive the pclm and drout parameters from the spice file or xchem which are giving errors