⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 vccsdefs.h

📁 支持数字元件仿真的SPICE插件
💻 H
字号:
/* * Copyright (c) 1985 Thomas L. Quarles */#ifndef VCCS#define VCCS "VCCSdefs.h $Revision: 1.1 $  on $Date: 91/04/02 11:26:49 $ "#include "IFsim.h"#include "CKTdefs.h"#include "GENdefs.h"#include "complex.h"        /*         * structures to describe Voltage Controlled Current Sources         *//* information to describe a single instance */typedef struct sVCCSinstance {    struct sVCCSmodel *VCCSmodPtr;  /* backpointer to model */    struct sVCCSinstance *VCCSnextInstance;  /* pointer to next instance of                                               *current model*/    IFuid VCCSname; /* pointer to character string naming this instance */    int VCCSposNode;    /* number of positive node of source */    int VCCSnegNode;    /* number of negative node of source */    int VCCScontPosNode;    /* number of positive node of controlling source */    int VCCScontNegNode;    /* number of negative node of controlling source */    double VCCSinitCond;    /* initial condition (of controlling source) */    double VCCScoeff;       /* coefficient */    int VCCSstates;         /* state info */#define VCCSvOld VCCSstates#define VCCScontVOld VCCSstates + 1    double *VCCSposContPosptr;  /* pointer to sparse matrix element at                                  * (positive node, control positive node) */    double *VCCSposContNegptr;  /* pointer to sparse matrix element at                                  * (negative node, control negative node) */    double *VCCSnegContPosptr;  /* pointer to sparse matrix element at                                  * (positive node, control positive node) */    double *VCCSnegContNegptr;  /* pointer to sparse matrix element at                                  * (negative node, control negative node) */    unsigned VCCScoeffGiven :1 ;/* flag to indicate function coeffs given */    int  VCCSsenParmNo;   /* parameter # for sensitivity use;            set equal to  0 if not a design parameter*/} VCCSinstance ;/* per model data */typedef struct sVCCSmodel {       /* model structure for a source */    int VCCSmodType;    /* type index of this device type */    struct sVCCSmodel *VCCSnextModel;    /* pointer to next possible model                                           * in linked list */    VCCSinstance * VCCSinstances;    /* pointer to list of instances                                       * that have this model */    IFuid VCCSmodName;       /* pointer to character string naming this model */} VCCSmodel;/* device parameters */#define VCCS_TRANS 1#define VCCS_IC 2#define VCCS_POS_NODE 3#define VCCS_NEG_NODE 4#define VCCS_CONT_P_NODE 5#define VCCS_CONT_N_NODE 6#define VCCS_CONT_V_OLD 7#define VCCS_TRANS_SENS 8#define VCCS_CURRENT 9#define VCCS_POWER 10/* model parameters *//* device questions */#define VCCS_QUEST_SENS_REAL         201#define VCCS_QUEST_SENS_IMAG         202#define VCCS_QUEST_SENS_MAG      203#define VCCS_QUEST_SENS_PH       204#define VCCS_QUEST_SENS_CPLX         205#define VCCS_QUEST_SENS_DC       206/* model questions */#ifdef __STDC__extern int VCCSask(CKTcircuit*,GENinstance*,int,IFvalue*,IFvalue*);extern int VCCSdelete(GENmodel*,IFuid,GENinstance**);extern void VCCSdestroy(GENmodel**);extern int VCCSload(GENmodel*,CKTcircuit*);extern int VCCSmDelete(GENmodel**,IFuid,GENmodel*);extern int VCCSparam(int,IFvalue*,GENinstance*,IFvalue*);extern int VCCSpzLoad(GENmodel*,CKTcircuit*,SPcomplex*);extern int VCCSsAcLoad(GENmodel*,CKTcircuit*);extern int VCCSsLoad(GENmodel*,CKTcircuit*);extern int VCCSsSetup(SENstruct*,GENmodel*);extern void VCCSsPrint(GENmodel*,CKTcircuit*);extern int VCCSsetup(SMPmatrix*,GENmodel*,CKTcircuit*,int*);#else /* stdc */extern int VCCSask();extern int VCCSdelete();extern void VCCSdestroy();extern int VCCSload();extern int VCCSmDelete();extern int VCCSparam();extern int VCCSpzLoad();extern int VCCSsAcLoad();extern int VCCSsLoad();extern int VCCSsSetup();extern void VCCSsPrint();extern int VCCSsetup();#endif /* stdc */#endif /*VCCS*/

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -