From 88f1fa0092c7c87fdb32d3b9a5181a032efedfbb Mon Sep 17 00:00:00 2001 From: dwarning Date: Wed, 1 Aug 2018 07:11:38 +0200 Subject: [PATCH] allow version model parameter in exponential format for bsim3 --- src/spicelib/parser/inpdomod.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/spicelib/parser/inpdomod.c b/src/spicelib/parser/inpdomod.c index a45f360d9..724b63c03 100644 --- a/src/spicelib/parser/inpdomod.c +++ b/src/spicelib/parser/inpdomod.c @@ -292,13 +292,13 @@ char *INPdomodel(CKTcircuit *ckt, struct card *image, INPtables * tab) case 8: case 49: err = INPfindVer(line, ver); - if ( strcmp(ver, "3.0") == 0 ) { + if (prefix("3.0", ver)) { type = INPtypelook("BSIM3v0"); } - if ( strcmp(ver, "3.1") == 0 ) { + if (prefix("3.1", ver)) { type = INPtypelook("BSIM3v1"); } - if ( prefix("3.2", ver)) { /* version string ver has to start with 3.2 */ + if (prefix("3.2", ver)) { /* version string ver has to start with 3.2 */ type = INPtypelook("BSIM3v32"); } if ( (strstr(ver, "default")) || (prefix("3.3", ver)) ) {