whitespace change, cleanup, untabify
This commit is contained in:
parent
a321d7f419
commit
68c0ee9cd3
|
|
@ -1,3 +1,12 @@
|
||||||
|
2010-07-03 Robert Larice
|
||||||
|
* src/include/cktdefs.h ,
|
||||||
|
* src/include/gendefs.h ,
|
||||||
|
* src/include/graph.h ,
|
||||||
|
* src/include/ifsim.h ,
|
||||||
|
* src/include/inpdefs.h ,
|
||||||
|
* src/include/tfdefs.h :
|
||||||
|
whitespace change, cleanup, untabify
|
||||||
|
|
||||||
2010-07-03 Robert Larice
|
2010-07-03 Robert Larice
|
||||||
* src/include/cktdefs.h ,
|
* src/include/cktdefs.h ,
|
||||||
* src/include/gendefs.h ,
|
* src/include/gendefs.h ,
|
||||||
|
|
|
||||||
|
|
@ -33,6 +33,7 @@ extern int DEVmaxnum; /* Not sure if still used */
|
||||||
typedef struct CKTnode CKTnode;
|
typedef struct CKTnode CKTnode;
|
||||||
typedef struct CKTcircuit CKTcircuit;
|
typedef struct CKTcircuit CKTcircuit;
|
||||||
|
|
||||||
|
|
||||||
struct CKTnode {
|
struct CKTnode {
|
||||||
IFuid name;
|
IFuid name;
|
||||||
int type;
|
int type;
|
||||||
|
|
@ -57,7 +58,6 @@ struct CKTnode {
|
||||||
#define PARM_NODETYPE 3
|
#define PARM_NODETYPE 3
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
struct CKTcircuit {
|
struct CKTcircuit {
|
||||||
|
|
||||||
/* gtri - begin - wbk - change declaration to allow dynamic sizing */
|
/* gtri - begin - wbk - change declaration to allow dynamic sizing */
|
||||||
|
|
@ -265,132 +265,135 @@ struct CKTcircuit {
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
/* Now function prottypes */
|
/* Now function prottypes */
|
||||||
|
|
||||||
extern int ACan( CKTcircuit *, int );
|
extern int ACan(CKTcircuit *, int);
|
||||||
extern int ACaskQuest( CKTcircuit *, void *, int , IFvalue *);
|
extern int ACaskQuest(CKTcircuit *, void *, int , IFvalue *);
|
||||||
extern int ACsetParm( CKTcircuit *, void *, int , IFvalue *);
|
extern int ACsetParm(CKTcircuit *, void *, int , IFvalue *);
|
||||||
extern int CKTacDump( CKTcircuit *, double , void *);
|
extern int CKTacDump(CKTcircuit *, double , void *);
|
||||||
extern int CKTacLoad( CKTcircuit *);
|
extern int CKTacLoad(CKTcircuit *);
|
||||||
extern int CKTaccept( CKTcircuit *);
|
extern int CKTaccept(CKTcircuit *);
|
||||||
extern int CKTacct( CKTcircuit *, void *, int , IFvalue *);
|
extern int CKTacct(CKTcircuit *, void *, int , IFvalue *);
|
||||||
extern int CKTask( void *, void *, int , IFvalue *, IFvalue *);
|
extern int CKTask(void *, void *, int , IFvalue *, IFvalue *);
|
||||||
extern int CKTaskAnalQ( void *, void *, int , IFvalue *, IFvalue *);
|
extern int CKTaskAnalQ(void *, void *, int , IFvalue *, IFvalue *);
|
||||||
extern int CKTaskNodQst( void *, void *, int , IFvalue *, IFvalue *);
|
extern int CKTaskNodQst(void *, void *, int , IFvalue *, IFvalue *);
|
||||||
extern int CKTbindNode( void *, void *, int , void *);
|
extern int CKTbindNode(void *, void *, int , void *);
|
||||||
extern void CKTbreakDump( CKTcircuit *);
|
extern void CKTbreakDump(CKTcircuit *);
|
||||||
extern int CKTclrBreak( CKTcircuit *);
|
extern int CKTclrBreak(CKTcircuit *);
|
||||||
extern int CKTconvTest( CKTcircuit *);
|
extern int CKTconvTest(CKTcircuit *);
|
||||||
extern int CKTcrtElt( void *, void *, void **, IFuid );
|
extern int CKTcrtElt(void *, void *, void **, IFuid);
|
||||||
extern int CKTdelTask( void *, void *);
|
extern int CKTdelTask(void *, void *);
|
||||||
extern int CKTdestroy( void *);
|
extern int CKTdestroy(void *);
|
||||||
extern int CKTdltAnal( void *, void *, void *);
|
extern int CKTdltAnal(void *, void *, void *);
|
||||||
extern int CKTdltInst( void *, void *);
|
extern int CKTdltInst(void *, void *);
|
||||||
extern int CKTdltMod( void *, void *);
|
extern int CKTdltMod(void *, void *);
|
||||||
extern int CKTdltNNum(void *, int );
|
extern int CKTdltNNum(void *, int);
|
||||||
extern int CKTdltNod( void *, void *);
|
extern int CKTdltNod(void *, void *);
|
||||||
extern int CKTdoJob( void *, int , void *);
|
extern int CKTdoJob(void *, int , void *);
|
||||||
extern void CKTdump( CKTcircuit *, double, void *);
|
extern void CKTdump(CKTcircuit *, double, void *);
|
||||||
#ifdef CIDER
|
#ifdef CIDER
|
||||||
extern void NDEVacct(CKTcircuit *ckt, FILE *file);
|
extern void NDEVacct(CKTcircuit *ckt, FILE *file);
|
||||||
#endif /* CIDER */
|
#endif /* CIDER */
|
||||||
extern void CKTncDump(CKTcircuit *);
|
extern void CKTncDump(CKTcircuit *);
|
||||||
extern int CKTfndAnal( void *, int *, void **, IFuid , void *, IFuid );
|
extern int CKTfndAnal(void *, int *, void **, IFuid , void *, IFuid);
|
||||||
extern int CKTfndBranch( CKTcircuit *, IFuid);
|
extern int CKTfndBranch(CKTcircuit *, IFuid);
|
||||||
extern int CKTfndDev( void *, int *, void **, IFuid , void *, IFuid );
|
extern int CKTfndDev(void *, int *, void **, IFuid , void *, IFuid);
|
||||||
extern int CKTfndMod( void *, int *, void **, IFuid );
|
extern int CKTfndMod(void *, int *, void **, IFuid);
|
||||||
extern int CKTfndNode( void *, void **, IFuid );
|
extern int CKTfndNode(void *, void **, IFuid);
|
||||||
extern int CKTfndTask( void *, void **, IFuid );
|
extern int CKTfndTask(void *, void **, IFuid );
|
||||||
extern int CKTground( void *, void **, IFuid );
|
extern int CKTground(void *, void **, IFuid);
|
||||||
extern int CKTic( CKTcircuit *);
|
extern int CKTic(CKTcircuit *);
|
||||||
extern int CKTinit( void **);
|
extern int CKTinit(void **);
|
||||||
extern int CKTinst2Node( void *, void *, int , CKTnode **, IFuid *);
|
extern int CKTinst2Node(void *, void *, int , CKTnode **, IFuid *);
|
||||||
extern int CKTlinkEq(CKTcircuit*,CKTnode*);
|
extern int CKTlinkEq(CKTcircuit *, CKTnode *);
|
||||||
extern int CKTload( CKTcircuit *);
|
extern int CKTload(CKTcircuit *);
|
||||||
extern int CKTmapNode( void *, void **, IFuid );
|
extern int CKTmapNode(void *, void **, IFuid);
|
||||||
extern int CKTmkCur( CKTcircuit *, CKTnode **, IFuid , char *);
|
extern int CKTmkCur(CKTcircuit *, CKTnode **, IFuid , char *);
|
||||||
extern int CKTmkNode(CKTcircuit*,CKTnode**);
|
extern int CKTmkNode(CKTcircuit *, CKTnode **);
|
||||||
extern int CKTmkVolt( CKTcircuit *, CKTnode **, IFuid , char *);
|
extern int CKTmkVolt(CKTcircuit *, CKTnode **, IFuid , char *);
|
||||||
extern int CKTmodAsk( void *, void *, int , IFvalue *, IFvalue *);
|
extern int CKTmodAsk(void *, void *, int , IFvalue *, IFvalue *);
|
||||||
extern int CKTmodCrt( void *, int , void **, IFuid );
|
extern int CKTmodCrt(void *, int , void **, IFuid);
|
||||||
extern int CKTmodParam( void *, void *, int , IFvalue *, IFvalue *);
|
extern int CKTmodParam(void *, void *, int , IFvalue *, IFvalue *);
|
||||||
extern int CKTnames(CKTcircuit *, int *, IFuid **);
|
extern int CKTnames(CKTcircuit *, int *, IFuid **);
|
||||||
extern int CKTnewAnal( void *, int , IFuid , void **, void *);
|
extern int CKTnewAnal(void *, int , IFuid , void **, void *);
|
||||||
extern int CKTnewEq( void *, void **, IFuid );
|
extern int CKTnewEq(void *, void **, IFuid);
|
||||||
extern int CKTnewNode( void *, void **, IFuid );
|
extern int CKTnewNode(void *, void **, IFuid);
|
||||||
extern int CKTnewTask( void *, void **, IFuid, void ** );
|
extern int CKTnewTask(void *, void **, IFuid, void **);
|
||||||
extern int CKTnoise (CKTcircuit *ckt, int mode, int operation, Ndata *data);
|
extern int CKTnoise (CKTcircuit *ckt, int mode, int operation, Ndata *data);
|
||||||
extern IFuid CKTnodName( CKTcircuit *, int );
|
extern IFuid CKTnodName(CKTcircuit *, int);
|
||||||
extern void CKTnodOut( CKTcircuit *);
|
extern void CKTnodOut(CKTcircuit *);
|
||||||
extern CKTnode * CKTnum2nod( CKTcircuit *, int );
|
extern CKTnode * CKTnum2nod(CKTcircuit *, int);
|
||||||
extern int CKTop(CKTcircuit *, long, long, int );
|
extern int CKTop(CKTcircuit *, long, long, int);
|
||||||
extern int CKTpModName( char *, IFvalue *, CKTcircuit *, int , IFuid , GENmodel **);
|
extern int CKTpModName(char *, IFvalue *, CKTcircuit *, int , IFuid , GENmodel **);
|
||||||
extern int CKTpName( char *, IFvalue *, CKTcircuit *, int , char *, GENinstance **);
|
extern int CKTpName(char *, IFvalue *, CKTcircuit *, int , char *, GENinstance **);
|
||||||
extern int CKTparam( void *, void *, int , IFvalue *, IFvalue *);
|
extern int CKTparam(void *, void *, int , IFvalue *, IFvalue *);
|
||||||
extern int CKTpartition(register CKTcircuit *ckt);
|
extern int CKTpartition(register CKTcircuit *ckt);
|
||||||
extern int CKTpzFindZeros( CKTcircuit *, PZtrial **, int * );
|
extern int CKTpzFindZeros(CKTcircuit *, PZtrial **, int *);
|
||||||
extern int CKTpzLoad( CKTcircuit *, SPcomplex * );
|
extern int CKTpzLoad(CKTcircuit *, SPcomplex *);
|
||||||
extern int CKTpzSetup( CKTcircuit *, int);
|
extern int CKTpzSetup(CKTcircuit *, int);
|
||||||
extern int CKTsenAC( CKTcircuit *);
|
extern int CKTsenAC(CKTcircuit *);
|
||||||
extern int CKTsenComp( CKTcircuit *);
|
extern int CKTsenComp(CKTcircuit *);
|
||||||
extern int CKTsenDCtran( CKTcircuit *);
|
extern int CKTsenDCtran(CKTcircuit *);
|
||||||
extern int CKTsenLoad( CKTcircuit *);
|
extern int CKTsenLoad(CKTcircuit *);
|
||||||
extern void CKTsenPrint( CKTcircuit *);
|
extern void CKTsenPrint(CKTcircuit *);
|
||||||
extern int CKTsenSetup( CKTcircuit *);
|
extern int CKTsenSetup(CKTcircuit *);
|
||||||
extern int CKTsenUpdate( CKTcircuit *);
|
extern int CKTsenUpdate(CKTcircuit *);
|
||||||
extern int CKTsetAnalPm( void *, void *, int , IFvalue *, IFvalue *);
|
extern int CKTsetAnalPm(void *, void *, int , IFvalue *, IFvalue *);
|
||||||
extern int CKTsetBreak( CKTcircuit *, double );
|
extern int CKTsetBreak(CKTcircuit *, double);
|
||||||
extern int CKTsetNodPm( void *, void *, int , IFvalue *, IFvalue *);
|
extern int CKTsetNodPm(void *, void *, int , IFvalue *, IFvalue *);
|
||||||
extern int CKTsetOpt( CKTcircuit *, void *, int , IFvalue *);
|
extern int CKTsetOpt(CKTcircuit *, void *, int , IFvalue *);
|
||||||
extern int CKTsetup( CKTcircuit *);
|
extern int CKTsetup(CKTcircuit *);
|
||||||
extern int CKTunsetup(CKTcircuit *);
|
extern int CKTunsetup(CKTcircuit *);
|
||||||
extern int CKTtemp( CKTcircuit *);
|
extern int CKTtemp(CKTcircuit *);
|
||||||
extern char *CKTtrouble(void *, char *);
|
extern char *CKTtrouble(void *, char *);
|
||||||
extern void CKTterr( int , CKTcircuit *, double *);
|
extern void CKTterr(int , CKTcircuit *, double *);
|
||||||
extern int CKTtrunc( CKTcircuit *, double *);
|
extern int CKTtrunc(CKTcircuit *, double *);
|
||||||
extern int CKTtypelook( char *);
|
extern int CKTtypelook(char *);
|
||||||
extern int DCOaskQuest( CKTcircuit *, void *, int , IFvalue *);
|
extern int DCOaskQuest(CKTcircuit *, void *, int , IFvalue *);
|
||||||
extern int DCOsetParm( CKTcircuit *, void *, int , IFvalue *);
|
extern int DCOsetParm(CKTcircuit *, void *, int , IFvalue *);
|
||||||
extern int DCTaskQuest( CKTcircuit *, void *, int , IFvalue *);
|
extern int DCTaskQuest(CKTcircuit *, void *, int , IFvalue *);
|
||||||
extern int DCTsetParm( CKTcircuit *, void *, int , IFvalue *);
|
extern int DCTsetParm(CKTcircuit *, void *, int , IFvalue *);
|
||||||
extern int DCop( CKTcircuit *ckt, int notused); /* va: notused avoids "init from incompatible pointer type" */
|
extern int DCop(CKTcircuit *ckt, int notused); /* va: notused avoids "init from incompatible pointer type" */
|
||||||
extern int DCtrCurv( CKTcircuit *, int );
|
extern int DCtrCurv(CKTcircuit *, int);
|
||||||
extern int DCtran( CKTcircuit *, int );
|
extern int DCtran(CKTcircuit *, int);
|
||||||
extern int DISTOan(CKTcircuit *, int);
|
extern int DISTOan(CKTcircuit *, int);
|
||||||
extern int NOISEan(CKTcircuit *, int);
|
extern int NOISEan(CKTcircuit *, int);
|
||||||
extern int PZan( CKTcircuit *, int );
|
extern int PZan(CKTcircuit *, int);
|
||||||
extern int PZinit( CKTcircuit * );
|
extern int PZinit(CKTcircuit *);
|
||||||
extern int PZpost( CKTcircuit * );
|
extern int PZpost(CKTcircuit *);
|
||||||
extern int PZaskQuest( CKTcircuit *, void *, int , IFvalue *);
|
extern int PZaskQuest(CKTcircuit *, void *, int , IFvalue *);
|
||||||
extern int PZsetParm( CKTcircuit *, void *, int , IFvalue *);
|
extern int PZsetParm(CKTcircuit *, void *, int , IFvalue *);
|
||||||
extern int SENaskQuest( CKTcircuit *, void *, int , IFvalue *);
|
extern int SENaskQuest(CKTcircuit *, void *, int , IFvalue *);
|
||||||
extern void SENdestroy( SENstruct *);
|
extern void SENdestroy(SENstruct *);
|
||||||
extern int SENsetParm( CKTcircuit *, void *, int , IFvalue *);
|
extern int SENsetParm(CKTcircuit *, void *, int , IFvalue *);
|
||||||
extern int SENstartup( CKTcircuit *);
|
extern int SENstartup(CKTcircuit *);
|
||||||
extern int SPIinit( IFfrontEnd *, IFsimulator **);
|
extern int SPIinit(IFfrontEnd *, IFsimulator **);
|
||||||
extern int TFanal( CKTcircuit *, int );
|
extern int TFanal(CKTcircuit *, int);
|
||||||
extern int TFaskQuest( CKTcircuit *, void *, int , IFvalue *);
|
extern int TFaskQuest(CKTcircuit *, void *, int , IFvalue *);
|
||||||
extern int TFsetParm( CKTcircuit *, void *, int , IFvalue *);
|
extern int TFsetParm(CKTcircuit *, void *, int , IFvalue *);
|
||||||
extern int TRANaskQuest( CKTcircuit *, void *, int , IFvalue *);
|
extern int TRANaskQuest(CKTcircuit *, void *, int , IFvalue *);
|
||||||
extern int TRANsetParm( CKTcircuit *, void *, int , IFvalue *);
|
extern int TRANsetParm(CKTcircuit *, void *, int , IFvalue *);
|
||||||
extern int TRANinit(CKTcircuit *, JOB *);
|
extern int TRANinit(CKTcircuit *, JOB *);
|
||||||
extern int NaskQuest(CKTcircuit *, void *, int, IFvalue *);
|
extern int NaskQuest(CKTcircuit *, void *, int, IFvalue *);
|
||||||
extern int NsetParm(CKTcircuit *, void *, int, IFvalue *);
|
extern int NsetParm(CKTcircuit *, void *, int, IFvalue *);
|
||||||
extern int NIacIter( CKTcircuit * );
|
extern int NIacIter(CKTcircuit *);
|
||||||
extern int NIcomCof( CKTcircuit * );
|
extern int NIcomCof(CKTcircuit *);
|
||||||
extern int NIconvTest(CKTcircuit * );
|
extern int NIconvTest(CKTcircuit *);
|
||||||
extern void NIdestroy(CKTcircuit * );
|
extern void NIdestroy(CKTcircuit *);
|
||||||
extern int NIinit( CKTcircuit * );
|
extern int NIinit(CKTcircuit *);
|
||||||
extern int NIintegrate( CKTcircuit *, double *, double *, double , int );
|
extern int NIintegrate(CKTcircuit *, double *, double *, double , int);
|
||||||
extern int NIiter( CKTcircuit * , int );
|
extern int NIiter(CKTcircuit * , int);
|
||||||
extern int NIpzMuller(PZtrial **, PZtrial *);
|
extern int NIpzMuller(PZtrial **, PZtrial *);
|
||||||
extern int NIpzComplex(PZtrial **, PZtrial *);
|
extern int NIpzComplex(PZtrial **, PZtrial *);
|
||||||
extern int NIpzSym(PZtrial **, PZtrial *);
|
extern int NIpzSym(PZtrial **, PZtrial *);
|
||||||
extern int NIpzSym2(PZtrial **, PZtrial *);
|
extern int NIpzSym2(PZtrial **, PZtrial *);
|
||||||
extern int NIreinit( CKTcircuit *);
|
extern int NIreinit(CKTcircuit *);
|
||||||
extern int NIsenReinit( CKTcircuit *);
|
extern int NIsenReinit(CKTcircuit *);
|
||||||
extern int NIdIter (CKTcircuit *);
|
extern int NIdIter (CKTcircuit *);
|
||||||
extern void NInzIter(CKTcircuit*, int, int );
|
extern void NInzIter(CKTcircuit *, int, int);
|
||||||
|
|
||||||
|
|
||||||
extern IFfrontEnd *SPfrontEnd;
|
extern IFfrontEnd *SPfrontEnd;
|
||||||
|
|
||||||
#endif /*CKT*/
|
#endif /*CKT*/
|
||||||
|
|
|
||||||
|
|
@ -37,13 +37,14 @@ struct GENinstance {
|
||||||
|
|
||||||
typedef void GENcircuit;
|
typedef void GENcircuit;
|
||||||
|
|
||||||
|
|
||||||
/* per model data */
|
/* per model data */
|
||||||
|
|
||||||
struct GENmodel { /* model structure for a resistor */
|
struct GENmodel { /* model structure for a resistor */
|
||||||
int GENmodType; /* type index of this device type */
|
int GENmodType; /* type index of this device type */
|
||||||
GENmodel *GENnextModel; /* pointer to next possible model in
|
GENmodel *GENnextModel; /* pointer to next possible model in
|
||||||
* linked list */
|
* linked list */
|
||||||
GENinstance * GENinstances; /* pointer to list of instances that have this
|
GENinstance *GENinstances; /* pointer to list of instances that have this
|
||||||
* model */
|
* model */
|
||||||
IFuid GENmodName; /* pointer to character string naming this model */
|
IFuid GENmodName; /* pointer to character string naming this model */
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -117,7 +117,7 @@ struct graph {
|
||||||
int messageyoff;
|
int messageyoff;
|
||||||
|
|
||||||
/* characters the user typed on graph */
|
/* characters the user typed on graph */
|
||||||
/* note: think up better names */
|
/* note: think up better names */
|
||||||
struct _keyed *keyed;
|
struct _keyed *keyed;
|
||||||
|
|
||||||
/* for zoomin */
|
/* for zoomin */
|
||||||
|
|
|
||||||
|
|
@ -55,8 +55,8 @@ struct IFparm {
|
||||||
char *description;
|
char *description;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
*
|
|
||||||
* datatype: IFuid
|
* datatype: IFuid
|
||||||
*
|
*
|
||||||
* unique identifier for all name-type data in the simulator.
|
* unique identifier for all name-type data in the simulator.
|
||||||
|
|
@ -68,6 +68,7 @@ struct IFparm {
|
||||||
|
|
||||||
typedef char *IFuid;
|
typedef char *IFuid;
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
*
|
*
|
||||||
* types for IFnewUid
|
* types for IFnewUid
|
||||||
|
|
@ -152,6 +153,7 @@ typedef char *IFuid;
|
||||||
/* For "show" command: do not print value in a table by default */
|
/* For "show" command: do not print value in a table by default */
|
||||||
#define IF_UNINTERESTING 0x2000000
|
#define IF_UNINTERESTING 0x2000000
|
||||||
|
|
||||||
|
|
||||||
/* Structure: IFparseTree
|
/* Structure: IFparseTree
|
||||||
*
|
*
|
||||||
* This structure is returned by the parser for a IF_PARSETREE valued
|
* This structure is returned by the parser for a IF_PARSETREE valued
|
||||||
|
|
@ -169,11 +171,11 @@ typedef char *IFuid;
|
||||||
struct IFparseTree {
|
struct IFparseTree {
|
||||||
int numVars; /* number of variables used */
|
int numVars; /* number of variables used */
|
||||||
int *varTypes; /* array of types of variables */
|
int *varTypes; /* array of types of variables */
|
||||||
IFvalue * vars; /* array of structures describing values */
|
IFvalue *vars; /* array of structures describing values */
|
||||||
#ifdef __STDC__
|
#ifdef __STDC__
|
||||||
int ((*IFeval)(IFparseTree*,double,double*,double*,double*));
|
int (*IFeval) (IFparseTree *, double, double *, double *, double *);
|
||||||
#else
|
#else
|
||||||
int ((*IFeval)()); /* function to call to get evaluated */
|
int (*IFeval) (); /* function to call to get evaluated */
|
||||||
#endif /* STDC */
|
#endif /* STDC */
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
@ -221,12 +223,13 @@ struct IFparseTree {
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
typedef void *IFnode;
|
||||||
|
|
||||||
typedef void * IFnode;
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* and of course, the standard complex data type
|
* and of course, the standard complex data type
|
||||||
*/
|
*/
|
||||||
|
|
||||||
struct IFcomplex {
|
struct IFcomplex {
|
||||||
double real;
|
double real;
|
||||||
double imag;
|
double imag;
|
||||||
|
|
@ -250,8 +253,8 @@ union IFvalue {
|
||||||
char **sVec; /* pointer to string vector */
|
char **sVec; /* pointer to string vector */
|
||||||
IFuid *uVec; /* pointer to UID vector */
|
IFuid *uVec; /* pointer to UID vector */
|
||||||
IFnode *nVec; /* pointer to node vector */
|
IFnode *nVec; /* pointer to node vector */
|
||||||
}vec;
|
} vec;
|
||||||
}v;
|
} v;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -289,7 +292,7 @@ struct IFdevice {
|
||||||
/* gtri - modify - wbk - 10/11/90 - add entries to hold data required */
|
/* gtri - modify - wbk - 10/11/90 - add entries to hold data required */
|
||||||
/* by new parser */
|
/* by new parser */
|
||||||
#ifdef XSPICE
|
#ifdef XSPICE
|
||||||
void ((*cm_func)(Mif_Private_t *)); /* pointer to code model function */
|
void (*cm_func) (Mif_Private_t *); /* pointer to code model function */
|
||||||
|
|
||||||
int num_conn; /* number of code model connections */
|
int num_conn; /* number of code model connections */
|
||||||
Mif_Conn_Info_t *conn; /* array of connection info for mif parser */
|
Mif_Conn_Info_t *conn; /* array of connection info for mif parser */
|
||||||
|
|
@ -301,8 +304,8 @@ struct IFdevice {
|
||||||
Mif_Inst_Var_Info_t *inst_var; /* array of instance var info for mif parser */
|
Mif_Inst_Var_Info_t *inst_var; /* array of instance var info for mif parser */
|
||||||
/* gtri - end - wbk - 10/11/90 */
|
/* gtri - end - wbk - 10/11/90 */
|
||||||
#endif
|
#endif
|
||||||
int flags; /* DEV_ */
|
|
||||||
|
|
||||||
|
int flags; /* DEV_ */
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -326,7 +329,6 @@ struct IFanalysis {
|
||||||
|
|
||||||
int numParms; /* number of analysis parameter descriptors */
|
int numParms; /* number of analysis parameter descriptors */
|
||||||
IFparm *analysisParms; /* array of analysis parameter descriptors */
|
IFparm *analysisParms; /* array of analysis parameter descriptors */
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -346,67 +348,67 @@ struct IFsimulator {
|
||||||
char *description; /* description of this simulator */
|
char *description; /* description of this simulator */
|
||||||
char *version; /* version or revision level of simulator*/
|
char *version; /* version or revision level of simulator*/
|
||||||
|
|
||||||
int ((*newCircuit)(void **));
|
int (*newCircuit) (void **);
|
||||||
/* create new circuit */
|
/* create new circuit */
|
||||||
int ((*deleteCircuit)(void *));
|
int (*deleteCircuit) (void *);
|
||||||
/* destroy old circuit's data structures*/
|
/* destroy old circuit's data structures*/
|
||||||
|
|
||||||
int ((*newNode)(void *,void**,IFuid));
|
int (*newNode) (void *, void **, IFuid);
|
||||||
/* create new node */
|
/* create new node */
|
||||||
int ((*groundNode)(void*,void**,IFuid));
|
int (*groundNode) (void *, void **, IFuid);
|
||||||
/* create ground node */
|
/* create ground node */
|
||||||
int ((*bindNode)(void *,void*,int,void*));
|
int (*bindNode) (void *, void *, int, void *);
|
||||||
/* bind a node to a terminal */
|
/* bind a node to a terminal */
|
||||||
int ((*findNode)(void *,void**,IFuid));
|
int (*findNode) (void *, void **, IFuid);
|
||||||
/* find a node by name */
|
/* find a node by name */
|
||||||
int ((*instToNode)(void *,void *,int,void **,IFuid *));
|
int (*instToNode) (void *, void *, int, void **, IFuid *);
|
||||||
/* find the node attached to a terminal */
|
/* find the node attached to a terminal */
|
||||||
int ((*setNodeParm)(void*,void*,int,IFvalue*,IFvalue*));
|
int (*setNodeParm) (void *, void *, int, IFvalue *, IFvalue *);
|
||||||
/* set a parameter on a node */
|
/* set a parameter on a node */
|
||||||
int ((*askNodeQuest)(void*,void*,int,IFvalue*,IFvalue*));
|
int (*askNodeQuest) (void *, void *, int, IFvalue *, IFvalue *);
|
||||||
/* ask a question about a node */
|
/* ask a question about a node */
|
||||||
int ((*deleteNode)(void*,void*));
|
int (*deleteNode) (void *, void *);
|
||||||
/* delete a node from the circuit */
|
/* delete a node from the circuit */
|
||||||
|
|
||||||
int ((*newInstance)(void*,void*,void**,IFuid));
|
int (*newInstance) (void *, void *, void **, IFuid);
|
||||||
/* create new instance */
|
/* create new instance */
|
||||||
int ((*setInstanceParm)(void*,void*,int,IFvalue*,IFvalue*));
|
int (*setInstanceParm) (void *, void *, int, IFvalue *, IFvalue *);
|
||||||
/* set a parameter on an instance */
|
/* set a parameter on an instance */
|
||||||
int ((*askInstanceQuest)(void*,void*,int,IFvalue*,IFvalue*));
|
int (*askInstanceQuest) (void *, void *, int, IFvalue *, IFvalue *);
|
||||||
/* ask a question about an instance */
|
/* ask a question about an instance */
|
||||||
int ((*findInstance)(void*,int*,void**,IFuid,void*,IFuid));
|
int (*findInstance) (void *, int *, void **, IFuid, void *, IFuid);
|
||||||
/* find a specific instance */
|
/* find a specific instance */
|
||||||
int ((*deleteInstance)(void*,void*));
|
int (*deleteInstance) (void *, void *);
|
||||||
/* delete an instance from the circuit */
|
/* delete an instance from the circuit */
|
||||||
|
|
||||||
int ((*newModel)(void*,int,void**,IFuid));
|
int (*newModel) (void *, int, void **, IFuid);
|
||||||
/* create new model */
|
/* create new model */
|
||||||
int ((*setModelParm)(void*,void*,int,IFvalue*,IFvalue*));
|
int (*setModelParm) (void *, void *, int, IFvalue *, IFvalue *);
|
||||||
/* set a parameter on a model */
|
/* set a parameter on a model */
|
||||||
int ((*askModelQuest)(void*,void*,int,IFvalue*,IFvalue*));
|
int (*askModelQuest) (void *, void *, int, IFvalue *, IFvalue *);
|
||||||
/* ask a questions about a model */
|
/* ask a questions about a model */
|
||||||
int ((*findModel)(void*,int*,void**,IFuid));
|
int (*findModel) (void *, int *, void **, IFuid);
|
||||||
/* find a specific model */
|
/* find a specific model */
|
||||||
int ((*deleteModel)(void*,void*));
|
int (*deleteModel) (void *, void *);
|
||||||
/* delete a model from the circuit*/
|
/* delete a model from the circuit*/
|
||||||
|
|
||||||
int ((*newTask)(void*,void**,IFuid, void**)); /*CDHW*/
|
int (*newTask) (void *, void **, IFuid, void **); /*CDHW*/
|
||||||
/* create a new task */
|
/* create a new task */
|
||||||
int ((*newAnalysis)(void*,int,IFuid,void**,void*));
|
int (*newAnalysis) (void *, int, IFuid, void **, void *);
|
||||||
/* create new analysis within a task */
|
/* create new analysis within a task */
|
||||||
int ((*setAnalysisParm)(void*,void*,int,IFvalue*,IFvalue*));
|
int (*setAnalysisParm) (void *, void *, int, IFvalue *, IFvalue *);
|
||||||
/* set a parameter on an analysis */
|
/* set a parameter on an analysis */
|
||||||
int ((*askAnalysisQuest)(void*,void*,int,IFvalue*,IFvalue*));
|
int (*askAnalysisQuest) (void *, void *, int, IFvalue *, IFvalue *);
|
||||||
/* ask a question about an analysis */
|
/* ask a question about an analysis */
|
||||||
int ((*findAnalysis)(void*,int*,void**,IFuid,void*,IFuid));
|
int (*findAnalysis) (void *, int *, void **, IFuid, void *, IFuid);
|
||||||
/* find a specific analysis */
|
/* find a specific analysis */
|
||||||
int ((*findTask)(void*,void**,IFuid));
|
int (*findTask) (void *, void **, IFuid);
|
||||||
/* find a specific task */
|
/* find a specific task */
|
||||||
int ((*deleteTask)(void*,void*));
|
int (*deleteTask) (void *, void *);
|
||||||
/* delete a task */
|
/* delete a task */
|
||||||
|
|
||||||
int ((*doAnalyses)(void*,int,void*));
|
int (*doAnalyses) (void *, int, void *);
|
||||||
char *((*nonconvErr)(void*,char *)); /* return nonconvergence error */
|
char *(*nonconvErr) (void *, char *); /* return nonconvergence error */
|
||||||
|
|
||||||
int numDevices; /* number of device types supported */
|
int numDevices; /* number of device types supported */
|
||||||
IFdevice **devices; /* array of device type descriptors */
|
IFdevice **devices; /* array of device type descriptors */
|
||||||
|
|
@ -419,9 +421,9 @@ struct IFsimulator {
|
||||||
|
|
||||||
int numSpecSigs; /* number of special signals legal in parse trees */
|
int numSpecSigs; /* number of special signals legal in parse trees */
|
||||||
char **specSigs; /* names of special signals legal in parse trees */
|
char **specSigs; /* names of special signals legal in parse trees */
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Structure: IFfrontEnd
|
* Structure: IFfrontEnd
|
||||||
*
|
*
|
||||||
|
|
@ -433,40 +435,41 @@ struct IFsimulator {
|
||||||
*/
|
*/
|
||||||
|
|
||||||
struct IFfrontEnd {
|
struct IFfrontEnd {
|
||||||
int ((*IFnewUid)(void*,IFuid*,IFuid,char*,int,void**));
|
int (*IFnewUid) (void *, IFuid *, IFuid, char *, int, void **);
|
||||||
/* create a new UID in the circuit */
|
/* create a new UID in the circuit */
|
||||||
int ((*IFdelUid)(void*,IFuid,int));
|
int (*IFdelUid) (void *, IFuid, int);
|
||||||
/* create a new UID in the circuit */
|
/* create a new UID in the circuit */
|
||||||
int ((*IFpauseTest)(void));
|
int (*IFpauseTest) (void);
|
||||||
/* should we stop now? */
|
/* should we stop now? */
|
||||||
double ((*IFseconds)(void));
|
double (*IFseconds) (void);
|
||||||
/* what time is it? */
|
/* what time is it? */
|
||||||
int ((*IFerror)(int,char*,IFuid*));
|
int (*IFerror) (int, char *, IFuid *);
|
||||||
/* output an error or warning message */
|
/* output an error or warning message */
|
||||||
int ((*OUTpBeginPlot)(void*,void*,IFuid,IFuid,int,
|
int (*OUTpBeginPlot) (void *, void *, IFuid, IFuid, int,
|
||||||
int,IFuid*,int,void**));
|
int, IFuid *, int, void **);
|
||||||
/* start pointwise output plot */
|
/* start pointwise output plot */
|
||||||
int ((*OUTpData)(void*,IFvalue*,IFvalue*));
|
int (*OUTpData) (void *, IFvalue *, IFvalue *);
|
||||||
/* data for pointwise plot */
|
/* data for pointwise plot */
|
||||||
int ((*OUTwBeginPlot)(void*,void*,IFuid,IFuid,int,
|
int (*OUTwBeginPlot) (void *, void *, IFuid, IFuid, int,
|
||||||
int,IFuid*,int,void**));
|
int, IFuid *, int, void **);
|
||||||
/* start windowed output plot */
|
/* start windowed output plot */
|
||||||
int ((*OUTwReference)(void*,IFvalue*,void**));
|
int (*OUTwReference) (void *, IFvalue *, void **);
|
||||||
/* independent vector for windowed plot */
|
/* independent vector for windowed plot */
|
||||||
int ((*OUTwData)(void*,int,IFvalue*,void*));
|
int (*OUTwData) (void *, int, IFvalue *, void *);
|
||||||
/* data for windowed plot */
|
/* data for windowed plot */
|
||||||
int ((*OUTwEnd)(void*));
|
int (*OUTwEnd) (void *);
|
||||||
/* signal end of windows */
|
/* signal end of windows */
|
||||||
int ((*OUTendPlot)(void*));
|
int (*OUTendPlot) (void *);
|
||||||
/* end of plot */
|
/* end of plot */
|
||||||
int ((*OUTbeginDomain)(void*,IFuid,int,IFvalue*));
|
int (*OUTbeginDomain) (void *, IFuid, int, IFvalue *);
|
||||||
/* start nested domain */
|
/* start nested domain */
|
||||||
int ((*OUTendDomain)(void*));
|
int (*OUTendDomain) (void *);
|
||||||
/* end nested domain */
|
/* end nested domain */
|
||||||
int ((*OUTattributes)(void *,IFuid,int,IFvalue*));
|
int (*OUTattributes) (void *, IFuid, int, IFvalue *);
|
||||||
/* specify output attributes of node */
|
/* specify output attributes of node */
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
/* flags for the first argument to IFerror */
|
/* flags for the first argument to IFerror */
|
||||||
#define ERR_WARNING 0x1
|
#define ERR_WARNING 0x1
|
||||||
#define ERR_FATAL 0x2
|
#define ERR_FATAL 0x2
|
||||||
|
|
|
||||||
|
|
@ -25,7 +25,7 @@ struct INPtab {
|
||||||
|
|
||||||
struct INPnTab {
|
struct INPnTab {
|
||||||
char *t_ent;
|
char *t_ent;
|
||||||
void* t_node;
|
void *t_node;
|
||||||
struct INPnTab *t_next;
|
struct INPnTab *t_next;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
@ -86,65 +86,66 @@ struct INPmodel{
|
||||||
#define LOGICAL 1
|
#define LOGICAL 1
|
||||||
#define PHYSICAL 2
|
#define PHYSICAL 2
|
||||||
|
|
||||||
int IFnewUid(void*,IFuid*,IFuid,char*,int,void**);
|
int IFnewUid(void *, IFuid *, IFuid, char *, int, void **);
|
||||||
int IFdelUid(void*,IFuid,int);
|
int IFdelUid(void *, IFuid, int);
|
||||||
int INPaName(char*,IFvalue*,void*,int*,char*,void**,IFsimulator*,int*,
|
int INPaName(char *, IFvalue *, void *, int *, char *, void **, IFsimulator *, int *,
|
||||||
IFvalue*);
|
IFvalue *);
|
||||||
int INPapName(void*,int,void*,char*,IFvalue*);
|
int INPapName(void *, int, void *, char *, IFvalue *);
|
||||||
void INPcaseFix(char*);
|
void INPcaseFix(char *);
|
||||||
char * INPdevParse(char**,void*,int,void*,double*,int*,INPtables*);
|
char *INPdevParse(char **, void *, int, void *, double *, int *, INPtables *);
|
||||||
char *INPdomodel(void *,card*, INPtables*);
|
char *INPdomodel(void *, card *, INPtables *);
|
||||||
void INPdoOpts(void*,void*,card*,INPtables*);
|
void INPdoOpts(void *, void *, card *, INPtables *);
|
||||||
char *INPerrCat(char *, char *);
|
char *INPerrCat(char *, char *);
|
||||||
char *INPerror(int);
|
char *INPerror(int);
|
||||||
double INPevaluate(char**,int*,int);
|
double INPevaluate(char **, int *, int);
|
||||||
char * INPfindLev(char*,int*);
|
char *INPfindLev(char *, int *);
|
||||||
char * INPgetMod(void*,char*,INPmodel**,INPtables*);
|
char *INPgetMod(void *, char *, INPmodel **, INPtables *);
|
||||||
char * INPgetModBin(void*,char*,INPmodel**,INPtables*,char*);
|
char *INPgetModBin(void *, char *, INPmodel **, INPtables *, char *);
|
||||||
int INPgetTok(char**,char**,int);
|
int INPgetTok(char **, char **, int);
|
||||||
int INPgetNetTok(char**,char**,int);
|
int INPgetNetTok(char **, char **, int);
|
||||||
void INPgetTree(char**,INPparseTree**,void*,INPtables*);
|
void INPgetTree(char **, INPparseTree **, void *, INPtables *);
|
||||||
IFvalue * INPgetValue(void*,char**,int,INPtables*);
|
IFvalue *INPgetValue(void *, char **, int, INPtables *);
|
||||||
int INPgndInsert(void*,char**,INPtables*,void**);
|
int INPgndInsert(void *, char **, INPtables *, void **);
|
||||||
int INPinsertNofree(char **token, INPtables *tab);
|
int INPinsertNofree(char **token, INPtables *tab);
|
||||||
int INPinsert(char**,INPtables*);
|
int INPinsert(char **, INPtables *);
|
||||||
int INPretrieve(char**,INPtables*);
|
int INPretrieve(char **, INPtables *);
|
||||||
int INPremove(char*,INPtables*);
|
int INPremove(char *, INPtables *);
|
||||||
int INPlookMod(char*);
|
int INPlookMod(char *);
|
||||||
int INPmakeMod(char*,int,card*);
|
int INPmakeMod(char *, int, card *);
|
||||||
char *INPmkTemp(char*);
|
char *INPmkTemp(char *);
|
||||||
void INPpas1(void*,card*,INPtables*);
|
void INPpas1(void *, card *, INPtables *);
|
||||||
void INPpas2(void*,card*,INPtables*,void *);
|
void INPpas2(void *, card *, INPtables *, void *);
|
||||||
void INPpas3(void*,card*,INPtables*,void *,IFparm*,int);
|
void INPpas3(void *, card *, INPtables *, void *, IFparm *, int);
|
||||||
int INPpName(char*,IFvalue*,void*,int,void*);
|
int INPpName(char *, IFvalue *, void *, int, void *);
|
||||||
int INPtermInsert(void*,char**,INPtables*,void**);
|
int INPtermInsert(void *, char **, INPtables *, void **);
|
||||||
int INPmkTerm(void*,char**,INPtables*,void**);
|
int INPmkTerm(void *, char **, INPtables *, void **);
|
||||||
int INPtypelook(char*);
|
int INPtypelook(char *);
|
||||||
void INP2B(void*,INPtables*,card*);
|
void INP2B(void *, INPtables *, card *);
|
||||||
void INP2C(void*,INPtables*,card*);
|
void INP2C(void *, INPtables *, card *);
|
||||||
void INP2D(void*,INPtables*,card*);
|
void INP2D(void *, INPtables *, card *);
|
||||||
void INP2E(void*,INPtables*,card*);
|
void INP2E(void *, INPtables *, card *);
|
||||||
void INP2F(void*,INPtables*,card*);
|
void INP2F(void *, INPtables *, card *);
|
||||||
void INP2G(void*,INPtables*,card*);
|
void INP2G(void *, INPtables *, card *);
|
||||||
void INP2H(void*,INPtables*,card*);
|
void INP2H(void *, INPtables *, card *);
|
||||||
void INP2I(void*,INPtables*,card*);
|
void INP2I(void *, INPtables *, card *);
|
||||||
void INP2J(void*,INPtables*,card*);
|
void INP2J(void *, INPtables *, card *);
|
||||||
void INP2K(void*,INPtables*,card*);
|
void INP2K(void *, INPtables *, card *);
|
||||||
void INP2L(void*,INPtables*,card*);
|
void INP2L(void *, INPtables *, card *);
|
||||||
void INP2M(void*,INPtables*,card*);
|
void INP2M(void *, INPtables *, card *);
|
||||||
void INP2O(void*,INPtables*,card*);
|
void INP2O(void *, INPtables *, card *);
|
||||||
void INP2P(void*,INPtables*,card*);
|
void INP2P(void *, INPtables *, card *);
|
||||||
void INP2Q(void*,INPtables*,card*,void*);
|
void INP2Q(void *, INPtables *, card *, void *);
|
||||||
void INP2R(void*,INPtables*,card*);
|
void INP2R(void *, INPtables *, card *);
|
||||||
void INP2S(void*,INPtables*,card*);
|
void INP2S(void *, INPtables *, card *);
|
||||||
void INP2T(void*,INPtables*,card*);
|
void INP2T(void *, INPtables *, card *);
|
||||||
void INP2U(void*,INPtables*,card*);
|
void INP2U(void *, INPtables *, card *);
|
||||||
void INP2V(void*,INPtables*,card*);
|
void INP2V(void *, INPtables *, card *);
|
||||||
void INP2W(void*,INPtables*,card*);
|
void INP2W(void *, INPtables *, card *);
|
||||||
void INP2Y(void*,INPtables*,card*);
|
void INP2Y(void *, INPtables *, card *);
|
||||||
void INP2Z(void*,INPtables*,card*);
|
void INP2Z(void *, INPtables *, card *);
|
||||||
int INP2dot(void*,INPtables*,card*,void*,void*);
|
int INP2dot(void *, INPtables *, card *, void *, void *);
|
||||||
INPtables *INPtabInit(int);
|
INPtables *INPtabInit(int);
|
||||||
void INPkillMods(void);
|
void INPkillMods(void);
|
||||||
void INPtabEnd(INPtables *);
|
void INPtabEnd(INPtables *);
|
||||||
|
|
||||||
#endif /*INP*/
|
#endif /*INP*/
|
||||||
|
|
|
||||||
|
|
@ -30,11 +30,14 @@ struct TFan {
|
||||||
unsigned int TFinIsI :1;
|
unsigned int TFinIsI :1;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
#define TF_OUTPOS 1
|
#define TF_OUTPOS 1
|
||||||
#define TF_OUTNEG 2
|
#define TF_OUTNEG 2
|
||||||
#define TF_OUTSRC 3
|
#define TF_OUTSRC 3
|
||||||
#define TF_INSRC 4
|
#define TF_INSRC 4
|
||||||
#define TF_OUTNAME 5
|
#define TF_OUTNAME 5
|
||||||
|
|
||||||
extern int TFsetParm(CKTcircuit *ckt, void *anal, int which, IFvalue *value);
|
extern int TFsetParm(CKTcircuit *ckt, void *anal, int which, IFvalue *value);
|
||||||
extern int TFaskQuest(CKTcircuit *ckt, void *anal, int which, IFvalue *value);
|
extern int TFaskQuest(CKTcircuit *ckt, void *anal, int which, IFvalue *value);
|
||||||
|
|
||||||
#endif /*TF*/
|
#endif /*TF*/
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue