Meinhard Kissich
02/20/2023, 7:55 PMsky130_ef_sc_hd__decap_12
), Xyce fails and reports unrecognized symbols.
SPICE file:
XyceDemo
.lib /home/user/.volare/sky130A/libs.tech/ngspice/sky130.lib.spice tt
Xinv Y A VPWR VGND VGND VPWR inverter
.subckt inverter Y A NWELL VSUBS VGND VPWR
X0 VPWR VGND VPWR NWELL sky130_fd_pr__pfet_01v8_hvt ad=4.524e+11p pd=4.52e+06u as=0p ps=0u w=870000u l=4.73e+06u
X1 VGND VPWR VGND VSUBS sky130_fd_pr__nfet_01v8 ad=2.86e+11p pd=3.24e+06u as=0p ps=0u w=550000u l=4.73e+06u
X2 Y A VPWR NWELL sky130_fd_pr__pfet_01v8 w=1e+06u l=150000u
X3 Y A VGND VSUBS sky130_fd_pr__nfet_01v8 w=650000u l=150000u
.ends
Vgnd VGND 0 0
Vdd VPWR VGND 1.8
Vin A VGND pulse(0 1.8 1p 10p 10p 1n 2n)
.tran 10e-12 2e-09 0e-00
.end
Error:
Netlist error in file
/home/user/.volare/sky130A/libs.tech/ngspice/corners/../../../libs.ref/sky130_fd_pr/spice/sky130_fd_pr__nfet_01v8__tt.pm3.spice
at or near line 31
Parameter AS for device MSKY130_FD_PR__NFET_01V8 contains unrecognized
symbol: AS
Netlist error in file
/home/user/.volare/sky130A/libs.tech/ngspice/corners/../../../libs.ref/sky130_fd_pr/spice/sky130_fd_pr__nfet_01v8__tt.pm3.spice
at or near line 31
Parameter AD for device MSKY130_FD_PR__NFET_01V8 contains unrecognized
symbol: AD
...
Lines 28-34 in `.../sky130_fd_pr/spice/sky130_fd_pr__nfet_01v8__tt.pm3.spice`:
.subckt sky130_fd_pr__nfet_01v8 d g s b
+
.param l = 1 w = 1 nf = 1.0 ad = 0 as = 0 pd = 0 ps = 0 nrd = 0 nrs = 0 sa = 0 sb = 0 sd = 0 mult = 1
msky130_fd_pr__nfet_01v8 d g s b sky130_fd_pr__nfet_01v8__model l = {l} w = {w} nf = {nf} ad = {ad} as = {as} pd = {pd} ps = {ps} nrd = {nrd} nrs = {nrs} sa = {sa} sb = {sb} sd = {sd}
.model sky130_fd_pr__nfet_01v8__model.0 nmos
* Model Flag Parameters
+ lmin = 2.0e-05 lmax = 0.0001 wmin = 7.0e-06 wmax = 0.0001
It looks as if the first occurrence of an explicit parameter overwrites the default ones that can then not be found for any subsequent instantiation. When I instantiate X2 and X3 before X0 and X1 it works.Tim Edwards
02/21/2023, 10:55 PMEric Keiter
02/21/2023, 11:08 PMEric Keiter
02/21/2023, 11:29 PMEric Keiter
02/23/2023, 8:49 PMEric Keiter
02/23/2023, 8:49 PMMeinhard Kissich
02/23/2023, 9:24 PMEric Keiter
02/23/2023, 11:24 PMTim Edwards
02/24/2023, 3:17 AMMeinhard Kissich
02/24/2023, 8:36 AMEric Keiter
02/24/2023, 4:32 PMEric Keiter
02/24/2023, 4:33 PM