Open GlenHertz opened 10 months ago
The transistors with a .subckt wrapper have dtemp on the .subckt line but dtemp isn't passed to the model instance so it does nothing. For example: https://github.com/google/globalfoundries-pdk-libs-gf180mcu_fd_pr/blob/9f992d5a9186d1f7820c58f039c484ad35b2edea/models/ngspice/sm141064.ngspice#L47034-L47057
.subckt
dtemp
Would you accept a fix that does this?
.subckt nmos_6p0 d g s b w=1e-5 l=7e-7 + as=0 ad=0 ps=0 pd=0 nrd=0 nrs=0 par=1 dtemp=0 + sa=0 sb=0 nf=1 sd=0 m=1 .param + par_vth=0.01155 + par_k=0.0000 + par_l=4e-7 + par_w=-5e-7 + par_leff='l-par_l' + par_weff='par*(w-par_w)' + p_sqrtarea='sqrt((par_leff)*(par_weff))' .param + var_k='0.7071*par_k* 1e-06 / p_sqrtarea' + mis_k=agauss(0,var_k,1) .param + var_vth='0.7071*par_vth* 1e-06 / p_sqrtarea' + mis_vth=agauss(0,var_vth,1) m0 d g s b nmos_6p0 w=w l=l as=as ad=ad ps=ps pd=pd nrd=nrd nrs=nrs +delvto='mis_vth*sw_stat_mismatch' sa=sa sb=sb nf=nf sd=sd dtemp=dtemp .ends nmos_6p0
Hmm, it doesn't seem like BSIM4 supports TEMP or DTEMP on the model instance line. Just global .TEMP 27 is supported. Should dtemp be removed on the .subckt line?
TEMP
DTEMP
.TEMP 27
The transistors with a
.subckt
wrapper havedtemp
on the.subckt
line butdtemp
isn't passed to the model instance so it does nothing. For example: https://github.com/google/globalfoundries-pdk-libs-gf180mcu_fd_pr/blob/9f992d5a9186d1f7820c58f039c484ad35b2edea/models/ngspice/sm141064.ngspice#L47034-L47057Would you accept a fix that does this?