Browse Source

function declarator to new format

pre-master-46
h_vogt 17 years ago
parent
commit
73d241fe69
  1. 1
      ChangeLog
  2. 66
      src/spicelib/devices/jfet2/psmodel.c

1
ChangeLog

@ -2,6 +2,7 @@
* com_hardcopy.c, postsc.c, windisp.c: plotting with black or white background, * com_hardcopy.c, postsc.c, windisp.c: plotting with black or white background,
postscript to file with hardcopy command or menue entry from plot window postscript to file with hardcopy command or menue entry from plot window
(still buggy with X11) (still buggy with X11)
psmodel.c: changed the declarator to new format
2009-11-27 Dietmar Warning 2009-11-27 Dietmar Warning
* a bunch of files, most in device library: changed the declarator to new format to * a bunch of files, most in device library: changed the declarator to new format to

66
src/spicelib/devices/jfet2/psmodel.c

@ -207,8 +207,21 @@ double *Gds)
/*----------- /*-----------
| code based on Statz et. al. capacitance model, IEEE Tran ED Feb 87 */ | code based on Statz et. al. capacitance model, IEEE Tran ED Feb 87 */
static double static double
qgg(vgs, vgd, gamma, pb, alpha, vto, vmax, xc, cgso, cgdo, cgs, cgd)
double vgs, vgd, gamma, pb, alpha, vto, vmax, xc, cgso, cgdo, *cgs, *cgd;
qgg(
double vgs,
double vgd,
double gamma,
double pb,
double alpha,
double vto,
double vmax,
double xc,
double cgso,
double cgdo,
double *cgs,
double *cgd
)
/*vgs, vgd, gamma, pb, alpha, vto, vmax, xc, cgso, cgdo, *cgs, *cgd;*/
{ {
double qrt, ext, Cgso, cpm, cplus, cminus; double qrt, ext, Cgso, cpm, cplus, cminus;
double vds = vgs-vgd; double vds = vgs-vgd;
@ -238,14 +251,15 @@ double vgs, vgd, gamma, pb, alpha, vto, vmax, xc, cgso, cgdo, *cgs, *cgd;
/*----------- /*-----------
| call during ac analysis initialisation or during transient analysis */ | call during ac analysis initialisation or during transient analysis */
void void
PScharge(ckt, model, here, vgs, vgd, capgs, capgd)
cref *ckt;
modl *model;
inst *here;
double vgs;
double vgd;
double *capgs;
double *capgd;
PScharge(
cref *ckt,
modl *model,
inst *here,
double vgs,
double vgd,
double *capgs,
double *capgd
)
{ {
#define QGG(a,b,c,d) qgg(a,b,gac,phib,alpha,vto,vmax,xc,czgs,czgd,c,d) #define QGG(a,b,c,d) qgg(a,b,gac,phib,alpha,vto,vmax,xc,czgs,czgd,c,d)
/* double qgg(); */ /* double qgg(); */
@ -282,18 +296,19 @@ double *capgd;
/*----------- /*-----------
| call for each frequency in ac analysis */ | call for each frequency in ac analysis */
void void
PSacload(ckt, model, here, vgs, vgd, ids, omega, Gm, xGm, Gds, xGds)
cref *ckt;
modl *model;
inst *here;
double vgs;
double vgd;
double ids;
double omega;
double *Gm;
double *xGm;
double *Gds;
double *xGds;
PSacload(
/*cref *ckt,*/
modl *model,
inst *here,
double vgs,
double vgd,
double ids,
double omega,
double *Gm,
double *xGm,
double *Gds,
double *xGds
)
{ {
double arg; double arg;
double vds = vgs - vgd; double vds = vgs - vgd;
@ -343,9 +358,10 @@ double *xGds;
void /* call when temperature changes */ void /* call when temperature changes */
PSinstanceinit(model, here)
modl *model;
inst *here;
PSinstanceinit(
modl *model,
inst *here
)
{ {
#ifndef PARAM_CAST /* allow casting to parameter type */ #ifndef PARAM_CAST /* allow casting to parameter type */
#define PARAM_CAST /* if not specified then don't cast */ #define PARAM_CAST /* if not specified then don't cast */

Loading…
Cancel
Save