mos6ic.c
来自「spice中支持多层次元件模型仿真的可单独运行的插件源码」· C语言 代码 · 共 51 行
C
51 行
/**********Copyright 1990 Regents of the University of California. All rights reserved.Author: 1989 Takayasu Sakurai**********//* */#include "spice.h"#include <stdio.h>#include "cktdefs.h"#include "mos6defs.h"#include "sperror.h"#include "suffix.h"intMOS6getic(inModel,ckt) GENmodel *inModel; CKTcircuit *ckt;{ MOS6model *model = (MOS6model *)inModel; MOS6instance *here; /* * grab initial conditions out of rhs array. User specified, so use * external nodes to get values */ for( ; model ; model = model->MOS6nextModel) { for(here = model->MOS6instances; here ; here = here->MOS6nextInstance) { if (here->MOS6owner != ARCHme) continue; if(!here->MOS6icVBSGiven) { here->MOS6icVBS = *(ckt->CKTrhs + here->MOS6bNode) - *(ckt->CKTrhs + here->MOS6sNode); } if(!here->MOS6icVDSGiven) { here->MOS6icVDS = *(ckt->CKTrhs + here->MOS6dNode) - *(ckt->CKTrhs + here->MOS6sNode); } if(!here->MOS6icVGSGiven) { here->MOS6icVGS = *(ckt->CKTrhs + here->MOS6gNode) - *(ckt->CKTrhs + here->MOS6sNode); } } } return(OK);}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?