diff --git a/src/spicelib/devices/bsim4/b4.c b/src/spicelib/devices/bsim4/b4.c index 1f9ef1325..9a12c7413 100644 --- a/src/spicelib/devices/bsim4/b4.c +++ b/src/spicelib/devices/bsim4/b4.c @@ -93,7 +93,7 @@ IOPR( "delvt0", BSIM4_DELVTO, IF_REAL , "Zero bias threshold voltage variatio IOP( "mulu0", BSIM4_MULU0, IF_REAL, "Low field mobility multiplier"), IOP( "xgw", BSIM4_XGW, IF_REAL, "Distance from gate contact center to device edge"), IOP( "ngcon", BSIM4_NGCON, IF_REAL, "Number of gate contacts"), -IOP( "wnflag", BSIM4_WNFLAG, IF_REAL, "W/NF device flag for bin selection"), +IOP( "wnflag", BSIM4_WNFLAG, IF_INTEGER, "W/NF device flag for bin selection"), IOP( "trnqsmod", BSIM4_TRNQSMOD, IF_INTEGER, "Transient NQS model selector"), IOP( "acnqsmod", BSIM4_ACNQSMOD, IF_INTEGER, "AC NQS model selector"), diff --git a/src/spicelib/devices/bsim4/b4ask.c b/src/spicelib/devices/bsim4/b4ask.c index b81cebd57..20926d089 100644 --- a/src/spicelib/devices/bsim4/b4ask.c +++ b/src/spicelib/devices/bsim4/b4ask.c @@ -159,7 +159,7 @@ BSIM4instance *here = (BSIM4instance*)inst; value->rValue = here->BSIM4mulu0; return(OK); case BSIM4_WNFLAG: - value->rValue = here->BSIM4wnflag; + value->iValue = here->BSIM4wnflag; return(OK); case BSIM4_XGW: value->rValue = here->BSIM4xgw; diff --git a/src/spicelib/devices/bsim4/b4par.c b/src/spicelib/devices/bsim4/b4par.c index e7cdcaa82..d0515ef8b 100644 --- a/src/spicelib/devices/bsim4/b4par.c +++ b/src/spicelib/devices/bsim4/b4par.c @@ -186,7 +186,7 @@ IFvalue *select) here->BSIM4mulu0Given = TRUE; break; case BSIM4_WNFLAG: - here->BSIM4wnflag = value->rValue; + here->BSIM4wnflag = value->iValue; here->BSIM4wnflagGiven = TRUE; break; case BSIM4_XGW: diff --git a/src/spicelib/devices/bsim4/bsim4def.h b/src/spicelib/devices/bsim4/bsim4def.h index 9706d1d82..9afba6144 100644 --- a/src/spicelib/devices/bsim4/bsim4def.h +++ b/src/spicelib/devices/bsim4/bsim4def.h @@ -152,7 +152,7 @@ typedef struct sBSIM4instance double BSIM4delvto; double BSIM4mulu0; - double BSIM4wnflag; + int BSIM4wnflag; double BSIM4xgw; double BSIM4ngcon; diff --git a/src/spicelib/devices/bsim4v7/b4v7.c b/src/spicelib/devices/bsim4v7/b4v7.c index 7a4317e6a..cb7cd3633 100644 --- a/src/spicelib/devices/bsim4v7/b4v7.c +++ b/src/spicelib/devices/bsim4v7/b4v7.c @@ -56,7 +56,7 @@ IOPR( "delvt0", BSIM4v7_DELVTO, IF_REAL , "Zero bias threshold voltage variat IOP( "mulu0", BSIM4v7_MULU0, IF_REAL, "Low field mobility multiplier"), IOP( "xgw", BSIM4v7_XGW, IF_REAL, "Distance from gate contact center to device edge"), IOP( "ngcon", BSIM4v7_NGCON, IF_REAL, "Number of gate contacts"), -IOP( "wnflag", BSIM4v7_WNFLAG, IF_REAL, "W/NF device flag for bin selection"), +IOP( "wnflag", BSIM4v7_WNFLAG, IF_INTEGER, "W/NF device flag for bin selection"), IOP( "trnqsmod", BSIM4v7_TRNQSMOD, IF_INTEGER, "Transient NQS model selector"), IOP( "acnqsmod", BSIM4v7_ACNQSMOD, IF_INTEGER, "AC NQS model selector"), diff --git a/src/spicelib/devices/bsim4v7/b4v7ask.c b/src/spicelib/devices/bsim4v7/b4v7ask.c index e5a89a548..78a8e10c1 100644 --- a/src/spicelib/devices/bsim4v7/b4v7ask.c +++ b/src/spicelib/devices/bsim4v7/b4v7ask.c @@ -115,7 +115,7 @@ BSIM4v7instance *here = (BSIM4v7instance*)inst; value->rValue = here->BSIM4v7mulu0; return(OK); case BSIM4v7_WNFLAG: - value->rValue = here->BSIM4v7wnflag; + value->iValue = here->BSIM4v7wnflag; return(OK); case BSIM4v7_XGW: value->rValue = here->BSIM4v7xgw; diff --git a/src/spicelib/devices/bsim4v7/b4v7par.c b/src/spicelib/devices/bsim4v7/b4v7par.c index 5aa311d28..d8bdd6d3d 100644 --- a/src/spicelib/devices/bsim4v7/b4v7par.c +++ b/src/spicelib/devices/bsim4v7/b4v7par.c @@ -142,7 +142,7 @@ IFvalue *select) here->BSIM4v7mulu0Given = TRUE; break; case BSIM4v7_WNFLAG: - here->BSIM4v7wnflag = value->rValue; + here->BSIM4v7wnflag = value->iValue; here->BSIM4v7wnflagGiven = TRUE; break; case BSIM4v7_XGW: diff --git a/src/spicelib/devices/bsim4v7/bsim4v7def.h b/src/spicelib/devices/bsim4v7/bsim4v7def.h index c24721ca7..d4e8495eb 100644 --- a/src/spicelib/devices/bsim4v7/bsim4v7def.h +++ b/src/spicelib/devices/bsim4v7/bsim4v7def.h @@ -113,7 +113,7 @@ typedef struct sBSIM4v7instance double BSIM4v7delvto; double BSIM4v7mulu0; - double BSIM4v7wnflag; + int BSIM4v7wnflag; double BSIM4v7xgw; double BSIM4v7ngcon;