Commercial BSIM4 model crashes gnucap

Ruben Undheim <[email protected]>
Newsgroups gmane.comp.gnu.gnucap.devel
Message-ID <CA+ChNyXy3kBr7NVSf-j-NUU0jjXrqsUBiyB2453QKCvV3hMrRg@mail.gmail.com>
Hi,

I've been playing around a bit with CMOS transistor models. Using some
commercial BSIM4 models for NMOS and PMOS, I was surprisingly able to
get it to load in ngspice without much trouble at all. It even
simulated with reasonable results! When loading it in gnucap, I get a
number of warnings and then gnucap crashes.

Using the bsim465 model from gnucap-models [1], it seems like gnucap
understands all the model parameters in the model, but it still gets
some problems..

I get thousands of messages like this:
  parameter # not specified, using default
  parameter # not specified, using default
  ..
  ..

and some like this:
  parameter ad not specified, using default
  parameter ad value is "NOT_INPUT"
  ..

and then thousands of these:
  parameter # recursion too deep
  parameter # recursion too deep
  ...

At last, it crashes with:
  gnucap: /usr/include/gnucap/spice-wrapper.cc:1074: virtual void
DEV_SPICE::precalc_last(): Assertion `_maxEqNum == ckt()->CKTmaxEqNum'
failed.

Any ideas where I should start to debug? or if this is some kind of
known issue/expected behaviour?

Best regards
Ruben

[1] https://git.savannah.gnu.org/git/gnucap/gnucap-models.git
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.