skip printout in bsimtemp for sens analysis

This commit is contained in:
dwarning 2011-03-16 21:26:19 +00:00
parent ca8f987898
commit 35c8848b62
4 changed files with 13 additions and 25 deletions

View File

@ -28,9 +28,6 @@
#define EXP_THRESHOLD 34.0
#define Charge_q 1.60219e-19
extern SPICEanalysis *analInfo[];
extern SPICEanalysis SENSinfo;
/* ARGSUSED */
int
BSIM3temp(
@ -658,17 +655,17 @@ int Size_Not_Found;
if (model->BSIM3k1Given || model->BSIM3k2Given)
{ if (!model->BSIM3k1Given)
{
if((!ckt->CKTcurJob) || (analInfo[ckt->CKTcurJob->JOBtype] != &SENSinfo))
if ((!ckt->CKTcurJob) || (ckt->CKTcurJob->JOBtype < 9)) /* don't print in sensitivity */
fprintf(stdout, "Warning: k1 should be specified with k2.\n");
pParam->BSIM3k1 = 0.53;
}
if (!model->BSIM3k2Given)
{
if((!ckt->CKTcurJob) || (analInfo[ckt->CKTcurJob->JOBtype] != &SENSinfo))
{
if ((!ckt->CKTcurJob) || (ckt->CKTcurJob->JOBtype < 9)) /* don't print in sensitivity */
fprintf(stdout, "Warning: k2 should be specified with k1.\n");
pParam->BSIM3k2 = -0.0186;
}
if((!ckt->CKTcurJob) || (analInfo[ckt->CKTcurJob->JOBtype] != &SENSinfo)) {
if ((!ckt->CKTcurJob) || (ckt->CKTcurJob->JOBtype < 9)) { /* don't print in sensitivity */
if (model->BSIM3nsubGiven)
fprintf(stdout, "Warning: nsub is ignored because k1 or k2 is given.\n");
if (model->BSIM3xtGiven)

View File

@ -27,9 +27,6 @@
#define EXP_THRESHOLD 34.0
#define Charge_q 1.60219e-19
extern SPICEanalysis *analInfo[];
extern SPICEanalysis SENSinfo;
/* ARGSUSED */
int
BSIM3v32temp (GENmodel *inModel, CKTcircuit *ckt)
@ -727,17 +724,17 @@ int Size_Not_Found;
if (model->BSIM3v32k1Given || model->BSIM3v32k2Given)
{ if (!model->BSIM3v32k1Given)
{
if((!ckt->CKTcurJob) || (analInfo[ckt->CKTcurJob->JOBtype] != &SENSinfo))
if ((!ckt->CKTcurJob) || (ckt->CKTcurJob->JOBtype < 9)) /* don't print in sensitivity */
fprintf(stdout, "Warning: k1 should be specified with k2.\n");
pParam->BSIM3v32k1 = 0.53;
}
if (!model->BSIM3v32k2Given)
{
if((!ckt->CKTcurJob) || (analInfo[ckt->CKTcurJob->JOBtype] != &SENSinfo))
if ((!ckt->CKTcurJob) || (ckt->CKTcurJob->JOBtype < 9)) /* don't print in sensitivity */
fprintf(stdout, "Warning: k2 should be specified with k1.\n");
pParam->BSIM3v32k2 = -0.0186;
}
if((!ckt->CKTcurJob) || (analInfo[ckt->CKTcurJob->JOBtype] != &SENSinfo)) {
if ((!ckt->CKTcurJob) || (ckt->CKTcurJob->JOBtype < 9)) { /* don't print in sensitivity */
if (model->BSIM3v32nsubGiven)
fprintf(stdout, "Warning: nsub is ignored because k1 or k2 is given.\n");
if (model->BSIM3v32xtGiven)

View File

@ -29,9 +29,6 @@
#include "sperror.h"
#include "suffix.h"
extern SPICEanalysis *analInfo[];
extern SPICEanalysis SENSinfo;
#define Kb 1.3806226e-23
#define KboQ 8.617087e-5
#define EPS0 8.85418e-12
@ -1286,17 +1283,17 @@ int Size_Not_Found, i;
if (model->BSIM4k1Given || model->BSIM4k2Given)
{ if (!model->BSIM4k1Given)
{
if((!ckt->CKTcurJob) || (analInfo[ckt->CKTcurJob->JOBtype] != &SENSinfo))
if ((!ckt->CKTcurJob) || (ckt->CKTcurJob->JOBtype < 9)) /* don't print in sensitivity */
fprintf(stdout, "Warning: k1 should be specified with k2.\n");
pParam->BSIM4k1 = 0.53;
}
if (!model->BSIM4k2Given)
{
if((!ckt->CKTcurJob) || (analInfo[ckt->CKTcurJob->JOBtype] != &SENSinfo))
if ((!ckt->CKTcurJob) || (ckt->CKTcurJob->JOBtype < 9)) /* don't print in sensitivity */
fprintf(stdout, "Warning: k2 should be specified with k1.\n");
pParam->BSIM4k2 = -0.0186;
}
if((!ckt->CKTcurJob) || (analInfo[ckt->CKTcurJob->JOBtype] != &SENSinfo)) {
if ((!ckt->CKTcurJob) || (ckt->CKTcurJob->JOBtype < 9)) { /* don't print in sensitivity */
if (model->BSIM4nsubGiven)
fprintf(stdout, "Warning: nsub is ignored because k1 or k2 is given.\n");
if (model->BSIM4xtGiven)

View File

@ -22,9 +22,6 @@
#include "sperror.h"
#include "suffix.h"
extern SPICEanalysis *analInfo[];
extern SPICEanalysis SENSinfo;
#define Kb 1.3806226e-23
#define KboQ 8.617087e-5
#define EPS0 8.85418e-12
@ -1163,17 +1160,17 @@ int Size_Not_Found, i;
if (model->BSIM4v5k1Given || model->BSIM4v5k2Given)
{ if (!model->BSIM4v5k1Given)
{
if((!ckt->CKTcurJob) || (analInfo[ckt->CKTcurJob->JOBtype] != &SENSinfo))
if ((!ckt->CKTcurJob) || (ckt->CKTcurJob->JOBtype < 9)) /* don't print in sensitivity */
fprintf(stdout, "Warning: k1 should be specified with k2.\n");
pParam->BSIM4v5k1 = 0.53;
}
if (!model->BSIM4v5k2Given)
{
if((!ckt->CKTcurJob) || (analInfo[ckt->CKTcurJob->JOBtype] != &SENSinfo))
if ((!ckt->CKTcurJob) || (ckt->CKTcurJob->JOBtype < 9)) /* don't print in sensitivity */
fprintf(stdout, "Warning: k2 should be specified with k1.\n");
pParam->BSIM4v5k2 = -0.0186;
}
if((!ckt->CKTcurJob) || (analInfo[ckt->CKTcurJob->JOBtype] != &SENSinfo)) {
if ((!ckt->CKTcurJob) || (ckt->CKTcurJob->JOBtype < 9)) { /* don't print in sensitivity */
if (model->BSIM4v5nsubGiven)
fprintf(stdout, "Warning: nsub is ignored because k1 or k2 is given.\n");
if (model->BSIM4v5xtGiven)