Enable models with parens by using gettok_parens() like
.model NP NPN(BF=125 Cje=.5p Cjc=.5p Rb=500)
This commit is contained in:
parent
b48e5bd77f
commit
164d3dd20c
|
|
@ -7804,7 +7804,7 @@ static struct card *pspice_compat(struct card *oldcard)
|
|||
char* modname, *modtype;
|
||||
cut_line = nexttok(cut_line); /* skip .model */
|
||||
modname = gettok(&cut_line); /* save model name */
|
||||
modtype = gettok(&cut_line); /* save model type */
|
||||
modtype = gettok_noparens(&cut_line); /* save model type */
|
||||
if (cieq(modtype, "NMOS") || cieq(modtype, "PMOS")) {
|
||||
char* lv = strstr(cut_line, "level=");
|
||||
if (lv) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue