rewrite-SPICEdev, fix ngspiceMODULEinit.c.xml too
This commit is contained in:
parent
9e4c7f11ce
commit
7656905d7a
|
|
@ -35,75 +35,72 @@
|
|||
#include "$(module)init.h"
|
||||
|
||||
SPICEdev $(module)info = {
|
||||
{ "$module",
|
||||
"$module created by adms",
|
||||
&$(module)nSize,
|
||||
&$(module)nSize,
|
||||
$(module)names,
|
||||
&$(module)pTSize,
|
||||
$(module)pTable,
|
||||
&$(module)mPTSize,
|
||||
$(module)mPTable,
|
||||
.DEVpublic = {
|
||||
.name = "$module",
|
||||
.description = "$module created by adms",
|
||||
.terms = &$(module)nSize,
|
||||
.numNames = &$(module)nSize,
|
||||
.termNames = $(module)names,
|
||||
.numInstanceParms = &$(module)pTSize,
|
||||
.instanceParms = $(module)pTable,
|
||||
.numModelParms = &$(module)mPTSize,
|
||||
.modelParms = $(module)mPTable,
|
||||
.flags = DEV_DEFAULT,
|
||||
|
||||
#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 -------------------------*/
|
||||
.cm_func = NULL,
|
||||
.num_conn = 0,
|
||||
.conn = NULL,
|
||||
.num_param = 0,
|
||||
.param = NULL,
|
||||
.num_inst_var = 0,
|
||||
.inst_var = NULL,
|
||||
#endif
|
||||
DEV_DEFAULT
|
||||
},
|
||||
},
|
||||
|
||||
.DEVparam = $(module)par,
|
||||
.DEVmodParam = $(module)mParam,
|
||||
.DEVload = $(module)load,
|
||||
.DEVsetup = $(module)setup,
|
||||
.DEVunsetup = $(module)unsetup,
|
||||
.DEVpzSetup = $(module)setup,
|
||||
.DEVtemperature = $(module)temp,
|
||||
.DEVtrunc = $(module)trunc,
|
||||
.DEVfindBranch = NULL,
|
||||
.DEVacLoad = $(module)acLoad,
|
||||
.DEVaccept = NULL,
|
||||
.DEVdestroy = $(module)destroy,
|
||||
.DEVmodDelete = $(module)mDelete,
|
||||
.DEVdelete = $(module)delete,
|
||||
.DEVsetic = NULL,
|
||||
.DEVask = $(module)ask,
|
||||
.DEVmodAsk = $(module)mAsk,
|
||||
.DEVpzLoad = $(module)pzLoad,
|
||||
.DEVconvTest = NULL,
|
||||
.DEVsenSetup = NULL,
|
||||
.DEVsenLoad = NULL,
|
||||
.DEVsenUpdate = NULL,
|
||||
.DEVsenAcLoad = NULL,
|
||||
.DEVsenPrint = NULL,
|
||||
.DEVsenTrunc = NULL,
|
||||
.DEVdisto = NULL,
|
||||
.DEVnoise = NULL,
|
||||
.DEVsoaCheck = NULL,
|
||||
.DEVinstSize = &$(module)iSize,
|
||||
.DEVmodSize = &$(module)mSize,
|
||||
|
||||
$(module)par, /* DEVparam */
|
||||
$(module)mParam, /* DEVmodParam */
|
||||
$(module)load, /* DEVload */
|
||||
$(module)setup, /* DEVsetup */
|
||||
$(module)unsetup, /* DEVunsetup */
|
||||
$(module)setup, /* DEVpzSetup */
|
||||
$(module)temp, /* DEVtemperature */
|
||||
$(module)trunc, /* DEVtrunc */
|
||||
NULL, /* DEVfindBranch */
|
||||
$(module)acLoad, /* DEVacLoad */
|
||||
NULL, /* DEVaccept */
|
||||
$(module)destroy, /* DEVdestroy */
|
||||
$(module)mDelete, /* DEVmodDelete */
|
||||
$(module)delete, /* DEVdelete */
|
||||
NULL, /* DEVsetic */
|
||||
$(module)ask, /* DEVask */
|
||||
$(module)mAsk, /* DEVmodAsk */
|
||||
$(module)pzLoad, /* DEVpzLoad */
|
||||
NULL, /* DEVconvTest */
|
||||
NULL, /* DEVsenSetup */
|
||||
NULL, /* DEVsenLoad */
|
||||
NULL, /* DEVsenUpdate */
|
||||
NULL, /* DEVsenAcLoad */
|
||||
NULL, /* DEVsenPrint */
|
||||
NULL, /* DEVsenTrunc */
|
||||
NULL, /* DEVdisto */
|
||||
NULL, /* DEVnoise */
|
||||
NULL, /* DEVsoaCheck */
|
||||
#ifdef CIDER
|
||||
NULL, /* DEVdump */
|
||||
NULL, /* DEVacct */
|
||||
#endif
|
||||
&$(module)iSize, /* DEVinstSize */
|
||||
&$(module)mSize /* DEVmodSize */
|
||||
|
||||
.DEVdump = NULL,
|
||||
.DEVacct = NULL,
|
||||
#endif
|
||||
};
|
||||
|
||||
|
||||
SPICEdev *
|
||||
get_$(module)_info(void)
|
||||
{
|
||||
return &$(module)info;
|
||||
}
|
||||
|
||||
</admst:template>
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue