Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DTEMP of transistor models are disconnected #121

Open
GlenHertz opened this issue Oct 27, 2023 · 1 comment
Open

DTEMP of transistor models are disconnected #121

GlenHertz opened this issue Oct 27, 2023 · 1 comment

Comments

@GlenHertz
Copy link
Contributor

GlenHertz commented Oct 27, 2023

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

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
@GlenHertz
Copy link
Contributor Author

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant