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

📄 mos3sprint.c

📁 支持数字元件仿真的SPICE插件
💻 C
字号:
/* * Copyright (c) 1985 Thomas L. Quarles */    /* Pretty print the sensitivity info for all the MOS3      * devices  in the circuit.     */#include "prefix.h"#include <stdio.h>#include <math.h>#include "SMPdefs.h"#include "CKTdefs.h"#include "MOS3defs.h"#include "util.h"#include "SPerror.h"#include "suffix.h"RCSID("MOS3sPrint.c $Revision: 1.1 $ on $Date: 90/10/11 12:45:38 $")voidMOS3sPrint(inModel,ckt)    GENmodel *inModel;    register CKTcircuit *ckt;{    register MOS3model *model = (MOS3model *)inModel;    register MOS3instance *here;    printf("LEVEL 1 MOSFETS-----------------\n");    /*  loop through all the MOS3 models */    for( ; model != NULL; model = model->MOS3nextModel ) {        printf("Model name:%s\n",model->MOS3modName);        /* loop through all the instances of the model */        for (here = model->MOS3instances; here != NULL ;                here=here->MOS3nextInstance) {            printf("    Instance name:%s\n",here->MOS3name);            printf("      Drain, Gate , Source nodes: %s, %s ,%s\n",            CKTnodName(ckt,here->MOS3dNode),CKTnodName(ckt,here->MOS3gNode),            CKTnodName(ckt,here->MOS3sNode));            printf("      Length: %g ",here->MOS3l);            printf(here->MOS3lGiven ? "(specified)\n" : "(default)\n");            printf("      Width: %g ",here->MOS3w);            printf(here->MOS3wGiven ? "(specified)\n" : "(default)\n");            if(here->MOS3sens_l == 1){                printf("    MOS3senParmNo:l = %d ",here->MOS3senParmNo);            }            else{                 printf("    MOS3senParmNo:l = 0 ");            }            if(here->MOS3sens_w == 1){                printf("    w = %d \n",here->MOS3senParmNo + here->MOS3sens_l);            }            else{                 printf("    w = 0 \n");            }        }    }}

⌨️ 快捷键说明

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