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

📄 numdpzld.c

📁 spice中支持多层次元件模型仿真的可单独运行的插件源码
💻 C
字号:
/**********Copyright 1992 Regents of the University of California.  All rights reserved.Author:	1987 Kartikeya Mayaram, U. C. Berkeley CAD Group**********/#include "spice.h"#include <stdio.h>#include "cktdefs.h"#include "complex.h"#include "sperror.h"#include "numddefs.h"#include "suffix.h"/* External Declarations */extern int ONEacDebug;intNUMDpzLoad(inModel, ckt, s)  GENmodel *inModel;  register CKTcircuit *ckt;  SPcomplex *s;{  register NUMDmodel *model = (NUMDmodel *) inModel;  register NUMDinstance *inst;  SPcomplex y;  double startTime;  void NUMDys();  /* loop through all the diode models */  for (; model != NULL; model = model->NUMDnextModel) {    FieldDepMobility = model->NUMDmodels->MODLfieldDepMobility;    Srh = model->NUMDmodels->MODLsrh;    Auger = model->NUMDmodels->MODLauger;    AvalancheGen = model->NUMDmodels->MODLavalancheGen;    AcAnalysisMethod = model->NUMDmethods->METHacAnalysisMethod;    MobDeriv = model->NUMDmethods->METHmobDeriv;    ONEacDebug = model->NUMDoutputs->OUTPacDebug;    for (inst = model->NUMDinstances; inst != NULL;	inst = inst->NUMDnextInstance) {      if (inst->NUMDowner != ARCHme) continue;      startTime = SPfrontEnd->IFseconds();      /* Get Temp.-Dep. Global Parameters */      GLOBgetGlobals(&(inst->NUMDglobals));      NUMDys(inst->NUMDpDevice, s, &y);      *(inst->NUMDposPosPtr) += y.real;      *(inst->NUMDposPosPtr + 1) += y.imag;      *(inst->NUMDnegNegPtr) += y.real;      *(inst->NUMDnegNegPtr + 1) += y.imag;      *(inst->NUMDnegPosPtr) -= y.real;      *(inst->NUMDnegPosPtr + 1) -= y.imag;      *(inst->NUMDposNegPtr) -= y.real;      *(inst->NUMDposNegPtr + 1) -= y.imag;      inst->NUMDpDevice->pStats->totalTime[STAT_AC] +=	  SPfrontEnd->IFseconds() - startTime;    }  }  return (OK);}

⌨️ 快捷键说明

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