bug fix dev info structure and correct version

This commit is contained in:
dwarning 2008-11-16 09:53:55 +00:00
parent 96c619d1ac
commit 0f37a7e943
3 changed files with 9 additions and 80 deletions

View File

@ -1,3 +1,8 @@
2008-11-16 Dietmar Warning
* src/spicelib/devices/bsim4/bsim4itf.h: adapting the ngspice scheme regarding info structure
* src/spicelib/devices/bsim4/b4check.c: This is really UCB version 4.6.3 - see below
(but will cover all 4.6.x versions)
2008-11-09 Dietmar Warning
* src/spicelib/devices/bsim4/*.c,*.h src/spicelib/parser/inpdomod.c:
This is the new and actual BSIM4 version 4.6.3 from UCB. All files are 4.6.2 except

View File

@ -45,9 +45,9 @@ FILE *fplog;
fprintf(fplog, "\n");
fprintf(fplog, "++++++++++ BSIM4 PARAMETER CHECKING BELOW ++++++++++\n");
if (strcmp(model->BSIM4version, "4.6.1") != 0)
{ fprintf(fplog, "Warning: This model is BSIM4.6.1; you specified a wrong version number.\n");
printf("Warning: This model is BSIM4.6.1; you specified a wrong version number.\n");
if (strcmp(model->BSIM4version, "4.6.3") != 0)
{ fprintf(fplog, "Warning: This model is BSIM4.6.3; you specified a wrong version number.\n");
printf("Warning: This model is BSIM4.6.3; you specified a wrong version number.\n");
}
fprintf(fplog, "Model = %s\n", model->BSIM4modName);

View File

@ -4,86 +4,10 @@ Author: 2000 Weidong Liu.
Author: 2001- Xuemei Xi
File: bsim4itf.h
**********/
#ifdef DEV_bsim4
#ifndef DEV_BSIM4
#define DEV_BSIM4
#include "bsim4ext.h"
extern IFparm BSIM4pTable[ ];
extern IFparm BSIM4mPTable[ ];
extern char *BSIM4names[ ];
extern int BSIM4pTSize;
extern int BSIM4mPTSize;
extern int BSIM4nSize;
extern int BSIM4iSize;
extern int BSIM4mSize;
SPICEdev B4info = {
{ "BSIM4",
"Berkeley Short Channel IGFET Model-4",
&BSIM4nSize,
&BSIM4nSize,
BSIM4names,
&BSIM4pTSize,
BSIM4pTable,
&BSIM4mPTSize,
BSIM4mPTable,
DEV_DEFAULT
},
BSIM4param,
BSIM4mParam,
BSIM4load,
BSIM4setup,
BSIM4unsetup,
BSIM4setup,
BSIM4temp,
BSIM4trunc,
NULL,
BSIM4acLoad,
NULL,
BSIM4destroy,
#ifdef DELETES
BSIM4mDelete,
BSIM4delete,
#else /* DELETES */
NULL,
NULL,
#endif /* DELETES */
BSIM4getic,
BSIM4ask,
BSIM4mAsk,
#ifdef AN_pz
BSIM4pzLoad,
#else /* AN_pz */
NULL,
#endif /* AN_pz */
#ifdef NEWCONV
BSIM4convTest,
#else /* NEWCONV */
NULL,
#endif /* NEWCONV */
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
#ifdef AN_noise
BSIM4noise,
#else /* AN_noise */
NULL,
#endif /* AN_noise */
&BSIM4iSize,
&BSIM4mSize
};
SPICEdev *get_bsim4_info(void);
#endif
#endif