I am facing the following issue while running this...

# sky130p

Pratyush Saxena

09/25/2021, 2:47 PMI am facing the following issue while running this netlist. * /home/pratyush/vlsi/esim-workspace/inverter/inverter.cir
.include spice_lib/sky130.lib
xm1 out input gnd gnd sky130_fd_pr__nfet_01v8 w=0.375u l=0.25u
xm2 net-*m2-pad1* input out net-*m2-pad1* sky130_fd_pr__pfet_01v8 w=0.375u l=0.25u
v1 net-*m2-pad1* gnd dc 2
* u2 out plot_v1
* u1 input plot_v1
v2 input gnd pulse(0 2 0 0.1u 0.1u 2.5u 5u)
.tran 1e-09 10e-06 0e-06
* Control Statements
.control
run
*print allv > plot_data_v.txt
*print alli > plot_data_i.txt
plot v(out)
plot v(input)
.endc
.end

t

Tim Edwards

09/26/2021, 2:05 AMThe SkyWater models expect all widths and lengths to be in microns and scale all the model equations correspondingly. So you must have, e.g., *not*

`w=0.375 l=0.25`

`w=0.375u l=0.25u`

.p

Pratyush Saxena

09/26/2021, 4:08 AMI tried doing w=0.375 l=0.25 but again the same error was coming. Then I looked into the .spice file of pfet and nfet. There it was mentioned that lmin = 2.0e-05 lmax = 0.0001 wmin = 7.0e-06 wmax = 0.0001. After that I chose the lengths of my mosfets accordingly and it worked. Now I have a doubt that if the skywater is a 130nm PDK why the lmin= 2.0e-05 and not 13e-8.

t

Tim Edwards

09/26/2021, 4:20 PM`lmin=2.0e-05`

is only the minimum length for one of the bins. The true minimum length is `lmin=1.45e-07`

. Your problem is not with minimum length, but with minimum width, which is `wmin=4.15e-07`

.