changed the declarator to new format

This commit is contained in:
dwarning 2009-11-26 20:04:09 +00:00
parent 6d13becdb7
commit 586af63f36
147 changed files with 741 additions and 598 deletions

View File

@ -413,16 +413,16 @@ com_rspice(wordlist *wl)
#else
void
com_aspice(wl)
wordlist *wl;
com_aspice(
wordlist *wl)
{
fprintf(cp_err, "Asynchronous spice jobs are not available.\n");
return;
}
void
com_jobs(wl)
wordlist *wl;
com_jobs(
wordlist *wl)
{
fprintf(cp_err, "Asynchronous spice jobs are not available.\n");
return;
@ -435,8 +435,8 @@ ft_checkkids( )
}
void
com_rspice(wl)
wordlist *wl;
com_rspice(
wordlist *wl)
{
fprintf(cp_err, "Remote spice jobs are not available.\n");
return;

View File

@ -110,8 +110,8 @@ int GL_Init()
}
/* devdep initially contains name of output file */
int GL_NewViewport(graph)
GRAPH *graph;
int GL_NewViewport(
GRAPH *graph)
{
/* double scaleps, scalex, scaley; */
@ -195,8 +195,8 @@ int GL_Clear()
return 0;
}
int GL_DrawLine(x1, y1, x2, y2)
int x1, y1, x2, y2;
int GL_DrawLine(
int x1, int y1, int x2, int y2)
{
/* note: this is not extendible to more than one graph
@ -222,9 +222,9 @@ int x1, y1, x2, y2;
}
/* ARGSUSED */
int GL_Arc(x0, y0, r, theta1, theta2)
int x0, y0, r;
double theta1, theta2;
int GL_Arc(
int x0, int y0, int r,
double theta1, double theta2)
{
double x1, y1;
double angle1, angle2;
@ -247,9 +247,9 @@ double theta1, theta2;
return 0;
}
int GL_Text(text, x, y)
char *text;
int x, y;
int GL_Text(
char *text,
int x, int y)
{
/* int savedlstyle; */
@ -268,8 +268,8 @@ int x, y;
}
int
GL_SetLinestyle(linestyleid)
int linestyleid;
GL_SetLinestyle(
int linestyleid)
{
/* special case
@ -293,8 +293,8 @@ int linestyleid;
}
/* ARGSUSED */
int GL_SetColor(colorid)
int colorid;
int GL_SetColor(
int colorid)
{
/*va: unused: static int flag = 0;*/ /* A hack */

View File

@ -86,9 +86,9 @@ static int numeofs = 0;
/* CDHW Debug function */
static void
pwlist_echo(wlist, name) /*CDHW used to perform function of set echo */
wordlist *wlist;
char *name;
pwlist_echo( /*CDHW used to perform function of set echo */
wordlist *wlist,
char *name)
{
wordlist *wl;

View File

@ -13,8 +13,8 @@ Author: 1989 Jaijeet S. Roychowdhury
* function of three variables p, q, and r.
*/
void TanDeriv(new, old)
Dderivs *new, *old;
void TanDeriv(
Dderivs *new, Dderivs *old)
{
Dderivs temp;

View File

@ -139,9 +139,9 @@ strtolower(char *str)
*/
int
cinprefix(p, s, n)
register char *p, *s;
register int n;
cinprefix(
register char *p, register char *s,
register int n)
{
if (!p || !s) return( 0 );
@ -165,8 +165,8 @@ register int n;
*/
int
cimatch(p, s)
register char *p, *s;
cimatch(
register char *p, register char *s)
{
register int n = 0;

View File

@ -8,8 +8,8 @@ Author: 1999 Alan Gillespie
#include "suffix.h"
void
CKTncDump(ckt)
CKTcircuit *ckt;
CKTncDump(
CKTcircuit *ckt)
{
CKTnode *node;
double new, old, tol;

View File

@ -138,9 +138,9 @@ if((here->ptr = SMPmakeElt(matrix,here->first,((CKTnode*)(second))->number))\
}
int
ASRCunsetup(inModel,ckt)
GENmodel *inModel;
CKTcircuit *ckt;
ASRCunsetup(
GENmodel *inModel,
CKTcircuit *ckt)
{
ASRCmodel *model;
ASRCinstance *here;

View File

@ -262,9 +262,9 @@ if((here->ptr = SMPmakeElt(matrix,here->first,here->second))==(double *)NULL){\
}
int
BJTunsetup(inModel,ckt)
GENmodel *inModel;
CKTcircuit *ckt;
BJTunsetup(
GENmodel *inModel,
CKTcircuit *ckt)
{
BJTmodel *model;
BJTinstance *here;

View File

@ -570,9 +570,9 @@ if((here->ptr = SMPmakeElt(matrix,here->first,here->second))==(double *)NULL){\
}
int
B2unsetup(inModel,ckt)
GENmodel *inModel;
CKTcircuit *ckt;
B2unsetup(
GENmodel *inModel,
CKTcircuit *ckt)
{
B2model *model;
B2instance *here;

View File

@ -16,9 +16,9 @@
int
BSIM3acLoad(inModel,ckt)
GENmodel *inModel;
CKTcircuit *ckt;
BSIM3acLoad(
GENmodel *inModel,
CKTcircuit *ckt)
{
BSIM3model *model = (BSIM3model*)inModel;
BSIM3instance *here;

View File

@ -17,12 +17,12 @@
#include "suffix.h"
int
BSIM3ask(ckt,inst,which,value,select)
CKTcircuit *ckt;
GENinstance *inst;
int which;
IFvalue *value;
IFvalue *select;
BSIM3ask(
CKTcircuit *ckt,
GENinstance *inst,
int which,
IFvalue *value,
IFvalue *select)
{
BSIM3instance *here = (BSIM3instance*)inst;

View File

@ -20,10 +20,10 @@
#include "suffix.h"
int
BSIM3checkModel(model, here, ckt)
BSIM3model *model;
BSIM3instance *here;
CKTcircuit *ckt;
BSIM3checkModel(
BSIM3model *model,
BSIM3instance *here,
CKTcircuit *ckt)
{
struct bsim3SizeDependParam *pParam;
int Fatal_Flag = 0;

View File

@ -19,9 +19,9 @@
int
BSIM3convTest(inModel,ckt)
GENmodel *inModel;
CKTcircuit *ckt;
BSIM3convTest(
GENmodel *inModel,
CKTcircuit *ckt)
{
BSIM3model *model = (BSIM3model*)inModel;
BSIM3instance *here;

View File

@ -17,10 +17,10 @@
int
BSIM3delete(inModel,name,inInst)
GENmodel *inModel;
IFuid name;
GENinstance **inInst;
BSIM3delete(
GENmodel *inModel,
IFuid name,
GENinstance **inInst)
{
BSIM3instance **fast = (BSIM3instance**)inInst;
BSIM3model *model = (BSIM3model*)inModel;

View File

@ -13,8 +13,8 @@
#include "suffix.h"
void
BSIM3destroy(inModel)
GENmodel **inModel;
BSIM3destroy(
GENmodel **inModel)
{
BSIM3model **model = (BSIM3model**)inModel;
BSIM3instance *here;

View File

@ -16,9 +16,9 @@
int
BSIM3getic(inModel,ckt)
GENmodel *inModel;
CKTcircuit *ckt;
BSIM3getic(
GENmodel *inModel,
CKTcircuit *ckt)
{
BSIM3model *model = (BSIM3model*)inModel;
BSIM3instance *here;

View File

@ -33,9 +33,9 @@
int
BSIM3load(inModel,ckt)
GENmodel *inModel;
CKTcircuit *ckt;
BSIM3load(
GENmodel *inModel,
CKTcircuit *ckt)
{
BSIM3model *model = (BSIM3model*)inModel;
BSIM3instance *here;

View File

@ -17,11 +17,11 @@
#include "suffix.h"
int
BSIM3mAsk(ckt,inst,which,value)
CKTcircuit *ckt;
GENmodel *inst;
int which;
IFvalue *value;
BSIM3mAsk(
CKTcircuit *ckt,
GENmodel *inst,
int which,
IFvalue *value)
{
BSIM3model *model = (BSIM3model *)inst;
switch(which)

View File

@ -14,10 +14,10 @@
#include "suffix.h"
int
BSIM3mDelete(inModel,modname,kill)
GENmodel **inModel;
IFuid modname;
GENmodel *kill;
BSIM3mDelete(
GENmodel **inModel,
IFuid modname,
GENmodel *kill)
{
BSIM3model **model = (BSIM3model**)inModel;
BSIM3model *modfast = (BSIM3model*)kill;

View File

@ -16,10 +16,10 @@
int
BSIM3mParam(param,value,inMod)
int param;
IFvalue *value;
GENmodel *inMod;
BSIM3mParam(
int param,
IFvalue *value,
GENmodel *inMod)
{
BSIM3model *mod = (BSIM3model*)inMod;
switch(param)

View File

@ -58,10 +58,11 @@ extern double Nintegrate();
double
StrongInversionNoiseEval(Vds, model, here, freq, temp)
double Vds, freq, temp;
BSIM3model *model;
BSIM3instance *here;
StrongInversionNoiseEval(
double Vds,
BSIM3model *model,
BSIM3instance *here,
double freq, double temp)
{
struct bsim3SizeDependParam *pParam;
double cd, esat, DelClm, EffFreq, N0, Nl, Leff, Leffsq;
@ -102,12 +103,12 @@ double T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, Ssi;
}
int
BSIM3noise (mode, operation, inModel, ckt, data, OnDens)
int mode, operation;
GENmodel *inModel;
CKTcircuit *ckt;
Ndata *data;
double *OnDens;
BSIM3noise (
int mode, int operation,
GENmodel *inModel,
CKTcircuit *ckt,
Ndata *data,
double *OnDens)
{
BSIM3model *model = (BSIM3model *)inModel;
BSIM3instance *here;

View File

@ -16,7 +16,11 @@
#include "fteext.h"
int
BSIM3param (int param, IFvalue *value, GENinstance *inst, IFvalue *select)
BSIM3param (
int param,
IFvalue *value,
GENinstance *inst,
IFvalue *select)
{
double scale;

View File

@ -16,10 +16,10 @@
#include "suffix.h"
int
BSIM3pzLoad(inModel,ckt,s)
GENmodel *inModel;
CKTcircuit *ckt;
SPcomplex *s;
BSIM3pzLoad(
GENmodel *inModel,
CKTcircuit *ckt,
SPcomplex *s)
{
BSIM3model *model = (BSIM3model*)inModel;
BSIM3instance *here;

View File

@ -27,11 +27,11 @@
#define Meter2Micron 1.0e6
int
BSIM3setup(matrix,inModel,ckt,states)
SMPmatrix *matrix;
GENmodel *inModel;
CKTcircuit *ckt;
int *states;
BSIM3setup(
SMPmatrix *matrix,
GENmodel *inModel,
CKTcircuit *ckt,
int *states)
{
BSIM3model *model = (BSIM3model*)inModel;
BSIM3instance *here;
@ -983,9 +983,9 @@ if((here->ptr = SMPmakeElt(matrix,here->first,here->second))==(double *)NULL){\
}
int
BSIM3unsetup(inModel,ckt)
GENmodel *inModel;
CKTcircuit *ckt;
BSIM3unsetup(
GENmodel *inModel,
CKTcircuit *ckt)
{
BSIM3model *model;
BSIM3instance *here;

View File

@ -31,9 +31,9 @@
/* ARGSUSED */
int
BSIM3temp(inModel,ckt)
GENmodel *inModel;
CKTcircuit *ckt;
BSIM3temp(
GENmodel *inModel,
CKTcircuit *ckt)
{
BSIM3model *model = (BSIM3model*) inModel;
BSIM3instance *here;

View File

@ -16,10 +16,10 @@
int
BSIM3trunc(inModel,ckt,timeStep)
GENmodel *inModel;
CKTcircuit *ckt;
double *timeStep;
BSIM3trunc(
GENmodel *inModel,
CKTcircuit *ckt,
double *timeStep)
{
BSIM3model *model = (BSIM3model*)inModel;
BSIM3instance *here;

View File

@ -19,7 +19,9 @@
int
B4SOIacLoad(GENmodel *inModel, CKTcircuit *ckt)
B4SOIacLoad(
GENmodel *inModel,
CKTcircuit *ckt)
{
register B4SOImodel *model = (B4SOImodel*)inModel;
register B4SOIinstance *here;

View File

@ -20,7 +20,12 @@
#include "suffix.h"
int
B4SOIask(CKTcircuit *ckt, GENinstance *inst, int which, IFvalue *value, IFvalue *select)
B4SOIask(
CKTcircuit *ckt,
GENinstance *inst,
int which,
IFvalue *value,
IFvalue *select)
{
B4SOIinstance *here = (B4SOIinstance*)inst;

View File

@ -21,7 +21,10 @@
#include "suffix.h"
int
B4SOIcheckModel(B4SOImodel *model, B4SOIinstance *here, CKTcircuit *ckt)
B4SOIcheckModel(
B4SOImodel *model,
B4SOIinstance *here,
CKTcircuit *ckt)
{
struct b4soiSizeDependParam *pParam;
int Fatal_Flag = 0;

View File

@ -22,7 +22,9 @@
int
B4SOIconvTest(GENmodel *inModel, CKTcircuit *ckt)
B4SOIconvTest(
GENmodel *inModel,
CKTcircuit *ckt)
{
register B4SOImodel *model = (B4SOImodel*)inModel;
register B4SOIinstance *here;

View File

@ -19,7 +19,10 @@
int
B4SOIdelete(GENmodel *inModel, IFuid name, GENinstance **inInst)
B4SOIdelete(
GENmodel *inModel,
IFuid name,
GENinstance **inInst)
{
B4SOIinstance **fast = (B4SOIinstance**)inInst;
B4SOImodel *model = (B4SOImodel*)inModel;

View File

@ -16,7 +16,8 @@
#include "suffix.h"
void
B4SOIdestroy(GENmodel **inModel)
B4SOIdestroy(
GENmodel **inModel)
{
B4SOImodel **model = (B4SOImodel**)inModel;
B4SOIinstance *here;

View File

@ -19,7 +19,9 @@
int
B4SOIgetic(GENmodel *inModel, CKTcircuit *ckt)
B4SOIgetic(
GENmodel *inModel,
CKTcircuit *ckt)
{
B4SOImodel *model = (B4SOImodel*)inModel;
B4SOIinstance *here;

View File

@ -62,7 +62,11 @@
*/
double
B4SOIlimit(double vnew, double vold, double limit, int *check)
B4SOIlimit(
double vnew,
double vold,
double limit,
int *check)
{
double T0, T1;
@ -88,7 +92,9 @@ B4SOIlimit(double vnew, double vold, double limit, int *check)
int
B4SOIload(GENmodel *inModel, CKTcircuit *ckt)
B4SOIload(
GENmodel *inModel,
CKTcircuit *ckt)
{
register B4SOImodel *model = (B4SOImodel*)inModel;
register B4SOIinstance *here;

View File

@ -20,7 +20,11 @@
#include "suffix.h"
int
B4SOImAsk(CKTcircuit *ckt, GENmodel *inst, int which, IFvalue *value)
B4SOImAsk(
CKTcircuit *ckt,
GENmodel *inst,
int which,
IFvalue *value)
{
B4SOImodel *model = (B4SOImodel *)inst;
switch(which)

View File

@ -17,7 +17,10 @@
#include "suffix.h"
int
B4SOImDelete(GENmodel **inModel, IFuid modname, GENmodel *kill)
B4SOImDelete(
GENmodel **inModel,
IFuid modname,
GENmodel *kill)
{
B4SOImodel **model = (B4SOImodel**)inModel;
B4SOImodel *modfast = (B4SOImodel*)kill;

View File

@ -19,7 +19,10 @@
int
B4SOImParam(int param, IFvalue *value, GENmodel *inMod)
B4SOImParam(
int param,
IFvalue *value,
GENmodel *inMod)
{
B4SOImodel *mod = (B4SOImodel*)inMod;
switch(param)

View File

@ -47,7 +47,12 @@ extern void NevalSrc();
extern double Nintegrate();
double
B4SOIEval1ovFNoise(double vds, B4SOImodel *model, B4SOIinstance *here, double freq, double temp)
B4SOIEval1ovFNoise(
double vds,
B4SOImodel *model,
B4SOIinstance *here,
double freq,
double temp)
{
struct b4soiSizeDependParam *pParam;
double cd, esat, DelClm, EffFreq, N0, Nl;
@ -93,8 +98,12 @@ double T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, Ssi;
}
int
B4SOInoise (int mode, int operation, GENmodel *inModel, CKTcircuit *ckt,
Ndata *data, double *OnDens)
B4SOInoise (
int mode, int operation,
GENmodel *inModel,
CKTcircuit *ckt,
Ndata *data,
double *OnDens)
{
register B4SOImodel *model = (B4SOImodel *)inModel;
register B4SOIinstance *here;

View File

@ -18,7 +18,11 @@
#include "suffix.h"
int
B4SOIparam(int param, IFvalue *value, GENinstance *inst, IFvalue *select)
B4SOIparam(
int param,
IFvalue *value,
GENinstance *inst,
IFvalue *select)
{
B4SOIinstance *here = (B4SOIinstance*)inst;
switch(param)

View File

@ -19,7 +19,10 @@
#include "suffix.h"
int
B4SOIpzLoad(GENmodel *inModel, CKTcircuit *ckt, SPcomplex *s)
B4SOIpzLoad(
GENmodel *inModel,
CKTcircuit *ckt,
SPcomplex *s)
{
register B4SOImodel *model = (B4SOImodel*)inModel;
register B4SOIinstance *here;

View File

@ -30,7 +30,11 @@
double epsrox, toxe, epssub;
int
B4SOIsetup(SMPmatrix *matrix, GENmodel *inModel, CKTcircuit *ckt, int *states)
B4SOIsetup(
SMPmatrix *matrix,
GENmodel *inModel,
CKTcircuit *ckt,
int *states)
{
register B4SOImodel *model = (B4SOImodel*)inModel;
register B4SOIinstance *here;

View File

@ -46,7 +46,9 @@
/* ARGSUSED */
int
B4SOItemp(GENmodel *inModel, CKTcircuit *ckt)
B4SOItemp(
GENmodel *inModel,
CKTcircuit *ckt)
{
register B4SOImodel *model = (B4SOImodel*) inModel;
register B4SOIinstance *here;

View File

@ -19,7 +19,10 @@
int
B4SOItrunc(GENmodel *inModel, CKTcircuit *ckt, double *timeStep)
B4SOItrunc(
GENmodel *inModel,
CKTcircuit *ckt,
double *timeStep)
{
register B4SOImodel *model = (B4SOImodel*)inModel;
register B4SOIinstance *here;

View File

@ -1453,9 +1453,9 @@ if((here->ptr = SMPmakeElt(matrix,here->first,here->second))==(double *)NULL){\
}
int
B3SOIPDunsetup(inModel,ckt)
GENmodel *inModel;
CKTcircuit *ckt;
B3SOIPDunsetup(
GENmodel *inModel,
CKTcircuit *ckt)
{
B3SOIPDmodel *model;
B3SOIPDinstance *here;

View File

@ -13,11 +13,11 @@ File: b3v0mask.c
#include "suffix.h"
int
BSIM3v0mAsk(ckt,inst,which,value)
CKTcircuit *ckt;
GENmodel *inst;
int which;
IFvalue *value;
BSIM3v0mAsk(
CKTcircuit *ckt,
GENmodel *inst,
int which,
IFvalue *value)
{
BSIM3v0model *model = (BSIM3v0model *)inst;
switch(which)

View File

@ -1059,9 +1059,9 @@ if((here->ptr = SMPmakeElt(matrix,here->first,here->second))==(double *)NULL){\
}
int
BSIM3v32unsetup(inModel,ckt)
GENmodel *inModel;
CKTcircuit *ckt;
BSIM3v32unsetup(
GENmodel *inModel,
CKTcircuit *ckt)
{
BSIM3v32model *model;
BSIM3v32instance *here;

View File

@ -19,7 +19,9 @@
int
BSIM4acLoad(GENmodel *inModel, CKTcircuit *ckt)
BSIM4acLoad(
GENmodel *inModel,
CKTcircuit *ckt)
{
BSIM4model *model = (BSIM4model*)inModel;
BSIM4instance *here;

View File

@ -23,7 +23,12 @@
#include "suffix.h"
int
BSIM4ask(CKTcircuit *ckt, GENinstance *inst, int which, IFvalue *value, IFvalue *select)
BSIM4ask(
CKTcircuit *ckt,
GENinstance *inst,
int which,
IFvalue *value,
IFvalue *select)
{
BSIM4instance *here = (BSIM4instance*)inst;

View File

@ -29,7 +29,10 @@
#include "suffix.h"
int
BSIM4checkModel(BSIM4model *model, BSIM4instance *here, CKTcircuit *ckt)
BSIM4checkModel(
BSIM4model *model,
BSIM4instance *here,
CKTcircuit *ckt)
{
struct bsim4SizeDependParam *pParam;
int Fatal_Flag = 0;

View File

@ -24,7 +24,9 @@
int
BSIM4convTest(GENmodel *inModel, CKTcircuit *ckt)
BSIM4convTest(
GENmodel *inModel,
CKTcircuit *ckt)
{
BSIM4model *model = (BSIM4model*)inModel;
BSIM4instance *here;

View File

@ -18,7 +18,10 @@
int
BSIM4delete(GENmodel *inModel, IFuid name, GENinstance **inInst)
BSIM4delete(
GENmodel *inModel,
IFuid name,
GENinstance **inInst)
{
BSIM4instance **fast = (BSIM4instance**)inInst;
BSIM4model *model = (BSIM4model*)inModel;

View File

@ -15,7 +15,8 @@
#include "suffix.h"
void
BSIM4destroy(GENmodel **inModel)
BSIM4destroy(
GENmodel **inModel)
{
BSIM4model **model = (BSIM4model**)inModel;
BSIM4instance *here;

View File

@ -18,7 +18,9 @@
int
BSIM4getic(GENmodel *inModel, CKTcircuit *ckt)
BSIM4getic(
GENmodel *inModel,
CKTcircuit *ckt)
{
BSIM4model *model = (BSIM4model*)inModel;
BSIM4instance *here;

View File

@ -61,7 +61,9 @@
int BSIM4polyDepletion(double phi, double ngate,double epsgate, double coxe, double Vgs, double *Vgs_eff, double *dVgs_eff_dVg);
int
BSIM4load(GENmodel *inModel, CKTcircuit *ckt)
BSIM4load(
GENmodel *inModel,
CKTcircuit *ckt)
{
BSIM4model *model = (BSIM4model*)inModel;
BSIM4instance *here;

View File

@ -27,7 +27,11 @@
#include "suffix.h"
int
BSIM4mAsk(CKTcircuit *ckt, GENmodel *inst, int which, IFvalue *value)
BSIM4mAsk(
CKTcircuit *ckt,
GENmodel *inst,
int which,
IFvalue *value)
{
BSIM4model *model = (BSIM4model *)inst;
switch(which)

View File

@ -16,7 +16,10 @@
#include "suffix.h"
int
BSIM4mDelete(GENmodel **inModel, IFuid modname, GENmodel *kill)
BSIM4mDelete(
GENmodel **inModel,
IFuid modname,
GENmodel *kill)
{
BSIM4model **model = (BSIM4model**)inModel;
BSIM4model *modfast = (BSIM4model*)kill;

View File

@ -28,7 +28,10 @@
#include "const.h"
int
BSIM4mParam(int param, IFvalue *value, GENmodel *inMod)
BSIM4mParam(
int param,
IFvalue *value,
GENmodel *inMod)
{
BSIM4model *mod = (BSIM4model*)inMod;
switch(param)

View File

@ -78,7 +78,13 @@ double T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, Ssi;
int
BSIM4noise(int mode, int operation, GENmodel *inModel, CKTcircuit *ckt, Ndata *data, double *OnDens)
BSIM4noise(
int mode,
int operation,
GENmodel *inModel,
CKTcircuit *ckt,
Ndata *data,
double *OnDens)
{
BSIM4model *model = (BSIM4model *)inModel;
BSIM4instance *here;

View File

@ -22,7 +22,11 @@
#include "fteext.h"
int
BSIM4param(int param, IFvalue *value, GENinstance *inst, IFvalue *select)
BSIM4param(
int param,
IFvalue *value,
GENinstance *inst,
IFvalue *select)
{
double scale;

View File

@ -19,7 +19,10 @@
#include "suffix.h"
int
BSIM4pzLoad(GENmodel *inModel, CKTcircuit *ckt, SPcomplex *s)
BSIM4pzLoad(
GENmodel *inModel,
CKTcircuit *ckt,
SPcomplex *s)
{
BSIM4model *model = (BSIM4model*)inModel;
BSIM4instance *here;

View File

@ -44,7 +44,11 @@ int
BSIM4RdseffGeo(double, int, int, int, double, double, double, double, double, int, double *);
int
BSIM4setup(SMPmatrix *matrix, GENmodel *inModel, CKTcircuit *ckt, int *states)
BSIM4setup(
SMPmatrix *matrix,
GENmodel *inModel,
CKTcircuit *ckt,
int *states)
{
BSIM4model *model = (BSIM4model*)inModel;
BSIM4instance *here;

View File

@ -70,7 +70,9 @@ return 0;
int
BSIM4temp(GENmodel *inModel, CKTcircuit *ckt)
BSIM4temp(
GENmodel *inModel,
CKTcircuit *ckt)
{
BSIM4model *model = (BSIM4model*) inModel;
BSIM4instance *here;

View File

@ -18,7 +18,10 @@
int
BSIM4trunc(GENmodel *inModel, CKTcircuit *ckt, double *timeStep)
BSIM4trunc(
GENmodel *inModel,
CKTcircuit *ckt,
double *timeStep)
{
BSIM4model *model = (BSIM4model*)inModel;
BSIM4instance *here;

View File

@ -18,9 +18,9 @@
int
BSIM4v2acLoad(inModel,ckt)
GENmodel *inModel;
CKTcircuit *ckt;
BSIM4v2acLoad(
GENmodel *inModel,
CKTcircuit *ckt)
{
BSIM4v2model *model = (BSIM4v2model*)inModel;
BSIM4v2instance *here;

View File

@ -21,12 +21,12 @@
int
BSIM4v2ask(ckt,inst,which,value,select)
CKTcircuit *ckt;
GENinstance *inst;
int which;
IFvalue *value;
IFvalue *select;
BSIM4v2ask(
CKTcircuit *ckt,
GENinstance *inst,
int which,
IFvalue *value,
IFvalue *select)
{
BSIM4v2instance *here = (BSIM4v2instance*)inst;

View File

@ -21,10 +21,10 @@
#include "devdefs.h"
int
BSIM4v2checkModel(model, here, ckt)
BSIM4v2model *model;
BSIM4v2instance *here;
CKTcircuit *ckt;
BSIM4v2checkModel(
BSIM4v2model *model,
BSIM4v2instance *here,
CKTcircuit *ckt)
{
struct bsim4SizeDependParam *pParam;
int Fatal_Flag = 0;

View File

@ -23,9 +23,9 @@
int
BSIM4v2convTest(inModel,ckt)
GENmodel *inModel;
CKTcircuit *ckt;
BSIM4v2convTest(
GENmodel *inModel,
CKTcircuit *ckt)
{
BSIM4v2model *model = (BSIM4v2model*)inModel;
BSIM4v2instance *here;

View File

@ -16,10 +16,10 @@
int
BSIM4v2delete(inModel,name,inInst)
GENmodel *inModel;
IFuid name;
GENinstance **inInst;
BSIM4v2delete(
GENmodel *inModel,
IFuid name,
GENinstance **inInst)
{
BSIM4v2instance **fast = (BSIM4v2instance**)inInst;
BSIM4v2model *model = (BSIM4v2model*)inModel;

View File

@ -13,8 +13,8 @@
#include "bsim4v2def.h"
void
BSIM4v2destroy(inModel)
GENmodel **inModel;
BSIM4v2destroy(
GENmodel **inModel)
{
BSIM4v2model **model = (BSIM4v2model**)inModel;
BSIM4v2instance *here;

View File

@ -25,9 +25,10 @@ BSIM4v2RdsEndSha(double, double, double, double, double, double, int, int, doubl
*/
int
BSIM4v2NumFingerDiff(nf, minSD, nuIntD, nuEndD, nuIntS, nuEndS)
int minSD;
double nf, *nuIntD, *nuEndD, *nuIntS, *nuEndS;
BSIM4v2NumFingerDiff(
double nf,
int minSD,
double *nuIntD, double *nuEndD, double *nuIntS, double *nuEndS)
{
int NF;
NF = (int)nf;
@ -54,10 +55,11 @@ return 0;
int
BSIM4v2PAeffGeo(nf, geo, minSD, Weffcj, DMCG, DMCI, DMDG, Ps, Pd, As, Ad)
int geo, minSD;
double Weffcj, DMCG, DMCI, DMDG;
double nf, *Ps, *Pd, *As, *Ad;
BSIM4v2PAeffGeo(
double nf,
int geo, int minSD,
double Weffcj, double DMCG, double DMCI, double DMDG,
double *Ps, double *Pd, double *As, double *Ad)
{
double T0, T1, T2;
double ADiso, ADsha, ADmer, ASiso, ASsha, ASmer;
@ -154,10 +156,12 @@ return 0;
int
BSIM4v2RdseffGeo(nf, geo, rgeo, minSD, Weffcj, Rsh, DMCG, DMCI, DMDG, Type, Rtot)
int geo, rgeo, minSD, Type;
double nf, Weffcj, Rsh, DMCG, DMCI, DMDG;
double *Rtot;
BSIM4v2RdseffGeo(
double nf,
int geo, int rgeo, int minSD,
double Weffcj, double Rsh, double DMCG, double DMCI, double DMDG,
int Type,
double *Rtot)
{
double Rint=0.0, Rend = 0.0;
double nuIntD = 0.0, nuEndD = 0.0, nuIntS = 0.0, nuEndS = 0.0;
@ -272,10 +276,11 @@ return 0;
int
BSIM4v2RdsEndIso(Weffcj, Rsh, DMCG, DMCI, DMDG, nuEnd, rgeo, Type, Rend)
double Weffcj, Rsh, DMCG, DMCI, DMDG;
int rgeo, Type;
double nuEnd, *Rend;
BSIM4v2RdsEndIso(
double Weffcj, double Rsh, double DMCG, double DMCI, double DMDG,
double nuEnd,
int rgeo, int Type,
double *Rend)
{
if (Type == 1)
{ switch(rgeo)
@ -330,10 +335,11 @@ return 0;
int
BSIM4v2RdsEndSha(Weffcj, Rsh, DMCG, DMCI, DMDG, nuEnd, rgeo, Type, Rend)
double Weffcj, Rsh, DMCG, DMCI, DMDG;
int rgeo, Type;
double nuEnd, *Rend;
BSIM4v2RdsEndSha(
double Weffcj, double Rsh, double DMCG, double DMCI, double DMDG,
double nuEnd,
int rgeo, int Type,
double *Rend)
{
if (Type == 1)
{ switch(rgeo)

View File

@ -16,9 +16,9 @@
int
BSIM4v2getic(inModel,ckt)
GENmodel *inModel;
CKTcircuit *ckt;
BSIM4v2getic(
GENmodel *inModel,
CKTcircuit *ckt)
{
BSIM4v2model *model = (BSIM4v2model*)inModel;
BSIM4v2instance *here;

View File

@ -31,9 +31,9 @@
int BSIM4v2polyDepletion(double phi, double ngate,double coxe, double Vgs, double *Vgs_eff, double *dVgs_eff_dVg);
int
BSIM4v2load(inModel,ckt)
GENmodel *inModel;
register CKTcircuit *ckt;
BSIM4v2load(
GENmodel *inModel,
register CKTcircuit *ckt)
{
register BSIM4v2model *model = (BSIM4v2model*)inModel;
register BSIM4v2instance *here;

View File

@ -19,11 +19,11 @@
int
BSIM4v2mAsk(ckt,inst,which,value)
CKTcircuit *ckt;
GENmodel *inst;
int which;
IFvalue *value;
BSIM4v2mAsk(
CKTcircuit *ckt,
GENmodel *inst,
int which,
IFvalue *value)
{
BSIM4v2model *model = (BSIM4v2model *)inst;
switch(which)

View File

@ -15,10 +15,10 @@
int
BSIM4v2mDelete(inModel,modname,kill)
GENmodel **inModel;
IFuid modname;
GENmodel *kill;
BSIM4v2mDelete(
GENmodel **inModel,
IFuid modname,
GENmodel *kill)
{
BSIM4v2model **model = (BSIM4v2model**)inModel;
BSIM4v2model *modfast = (BSIM4v2model*)kill;

View File

@ -18,10 +18,10 @@
#include "const.h"
int
BSIM4v2mParam(param,value,inMod)
int param;
IFvalue *value;
GENmodel *inMod;
BSIM4v2mParam(
int param,
IFvalue *value,
GENmodel *inMod)
{
BSIM4v2model *mod = (BSIM4v2model*)inMod;
switch(param)

View File

@ -28,10 +28,11 @@ extern double Nintegrate();
*/
double
BSIM4v2Eval1ovFNoise(Vds, model, here, freq, temp)
double Vds, freq, temp;
BSIM4v2model *model;
BSIM4v2instance *here;
BSIM4v2Eval1ovFNoise(
double Vds,
BSIM4v2model *model,
BSIM4v2instance *here,
double freq, double temp)
{
struct bsim4SizeDependParam *pParam;
double cd, esat, DelClm, EffFreq, N0, Nl;
@ -71,12 +72,12 @@ double T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, Ssi;
int
BSIM4v2noise (mode, operation, inModel, ckt, data, OnDens)
int mode, operation;
GENmodel *inModel;
CKTcircuit *ckt;
Ndata *data;
double *OnDens;
BSIM4v2noise (
int mode, int operation,
GENmodel *inModel,
CKTcircuit *ckt,
Ndata *data,
double *OnDens)
{
BSIM4v2model *model = (BSIM4v2model *)inModel;
BSIM4v2instance *here;

View File

@ -15,11 +15,11 @@
#include "fteext.h"
int
BSIM4v2param(param,value,inst,select)
int param;
IFvalue *value;
GENinstance *inst;
IFvalue *select;
BSIM4v2param(
int param,
IFvalue *value,
GENinstance *inst,
IFvalue *select)
{
double scale;

View File

@ -17,10 +17,10 @@
#include "bsim4v2def.h"
int
BSIM4v2pzLoad(inModel,ckt,s)
GENmodel *inModel;
CKTcircuit *ckt;
SPcomplex *s;
BSIM4v2pzLoad(
GENmodel *inModel,
CKTcircuit *ckt,
SPcomplex *s)
{
BSIM4v2model *model = (BSIM4v2model*)inModel;
BSIM4v2instance *here;

View File

@ -34,11 +34,11 @@ int
BSIM4v2RdseffGeo(double nf, int geo, int rgeo, int minSD, double Weffcj, double Rsh, double DMCG, double DMCI, double DMDG, int Type,double *Rtot);
int
BSIM4v2setup(matrix,inModel,ckt,states)
SMPmatrix *matrix;
GENmodel *inModel;
CKTcircuit *ckt;
int *states;
BSIM4v2setup(
SMPmatrix *matrix,
GENmodel *inModel,
CKTcircuit *ckt,
int *states)
{
BSIM4v2model *model = (BSIM4v2model*)inModel;
BSIM4v2instance *here;
@ -1652,9 +1652,9 @@ if((here->ptr = SMPmakeElt(matrix,here->first,here->second))==(double *)NULL){\
}
int
BSIM4v2unsetup(inModel,ckt)
GENmodel *inModel;
CKTcircuit *ckt;
BSIM4v2unsetup(
GENmodel *inModel,
CKTcircuit *ckt)
{
BSIM4v2model *model;

View File

@ -36,9 +36,9 @@ int
BSIM4v2PAeffGeo(double nf, int geo, int minSD, double Weffcj, double DMCG, double DMCI, double DMDG, double *Ps, double *Pd, double *As, double *Ad);
int
BSIM4v2DioIjthVjmEval(Nvtm, Ijth, Isb, XExpBV, Vjm)
double Nvtm, Ijth, Isb, XExpBV;
double *Vjm;
BSIM4v2DioIjthVjmEval(
double Nvtm, double Ijth, double Isb, double XExpBV,
double *Vjm)
{
double Tb, Tc, EVjmovNv;
@ -52,9 +52,9 @@ return 0;
int
BSIM4v2temp(inModel,ckt)
GENmodel *inModel;
CKTcircuit *ckt;
BSIM4v2temp(
GENmodel *inModel,
CKTcircuit *ckt)
{
BSIM4v2model *model = (BSIM4v2model*) inModel;
BSIM4v2instance *here;

View File

@ -17,10 +17,10 @@
int
BSIM4v2trunc(inModel,ckt,timeStep)
GENmodel *inModel;
CKTcircuit *ckt;
double *timeStep;
BSIM4v2trunc(
GENmodel *inModel,
CKTcircuit *ckt,
double *timeStep)
{
BSIM4v2model *model = (BSIM4v2model*)inModel;
BSIM4v2instance *here;

View File

@ -16,9 +16,9 @@
int
BSIM4v3acLoad(inModel,ckt)
GENmodel *inModel;
CKTcircuit *ckt;
BSIM4v3acLoad(
GENmodel *inModel,
CKTcircuit *ckt)
{
BSIM4v3model *model = (BSIM4v3model*)inModel;
BSIM4v3instance *here;

View File

@ -21,12 +21,12 @@
#include "sperror.h"
int
BSIM4v3ask(ckt,inst,which,value,select)
CKTcircuit *ckt;
GENinstance *inst;
int which;
IFvalue *value;
IFvalue *select;
BSIM4v3ask(
CKTcircuit *ckt,
GENinstance *inst,
int which,
IFvalue *value,
IFvalue *select)
{
BSIM4v3instance *here = (BSIM4v3instance*)inst;

View File

@ -23,10 +23,10 @@
#include "devdefs.h"
int
BSIM4v3checkModel(model, here, ckt)
BSIM4v3model *model;
BSIM4v3instance *here;
CKTcircuit *ckt;
BSIM4v3checkModel(
BSIM4v3model *model,
BSIM4v3instance *here,
CKTcircuit *ckt)
{
struct bsim4v3SizeDependParam *pParam;
int Fatal_Flag = 0;

View File

@ -23,9 +23,9 @@
int
BSIM4v3convTest(inModel,ckt)
GENmodel *inModel;
CKTcircuit *ckt;
BSIM4v3convTest(
GENmodel *inModel,
CKTcircuit *ckt)
{
BSIM4v3model *model = (BSIM4v3model*)inModel;
BSIM4v3instance *here;

View File

@ -16,10 +16,10 @@
int
BSIM4v3delete(inModel,name,inInst)
GENmodel *inModel;
IFuid name;
GENinstance **inInst;
BSIM4v3delete(
GENmodel *inModel,
IFuid name,
GENinstance **inInst)
{
BSIM4v3instance **fast = (BSIM4v3instance**)inInst;
BSIM4v3model *model = (BSIM4v3model*)inModel;

View File

@ -13,8 +13,8 @@
#include "bsim4v3def.h"
void
BSIM4v3destroy(inModel)
GENmodel **inModel;
BSIM4v3destroy(
GENmodel **inModel)
{
BSIM4v3model **model = (BSIM4v3model**)inModel;
BSIM4v3instance *here;

View File

@ -25,9 +25,10 @@ BSIM4v3RdsEndSha(double, double, double, double, double, double, int, int, doubl
*/
int
BSIM4v3NumFingerDiff(nf, minSD, nuIntD, nuEndD, nuIntS, nuEndS)
int minSD;
double nf, *nuIntD, *nuEndD, *nuIntS, *nuEndS;
BSIM4v3NumFingerDiff(
double nf,
int minSD,
double *nuIntD, double *nuEndD, double *nuIntS, double *nuEndS)
{
int NF;
NF = (int)nf;
@ -54,10 +55,11 @@ return 0;
int
BSIM4v3PAeffGeo(nf, geo, minSD, Weffcj, DMCG, DMCI, DMDG, Ps, Pd, As, Ad)
int geo, minSD;
double Weffcj, DMCG, DMCI, DMDG;
double nf, *Ps, *Pd, *As, *Ad;
BSIM4v3PAeffGeo(
double nf,
int geo, int minSD,
double Weffcj, double DMCG, double DMCI, double DMDG,
double *Ps, double *Pd, double *As, double *Ad)
{
double T0, T1, T2;
double ADiso, ADsha, ADmer, ASiso, ASsha, ASmer;
@ -154,10 +156,12 @@ return 0;
int
BSIM4v3RdseffGeo(nf, geo, rgeo, minSD, Weffcj, Rsh, DMCG, DMCI, DMDG, Type, Rtot)
int geo, rgeo, minSD, Type;
double nf, Weffcj, Rsh, DMCG, DMCI, DMDG;
double *Rtot;
BSIM4v3RdseffGeo(
double nf,
int geo, int rgeo, int minSD,
double Weffcj, double Rsh, double DMCG, double DMCI, double DMDG,
int Type,
double *Rtot)
{
double Rint=0.0, Rend = 0.0;
double nuIntD = 0.0, nuEndD = 0.0, nuIntS = 0.0, nuEndS = 0.0;
@ -272,10 +276,11 @@ return 0;
int
BSIM4v3RdsEndIso(Weffcj, Rsh, DMCG, DMCI, DMDG, nuEnd, rgeo, Type, Rend)
double Weffcj, Rsh, DMCG, DMCI, DMDG;
int rgeo, Type;
double nuEnd, *Rend;
BSIM4v3RdsEndIso(
double Weffcj, double Rsh, double DMCG, double DMCI, double DMDG,
double nuEnd,
int rgeo, int Type,
double *Rend)
{
if (Type == 1)
{ switch(rgeo)
@ -330,10 +335,11 @@ return 0;
int
BSIM4v3RdsEndSha(Weffcj, Rsh, DMCG, DMCI, DMDG, nuEnd, rgeo, Type, Rend)
double Weffcj, Rsh, DMCG, DMCI, DMDG;
int rgeo, Type;
double nuEnd, *Rend;
BSIM4v3RdsEndSha(
double Weffcj, double Rsh, double DMCG, double DMCI, double DMDG,
double nuEnd,
int rgeo, int Type,
double *Rend)
{
if (Type == 1)
{ switch(rgeo)

View File

@ -16,9 +16,9 @@
int
BSIM4v3getic(inModel,ckt)
GENmodel *inModel;
CKTcircuit *ckt;
BSIM4v3getic(
GENmodel *inModel,
CKTcircuit *ckt)
{
BSIM4v3model *model = (BSIM4v3model*)inModel;
BSIM4v3instance *here;

View File

@ -34,9 +34,9 @@
int BSIM4v3polyDepletion(double phi, double ngate,double coxe, double Vgs, double *Vgs_eff, double *dVgs_eff_dVg);
int
BSIM4v3load(inModel,ckt)
GENmodel *inModel;
register CKTcircuit *ckt;
BSIM4v3load(
GENmodel *inModel,
register CKTcircuit *ckt)
{
register BSIM4v3model *model = (BSIM4v3model*)inModel;
register BSIM4v3instance *here;

View File

@ -22,11 +22,11 @@
#include "sperror.h"
int
BSIM4v3mAsk(ckt,inst,which,value)
CKTcircuit *ckt;
GENmodel *inst;
int which;
IFvalue *value;
BSIM4v3mAsk(
CKTcircuit *ckt,
GENmodel *inst,
int which,
IFvalue *value)
{
BSIM4v3model *model = (BSIM4v3model *)inst;
switch(which)

View File

@ -14,10 +14,10 @@
#include "sperror.h"
int
BSIM4v3mDelete(inModel,modname,kill)
GENmodel **inModel;
IFuid modname;
GENmodel *kill;
BSIM4v3mDelete(
GENmodel **inModel,
IFuid modname,
GENmodel *kill)
{
BSIM4v3model **model = (BSIM4v3model**)inModel;
BSIM4v3model *modfast = (BSIM4v3model*)kill;

View File

@ -20,10 +20,10 @@
#include "const.h"
int
BSIM4v3mParam(param,value,inMod)
int param;
IFvalue *value;
GENmodel *inMod;
BSIM4v3mParam(
int param,
IFvalue *value,
GENmodel *inMod)
{
BSIM4v3model *mod = (BSIM4v3model*)inMod;
switch(param)

View File

@ -30,10 +30,11 @@ extern double Nintegrate();
*/
static double
BSIM4v3Eval1ovFNoise(Vds, model, here, freq, temp)
double Vds, freq, temp;
BSIM4v3model *model;
BSIM4v3instance *here;
BSIM4v3Eval1ovFNoise(
double Vds,
BSIM4v3model *model,
BSIM4v3instance *here,
double freq, double temp)
{
struct bsim4v3SizeDependParam *pParam;
double cd, esat, DelClm, EffFreq, N0, Nl;
@ -73,12 +74,12 @@ double T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, Ssi;
int
BSIM4v3noise (mode, operation, inModel, ckt, data, OnDens)
int mode, operation;
GENmodel *inModel;
CKTcircuit *ckt;
Ndata *data;
double *OnDens;
BSIM4v3noise (
int mode, int operation,
GENmodel *inModel,
CKTcircuit *ckt,
Ndata *data,
double *OnDens)
{
BSIM4v3model *model = (BSIM4v3model *)inModel;
BSIM4v3instance *here;

View File

@ -18,11 +18,11 @@
#include "fteext.h"
int
BSIM4v3param(param,value,inst,select)
int param;
IFvalue *value;
GENinstance *inst;
IFvalue *select;
BSIM4v3param(
int param,
IFvalue *value,
GENinstance *inst,
IFvalue *select)
{
double scale;

View File

@ -16,10 +16,10 @@
#include "bsim4v3def.h"
int
BSIM4v3pzLoad(inModel,ckt,s)
GENmodel *inModel;
CKTcircuit *ckt;
SPcomplex *s;
BSIM4v3pzLoad(
GENmodel *inModel,
CKTcircuit *ckt,
SPcomplex *s)
{
BSIM4v3model *model = (BSIM4v3model*)inModel;
BSIM4v3instance *here;

View File

@ -33,11 +33,11 @@ int
BSIM4v3RdseffGeo(double nf, int geo, int rgeo, int minSD, double Weffcj, double Rsh, double DMCG, double DMCI, double DMDG, int Type,double *Rtot);
int
BSIM4v3setup(matrix,inModel,ckt,states)
SMPmatrix *matrix;
GENmodel *inModel;
CKTcircuit *ckt;
int *states;
BSIM4v3setup(
SMPmatrix *matrix,
GENmodel *inModel,
CKTcircuit *ckt,
int *states)
{
BSIM4v3model *model = (BSIM4v3model*)inModel;
BSIM4v3instance *here;
@ -1732,9 +1732,9 @@ if((here->ptr = SMPmakeElt(matrix,here->first,here->second))==(double *)NULL){\
}
int
BSIM4v3unsetup(inModel,ckt)
GENmodel *inModel;
CKTcircuit *ckt;
BSIM4v3unsetup(
GENmodel *inModel,
CKTcircuit *ckt)
{
#ifndef HAS_BATCHSIM
BSIM4v3model *model;

View File

@ -38,9 +38,9 @@ BSIM4v3RdseffGeo(double, int, int, int, double, double, double, double, double,
#define DELTA 1.0E-9
int
BSIM4v3DioIjthVjmEval(Nvtm, Ijth, Isb, XExpBV, Vjm)
double Nvtm, Ijth, Isb, XExpBV;
double *Vjm;
BSIM4v3DioIjthVjmEval(
double Nvtm, double Ijth, double Isb, double XExpBV,
double *Vjm)
{
double Tb, Tc, EVjmovNv;
@ -54,9 +54,9 @@ return 0;
int
BSIM4v3temp(inModel,ckt)
GENmodel *inModel;
CKTcircuit *ckt;
BSIM4v3temp(
GENmodel *inModel,
CKTcircuit *ckt)
{
BSIM4v3model *model = (BSIM4v3model*) inModel;
BSIM4v3instance *here;

View File

@ -17,10 +17,10 @@
int
BSIM4v3trunc(inModel,ckt,timeStep)
GENmodel *inModel;
CKTcircuit *ckt;
double *timeStep;
BSIM4v3trunc(
GENmodel *inModel,
CKTcircuit *ckt,
double *timeStep)
{
BSIM4v3model *model = (BSIM4v3model*)inModel;
BSIM4v3instance *here;

View File

@ -17,9 +17,9 @@
int
BSIM4v4acLoad(inModel,ckt)
GENmodel *inModel;
CKTcircuit *ckt;
BSIM4v4acLoad(
GENmodel *inModel,
CKTcircuit *ckt)
{
BSIM4v4model *model = (BSIM4v4model*)inModel;
BSIM4v4instance *here;

Some files were not shown because too many files have changed in this diff Show More