📄 nummparm.c
字号:
/**********Copyright 1991 Regents of the University of California. All rights reserved.Author: 1987 Kartikeya Mayaram, U. C. Berkeley CAD Group**********//* * This routine sets instance parameters for NUMOSs in the circuit. */#include "spice.h"#include <stdio.h>#include "const.h"#include "util.h"#include "ifsim.h"#include "numosdef.h"#include "sperror.h"#include "suffix.h"intNUMOSparam(param, value, inInst, select) int param; IFvalue *value; GENinstance *inInst; IFvalue *select;{ register NUMOSinstance *inst = (NUMOSinstance *) inInst; switch (param) { case NUMOS_AREA: inst->NUMOSarea = value->rValue; inst->NUMOSareaGiven = TRUE; break; case NUMOS_WIDTH: inst->NUMOSwidth = value->rValue; inst->NUMOSwidthGiven = TRUE; break; case NUMOS_LENGTH: inst->NUMOSlength = value->rValue; inst->NUMOSlengthGiven = TRUE; break; case NUMOS_OFF: inst->NUMOSoff = TRUE; break; case NUMOS_IC_FILE: inst->NUMOSicFile = value->sValue; inst->NUMOSicFileGiven = TRUE; break; case NUMOS_PRINT: inst->NUMOSprint = value->rValue; inst->NUMOSprintGiven = TRUE; break; case NUMOS_TEMP: inst->NUMOStemp = value->rValue + CONSTCtoK; inst->NUMOStempGiven = TRUE; break; default: return (E_BADPARM); } return (OK);}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -