only forms
This commit is contained in:
parent
832ec26d97
commit
c6f86b9067
|
|
@ -16,17 +16,14 @@
|
|||
#include "fteext.h"
|
||||
|
||||
int
|
||||
BSIM3param(param,value,inst,select)
|
||||
int param;
|
||||
IFvalue *value;
|
||||
GENinstance *inst;
|
||||
IFvalue *select;
|
||||
BSIM3param (int param, IFvalue *value, GENinstance *inst, IFvalue *select)
|
||||
{
|
||||
double scale;
|
||||
|
||||
BSIM3instance *here = (BSIM3instance*)inst;
|
||||
|
||||
if ( !cp_getvar( "scale", CP_REAL, (double*) &scale ) ) scale = 1;
|
||||
|
||||
BSIM3instance *here = (BSIM3instance*)inst;
|
||||
switch(param)
|
||||
{ case BSIM3_W:
|
||||
here->BSIM3w = value->rValue*scale;
|
||||
|
|
|
|||
|
|
@ -16,9 +16,10 @@ BSIM3v0param(int param, IFvalue *value, GENinstance *inst, IFvalue *select)
|
|||
{
|
||||
double scale;
|
||||
|
||||
BSIM3v0instance *here = (BSIM3v0instance*)inst;
|
||||
|
||||
if ( !cp_getvar( "scale", CP_REAL, (double*) &scale ) ) scale = 1;
|
||||
|
||||
BSIM3v0instance *here = (BSIM3v0instance*)inst;
|
||||
switch(param)
|
||||
{ case BSIM3v0_W:
|
||||
here->BSIM3v0w = value->rValue*scale;
|
||||
|
|
|
|||
|
|
@ -22,9 +22,10 @@ BSIM3v1param(int param, IFvalue *value, GENinstance *inst, IFvalue *select)
|
|||
{
|
||||
double scale;
|
||||
|
||||
BSIM3v1instance *here = (BSIM3v1instance*)inst;
|
||||
|
||||
if ( !cp_getvar( "scale", CP_REAL, (double*) &scale ) ) scale = 1;
|
||||
|
||||
BSIM3v1instance *here = (BSIM3v1instance*)inst;
|
||||
switch(param)
|
||||
{ case BSIM3v1_W:
|
||||
here->BSIM3v1w = value->rValue*scale;
|
||||
|
|
|
|||
|
|
@ -17,9 +17,10 @@ BSIM3v1Aparam(int param, IFvalue *value, GENinstance *inst, IFvalue *select)
|
|||
{
|
||||
double scale;
|
||||
|
||||
BSIM3v1Ainstance *here = (BSIM3v1Ainstance*)inst;
|
||||
|
||||
if ( !cp_getvar( "scale", CP_REAL, (double*) &scale ) ) scale = 1;
|
||||
|
||||
BSIM3v1Ainstance *here = (BSIM3v1Ainstance*)inst;
|
||||
switch(param)
|
||||
{ case BSIM3v1A_W:
|
||||
here->BSIM3v1Aw = value->rValue*scale;
|
||||
|
|
|
|||
|
|
@ -17,9 +17,10 @@ BSIM3v1Sparam(int param, IFvalue *value, GENinstance *inst, IFvalue *select)
|
|||
{
|
||||
double scale;
|
||||
|
||||
BSIM3v1Sinstance *here = (BSIM3v1Sinstance*)inst;
|
||||
|
||||
if ( !cp_getvar( "scale", CP_REAL, (double*) &scale ) ) scale = 1;
|
||||
|
||||
BSIM3v1Sinstance *here = (BSIM3v1Sinstance*)inst;
|
||||
switch(param)
|
||||
{ case BSIM3v1S_W:
|
||||
here->BSIM3v1Sw = value->rValue*scale;
|
||||
|
|
|
|||
|
|
@ -21,9 +21,10 @@ BSIM3v32param (int param, IFvalue *value, GENinstance *inst, IFvalue *select)
|
|||
{
|
||||
double scale;
|
||||
|
||||
BSIM3v32instance *here = (BSIM3v32instance*)inst;
|
||||
|
||||
if ( !cp_getvar( "scale", CP_REAL, (double*) &scale ) ) scale = 1;
|
||||
|
||||
BSIM3v32instance *here = (BSIM3v32instance*)inst;
|
||||
switch(param)
|
||||
{ case BSIM3v32_W:
|
||||
here->BSIM3v32w = value->rValue*scale;
|
||||
|
|
|
|||
|
|
@ -30,9 +30,10 @@ IFvalue *select;
|
|||
{
|
||||
double scale;
|
||||
|
||||
BSIM4instance *here = (BSIM4instance*)inst;
|
||||
|
||||
if ( !cp_getvar( "scale", CP_REAL, (double*) &scale ) ) scale = 1;
|
||||
|
||||
BSIM4instance *here = (BSIM4instance*)inst;
|
||||
switch(param)
|
||||
{ case BSIM4_W:
|
||||
here->BSIM4w = value->rValue*scale;
|
||||
|
|
|
|||
|
|
@ -23,9 +23,10 @@ IFvalue *select;
|
|||
{
|
||||
double scale;
|
||||
|
||||
BSIM4v2instance *here = (BSIM4v2instance*)inst;
|
||||
|
||||
if ( !cp_getvar( "scale", CP_REAL, (double*) &scale ) ) scale = 1;
|
||||
|
||||
BSIM4v2instance *here = (BSIM4v2instance*)inst;
|
||||
switch(param)
|
||||
{ case BSIM4v2_W:
|
||||
here->BSIM4v2w = value->rValue*scale;
|
||||
|
|
|
|||
|
|
@ -26,9 +26,10 @@ IFvalue *select;
|
|||
{
|
||||
double scale;
|
||||
|
||||
BSIM4v3instance *here = (BSIM4v3instance*)inst;
|
||||
|
||||
if ( !cp_getvar( "scale", CP_REAL, (double*) &scale ) ) scale = 1;
|
||||
|
||||
BSIM4v3instance *here = (BSIM4v3instance*)inst;
|
||||
switch(param)
|
||||
{ case BSIM4v3_W:
|
||||
here->BSIM4v3w = value->rValue*scale;
|
||||
|
|
|
|||
|
|
@ -27,9 +27,10 @@ IFvalue *select;
|
|||
{
|
||||
double scale;
|
||||
|
||||
BSIM4v4instance *here = (BSIM4v4instance*)inst;
|
||||
|
||||
if ( !cp_getvar( "scale", CP_REAL, (double*) &scale ) ) scale = 1;
|
||||
|
||||
BSIM4v4instance *here = (BSIM4v4instance*)inst;
|
||||
switch(param)
|
||||
{ case BSIM4v4_W:
|
||||
here->BSIM4v4w = value->rValue*scale;
|
||||
|
|
|
|||
|
|
@ -28,9 +28,10 @@ IFvalue *select;
|
|||
{
|
||||
double scale;
|
||||
|
||||
BSIM4v5instance *here = (BSIM4v5instance*)inst;
|
||||
|
||||
if ( !cp_getvar( "scale", CP_REAL, (double*) &scale ) ) scale = 1;
|
||||
|
||||
BSIM4v5instance *here = (BSIM4v5instance*)inst;
|
||||
switch(param)
|
||||
{ case BSIM4v5_W:
|
||||
here->BSIM4v5w = value->rValue*scale;
|
||||
|
|
|
|||
Loading…
Reference in New Issue