hisim2, add ngspice specific hsm2init.[ch]

This commit is contained in:
rlar 2011-05-22 10:25:35 +00:00
parent d6cb9e0f62
commit 330f791af2
4 changed files with 103 additions and 0 deletions

View File

@ -1,3 +1,9 @@
2011-05-22 Robert Larice
* src/spicelib/devices/hisim2/Makefile.am ,
* src/spicelib/devices/hisim2/hsm2init.c ,
* src/spicelib/devices/hisim2/hsm2init.h :
hisim2, add ngspice specific hsm2init.[ch]
2011-05-22 Robert Larice
* src/spicelib/devices/hisim2/hsm2set.c :
hisim2, add HSM2unsetup()

View File

@ -16,6 +16,8 @@ libhisim2_la_SOURCES = hisim2.h \
hsm2evalenv.h \
hsm2ext.h \
hsm2getic.c \
hsm2init.c \
hsm2init.h \
hsm2itf.h \
hsm2ld.c \
hsm2mask.c \

View File

@ -0,0 +1,82 @@
#include "config.h"
#include "devdefs.h"
#include "hsm2def.h"
#include "hsm2itf.h"
#include "hsm2init.h"
SPICEdev HSM2info = {
{ "HiSIM2",
"Hiroshima University STARC IGFET Model 2.5.1",
&HSM2nSize,
&HSM2nSize,
HSM2names,
&HSM2pTSize,
HSM2pTable,
&HSM2mPTSize,
HSM2mPTable,
#ifdef XSPICE
/*---- Fixed by SDB 5.2.2003 to enable XSPICE/tclspice integration -----*/
NULL, /* This is a SPICE device, it has no MIF info data */
0, /* This is a SPICE device, it has no MIF info data */
NULL, /* This is a SPICE device, it has no MIF info data */
0, /* This is a SPICE device, it has no MIF info data */
NULL, /* This is a SPICE device, it has no MIF info data */
0, /* This is a SPICE device, it has no MIF info data */
NULL, /* This is a SPICE device, it has no MIF info data */
/*--------------------------- End of SDB fix -------------------------*/
#endif
DEV_DEFAULT
},
/* DEVparam */ HSM2param,
/* DEVmodParam */ HSM2mParam,
/* DEVload */ HSM2load,
/* DEVsetup */ HSM2setup,
/* DEVunsetup */ HSM2unsetup,
/* DEVpzSetup */ HSM2setup,
/* DEVtemperature*/ HSM2temp,
/* DEVtrunc */ HSM2trunc,
/* DEVfindBranch */ NULL,
/* DEVacLoad */ HSM2acLoad,
/* DEVaccept */ NULL,
/* DEVdestroy */ HSM2destroy,
/* DEVmodDelete */ HSM2mDelete,
/* DEVdelete */ HSM2delete,
/* DEVsetic */ HSM2getic,
/* DEVask */ HSM2ask,
/* DEVmodAsk */ HSM2mAsk,
/* DEVpzLoad */ HSM2pzLoad,
/* DEVconvTest */ HSM2convTest,
/* DEVsenSetup */ NULL,
/* DEVsenLoad */ NULL,
/* DEVsenUpdate */ NULL,
/* DEVsenAcLoad */ NULL,
/* DEVsenPrint */ NULL,
/* DEVsenTrunc */ NULL,
/* DEVdisto */ NULL,
/* DEVnoise */ HSM2noise,
#ifdef CIDER
/* DEVdump */ NULL,
/* DEVacct */ NULL,
#endif
/* DEVinstSize */ &HSM2iSize,
/* DEVmodSize */ &HSM2mSize
};
SPICEdev *
get_hsm2_info(void)
{
return &HSM2info;
}

View File

@ -0,0 +1,13 @@
#ifndef _HISIM2INIT_H
#define _HISIM2INIT_H
extern IFparm HSM2pTable[ ];
extern IFparm HSM2mPTable[ ];
extern char *HSM2names[ ];
extern int HSM2pTSize;
extern int HSM2mPTSize;
extern int HSM2nSize;
extern int HSM2iSize;
extern int HSM2mSize;
#endif