hayato kimura
08/19/2023, 6:15 AMoption SCALE: Scale is set to 1e-06 for instance and model parameters
Error on line:
m.xm1.m0 xm1.d1 c vpwr vpwr xm1:pfet_10v0_asym_core w= 2.000000000000000e+01 l= 5.000000000000000e+00 dtemp=0 ad= 3.560000000000000e-05 pd= 4.000000356000000e+01 as= 9.600000000000000e-06 ps= 4.000000096000000e+01 nf= 1.000000000000000e+00 nrd= 0.000000000000000e+00 nrs= 0.000000000000000e+00 sa= 0.000000000000000e+00 sb= 0.000000000000000e+00 sd= 0.000000000000000e+00
unknown parameter (dtemp)
Simulation interrupted due to error!
Attached are the case using the sky130model (works fine) and the case using the GF180 model (error), respectively.
The GF180 model seems to load fine, but I am getting an unknown parameter (dtemp)
The smbb000149.ngspice
that is being read is also attached in case you are interested.Mitch Bailey
08/19/2023, 6:26 AMTim Edwards
08/19/2023, 1:07 PMsmbb000149.ngspice
. I noticed that everywhere else in the netlists, "dtemp" is a parameter of a subcircuit. Only in this file, for the device you are using (pfet_10v0_asym_core), "dtemp" is passed as a parameter to an "M" (MOSFET) device. This strikes me as an error and needs to be brought to the attention of @Amro Tork.
Suggested solution: Remove "dtemp=0" from line 468 of smbb000149.ngspice.hayato kimura
08/19/2023, 1:44 PMl=5 w=20
to l=5E-6 w=20E-6
, the unknown parameter (dtemp)
error disappeared and the error "`could not find a valid modelname`" appeared instead.
To recap,
*XM1 A C VPWR VPWR pfet_10v0_asym l=5E-6 w=20E-6
XM1 A C VPWR VPWR pfet_10v0_asym l=5 w=20
when above conditions, the following error
option SCALE: Scale is set to 1e-06 for instance and model parameters
Error on line:
m.xm1.m0 xm1.d1 c vpwr vpwr xm1:pfet_10v0_asym_core w= 2.000000000000000e+01 l= 5.000000000000000e+00 dtemp=0 ad= 3.560000000000000e-05 pd= 4.000000356000000e+01 as= 9.600000000000000e-06 ps= 4.000000096000000e+01 nf= 1.000000000000000e+00 nrd= 0.000000000000000e+00 nrs= 0.000000000000000e+00 sa= 0.000000000000000e+00 sb= 0.000000000000000e+00 sd= 0.000000000000000e+00
unknown parameter (dtemp)
Simulation interrupted due to error!
XM1 A C VPWR VPWR pfet_10v0_asym l=5E-6 w=20E-6
*XM1 A C VPWR VPWR pfet_10v0_asym l=5 w=20
when above conditions, the following error
option SCALE: Scale is set to 1e-06 for instance and model parameters
warning, can't find model 'pfet_10v0_asym_core' from line
m.xm1.m0 xm1.d1 c vpwr vpwr pfet_10v0_asym_core w= 2.000000000000000e-05 l= 5.000000000000000e-06 dtemp=0 ad= 3.560000000000000e-11 pd= 4.356000000000000e-05 as= 9.599999999999999e-12 ps= 4.096000000000000e-05 nf= 1.000000000000000e+00 nrd= 0.000000000000000e+00 nrs= 0.000000000000000e+00 sa= 0.000000000000000e+00 sb= 0.000000000000000e+00 sd= 0.000000000000000e+00
Error on line:
m.xm1.m0 xm1.d1 c vpwr vpwr pfet_10v0_asym_core w= 2.000000000000000e-05 l= 5.000000000000000e-06 dtemp=0 ad= 3.560000000000000e-11 pd= 4.356000000000000e-05 as= 9.599999999999999e-12 ps= 4.096000000000000e-05 nf= 1.000000000000000e+00 nrd= 0.000000000000000e+00 nrs= 0.000000000000000e+00 sa= 0.000000000000000e+00 sb= 0.000000000000000e+00 sd= 0.000000000000000e+00
could not find a valid modelname
Simulation interrupted due to error!
is output.
could not find a valid modelname
In reference to the previous threads, I predicted a problem with the values of L and W. I tried the following parameters, but could not solve the problem.
l=5E-6 w=20E-6
:Same value as other skywater pfet (sky130_fd_pr__pfet_g5v0d10v5)
`l=6E-7 w=25E-6`:Default value of pfet_10v0_asym for gf180
Other, https://gf180mcu-pdk.readthedocs.io/en/latest/analog/model_parameters/HV/HV_2_3.html#recommened-instance-parameter-range
I have tried various values within the min-max range of "min-max" but it did not work.
I am not sure I understand the root cause of the error, but is there a solution?
Right now I am replacing only one MOS with SKY130 -> GF180, but what I would like to do is to replace all models of this circuit with GF180 and simulate them.Farag Elsayed
08/19/2023, 1:48 PMhayato kimura
08/19/2023, 3:52 PM.include "/home/hayato/globalfoundries-pdk-libs-gf180mcu_fd_pr/models/ngspice/design.ngspice"
.lib "/home/hayato/globalfoundries-pdk-libs-gf180mcu_fd_pr/models/ngspice/smbb000149.ngspice" typical
Farag Elsayed
08/19/2023, 4:26 PMTim Edwards
08/20/2023, 2:07 PMChris
08/20/2023, 8:18 PM.spiceinit
under the simulations
directory where your ngspice is running:
set ngbehavior=hsa
set ng_nomodcheck
set num_threads=8
hayato kimura
09/11/2023, 2:01 AM