vks
06/29/2023, 11:44 AMundriven node: #net1
error in my basic inverter testbench. Tried several ways but could not remove this error. Can you please check. Attaching my inverter TB for debugging.Mitch Bailey
06/29/2023, 1:55 PMsky130_fd_pr
.
**.subckt inv_test
x1 vdd vout vin GND inv_1
Vdd vdd GND 1.8
V1 vin GND pwl(0 0 50n 0 52n 1.8 100n 1.8 102n 0)
**** begin user architecture code
.lib /usr/local/share/pdk/sky130A/libs.tech/ngspice/sky130.lib.spice tt
;.dc Vin 0 1.8 1m
.tran 100ps 200ns
.op
.save all
**** end user architecture code
**.ends
* expanding symbol: inv_1.sym # of pins=4
* sym_path: /$HOME/inv/inv_1.sym
* sch_path: /$HOME/inv/inv_1.sch
.subckt inv_1 Vdd Vout Vin VSS
*.ipin Vdd
*.ipin VSS
*.opin Vout
*.ipin Vin
XM1 Vout Vin VSS VSS sky130_fd_pr__nfet_01v8 L=0.15 W=1.05 nf=1 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 Vout Vin Vdd Vdd sky130_fd_pr__pfet_01v8 L=0.15 W=2.1 nf=1 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
.GLOBAL GND
** flattened .save nodes
.end
What version of xschem are you using?vks
06/29/2023, 1:57 PMvks
06/29/2023, 1:58 PMMitch Bailey
06/29/2023, 9:06 PM~/.xschem/simulations
but you can change this with Simulation->Set netlist Dir
.
The warning I noticed were due to the unconnected voltage sources V2
and Vin
and the unconnected output Vout
. V2 and Vin are unused and can be deleted, I think. You could add an output pin at Vout
to get rid of that message. Tools->Insert symbol
and choose opin
.Stefan Schippers
06/29/2023, 10:09 PMopen net
warnings. The warnings about undriven net1, net2, net3, net4 are false flags due to the voltage sources with spice_ignore=true attribute. This should be fixed in xschem. Thank you for reporting this. The false flags do not affect the netlist which is correct.vks
06/30/2023, 5:25 AMStefan Schippers
06/30/2023, 6:30 AMStefan Schippers
06/30/2023, 6:34 AM