<#360 NGSPICE basic testcases : Unknown model type...
# ihp-sg13g2
g
#360 NGSPICE basic testcases : Unknown model type pspnqs103va Issue created by lionelsaintecluque Hello, In 4. Simulation using NGSPICE Yesterday, first example (BJT testcase) was failing in main branch. I switched to dev branche and got successful results. (according to issue 356 : #356) (Thanks for your fast answer) Today I tryied the second example (mosfet) and got another failure. I'm runnin dev branch of IHP-Open-PDK I tested with ngspice ngspice-36 and ngspice-44.2 (similar failure). I copyied and pasted the proposed example in a file (toto.sp), placed in the same directory as the libraries (it's a bit dirty, but I wanted to test fast). I ran the simulation within that directory .
Copy code
... models % pwd
... /IHP-Open-PDK/ihp-sg13g2/libs.tech/ngspice/models


... models % cat toto.sp 
*Test 2

.lib cornerMOSlv.lib mos_tt
Vgs net1 GND 0.4
Vds net3 GND 1.0
Vd net3 net2 0
.param temp=27
XM1 net2 net1 GND GND sg13_lv_nmos w=1.0u l=0.13u ng=1 m=1
.control
save all
op
let Id = @n.xm1.nsg13_lv_nmos[ids]
print Id
.endc
.GLOBAL GND
.end


... models % ngspice  -b toto.sp 

No compatibility mode selected!


Circuit: *lib cornerMOSlv.lib mos_tt

Warning: unknown device type: n
Warning: unknown device type: n
Warning: unknown device type: n
Warning: Model issue on line 0 :
  .model xm1:sg13g2_lv_nmos_psp pspnqs103va type=+1 level=103.60 tr=27.0 d ...
Unknown model type pspnqs103va - ignored
Warning: Model issue on line 0 :
  .model xm1:sg13g2_lv_pmos_psp pspnqs103va type=-1 level=103.60 tr=27.0 d ...
Unknown model type pspnqs103va - ignored
Error on line 0 :
  n.xm1.nsg13_lv_nmos net2 net1 s b sg13g2_lv_nmos_psp w=    1.000000000000000e-06     l=    1.300000000000000e-07     nf=    1.000000000000000e+00     mult=    1.000000000000000e+00     as=    3.400000000000000e-13     ad=    3.400000000000000e-13     ps=    2.680000000000000e-06     pd=    2.680000000000000e-06     dta=    0.000000000000000e+00     ngcon=2
 unknown device type - error 
    Simulation interrupted due to error!

Note: No ".plot", ".print", or ".fourier" lines; no simulations run
Did I do something wrong ? Did I missed a step ? Thanks by advance IHP-GmbH/IHP-Open-PDK