Browse Source

Parameter declaration in new format

pre-master-46
dwarning 17 years ago
parent
commit
5c0bccbd36
  1. 4
      src/spicelib/devices/bsim4/b4acld.c
  2. 7
      src/spicelib/devices/bsim4/b4ask.c
  3. 5
      src/spicelib/devices/bsim4/b4check.c
  4. 4
      src/spicelib/devices/bsim4/b4cvtest.c
  5. 5
      src/spicelib/devices/bsim4/b4del.c
  6. 3
      src/spicelib/devices/bsim4/b4dest.c
  7. 24
      src/spicelib/devices/bsim4/b4geo.c
  8. 4
      src/spicelib/devices/bsim4/b4getic.c
  9. 4
      src/spicelib/devices/bsim4/b4ld.c
  10. 6
      src/spicelib/devices/bsim4/b4mask.c
  11. 5
      src/spicelib/devices/bsim4/b4mdel.c
  12. 5
      src/spicelib/devices/bsim4/b4mpar.c
  13. 12
      src/spicelib/devices/bsim4/b4noi.c
  14. 6
      src/spicelib/devices/bsim4/b4par.c
  15. 5
      src/spicelib/devices/bsim4/b4pzld.c
  16. 10
      src/spicelib/devices/bsim4/b4set.c
  17. 8
      src/spicelib/devices/bsim4/b4temp.c
  18. 5
      src/spicelib/devices/bsim4/b4trunc.c

4
src/spicelib/devices/bsim4/b4acld.c

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

7
src/spicelib/devices/bsim4/b4ask.c

@ -23,12 +23,7 @@
#include "suffix.h"
int
BSIM4ask(ckt,inst,which,value,select)
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;

5
src/spicelib/devices/bsim4/b4check.c

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

4
src/spicelib/devices/bsim4/b4cvtest.c

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

5
src/spicelib/devices/bsim4/b4del.c

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

3
src/spicelib/devices/bsim4/b4dest.c

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

24
src/spicelib/devices/bsim4/b4geo.c

@ -25,9 +25,7 @@ int
BSIM4RdsEndSha(double, double, double, double, double, double, int, int, double *);
int
BSIM4NumFingerDiff(nf, minSD, nuIntD, nuEndD, nuIntS, nuEndS)
int minSD;
double nf, *nuIntD, *nuEndD, *nuIntS, *nuEndS;
BSIM4NumFingerDiff(double nf, int minSD, double *nuIntD, double *nuEndD, double *nuIntS, double *nuEndS)
{
int NF;
NF = (int)nf;
@ -54,10 +52,7 @@ return 0;
int
BSIM4PAeffGeo(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;
BSIM4PAeffGeo(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 +149,7 @@ return 0;
int
BSIM4RdseffGeo(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;
BSIM4RdseffGeo(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 +264,7 @@ return 0;
int
BSIM4RdsEndIso(Weffcj, Rsh, DMCG, DMCI, DMDG, nuEnd, rgeo, Type, Rend)
double Weffcj, Rsh, DMCG, DMCI, DMDG;
int rgeo, Type;
double nuEnd, *Rend;
BSIM4RdsEndIso(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 +319,7 @@ return 0;
int
BSIM4RdsEndSha(Weffcj, Rsh, DMCG, DMCI, DMDG, nuEnd, rgeo, Type, Rend)
double Weffcj, Rsh, DMCG, DMCI, DMDG;
int rgeo, Type;
double nuEnd, *Rend;
BSIM4RdsEndSha(double Weffcj, double Rsh, double DMCG, double DMCI, double DMDG, double nuEnd, int rgeo, int Type, double *Rend)
{
if (Type == 1)
{ switch(rgeo)

4
src/spicelib/devices/bsim4/b4getic.c

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

4
src/spicelib/devices/bsim4/b4ld.c

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

6
src/spicelib/devices/bsim4/b4mask.c

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

5
src/spicelib/devices/bsim4/b4mdel.c

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

5
src/spicelib/devices/bsim4/b4mpar.c

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

12
src/spicelib/devices/bsim4/b4noi.c

@ -37,10 +37,7 @@ extern double Nintegrate();
*/
double
Eval1ovFNoise(Vds, model, here, freq, temp)
double Vds, freq, temp;
BSIM4model *model;
BSIM4instance *here;
Eval1ovFNoise(double Vds, BSIM4model *model, BSIM4instance *here, double freq, double temp)
{
struct bsim4SizeDependParam *pParam;
double cd, esat, DelClm, EffFreq, N0, Nl, Leff, Leffsq;
@ -81,12 +78,7 @@ double T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, Ssi;
int
BSIM4noise (mode, operation, inModel, ckt, data, OnDens)
int mode, 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;

6
src/spicelib/devices/bsim4/b4par.c

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

5
src/spicelib/devices/bsim4/b4pzld.c

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

10
src/spicelib/devices/bsim4/b4set.c

@ -44,11 +44,7 @@ int
BSIM4RdseffGeo(double, int, int, int, double, double, double, double, double, int, double *);
int
BSIM4setup(matrix,inModel,ckt,states)
SMPmatrix *matrix;
GENmodel *inModel;
CKTcircuit *ckt;
int *states;
BSIM4setup(SMPmatrix *matrix, GENmodel *inModel, CKTcircuit *ckt, int *states)
{
BSIM4model *model = (BSIM4model*)inModel;
BSIM4instance *here;
@ -2380,9 +2376,7 @@ if((here->ptr = SMPmakeElt(matrix,here->first,here->second))==(double *)NULL){\
}
int
BSIM4unsetup(inModel,ckt)
GENmodel *inModel;
CKTcircuit *ckt;
BSIM4unsetup(GENmodel *inModel, CKTcircuit *ckt)
{
#ifndef HAS_BATCHSIM
BSIM4model *model;

8
src/spicelib/devices/bsim4/b4temp.c

@ -56,9 +56,7 @@ int
BSIM4RdseffGeo(double, int, int, int, double, double, double, double, double, int, double *);
int
BSIM4DioIjthVjmEval(Nvtm, Ijth, Isb, XExpBV, Vjm)
double Nvtm, Ijth, Isb, XExpBV;
double *Vjm;
BSIM4DioIjthVjmEval(double Nvtm, double Ijth, double Isb, double XExpBV, double *Vjm)
{
double Tb, Tc, EVjmovNv;
@ -72,9 +70,7 @@ return 0;
int
BSIM4temp(inModel,ckt)
GENmodel *inModel;
CKTcircuit *ckt;
BSIM4temp(GENmodel *inModel, CKTcircuit *ckt)
{
BSIM4model *model = (BSIM4model*) inModel;
BSIM4instance *here;

5
src/spicelib/devices/bsim4/b4trunc.c

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

Loading…
Cancel
Save