📄 b3v1sgetic.c
字号:
/**********Copyright 1990 Regents of the University of California. All rights reserved.Author: 1995 Min-Chie Jeng and Mansun Chan.Modified by Paolo Nenzi 2002File: b3v1getic.c**********/#include "ngspice.h"#include "cktdefs.h"#include "bsim3v1sdef.h"#include "sperror.h"#include "suffix.h"intBSIM3v1Sgetic(GENmodel *inModel, CKTcircuit *ckt){BSIM3v1Smodel *model = (BSIM3v1Smodel*)inModel;BSIM3v1Sinstance *here; for (; model ; model = model->BSIM3v1SnextModel) { for (here = model->BSIM3v1Sinstances; here; here = here->BSIM3v1SnextInstance) { if (here->BSIM3v1Sowner != ARCHme) continue; if(!here->BSIM3v1SicVBSGiven) { here->BSIM3v1SicVBS = *(ckt->CKTrhs + here->BSIM3v1SbNode) - *(ckt->CKTrhs + here->BSIM3v1SsNode); } if (!here->BSIM3v1SicVDSGiven) { here->BSIM3v1SicVDS = *(ckt->CKTrhs + here->BSIM3v1SdNode) - *(ckt->CKTrhs + here->BSIM3v1SsNode); } if (!here->BSIM3v1SicVGSGiven) { here->BSIM3v1SicVGS = *(ckt->CKTrhs + here->BSIM3v1SgNode) - *(ckt->CKTrhs + here->BSIM3v1SsNode); } } } return(OK);}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -