Jspice3
mostrun.c
Go to the documentation of this file.
1 /***************************************************************************
2 JSPICE3 adaptation of Spice3f2 - Copyright (c) Stephen R. Whiteley 1992
3 Copyright 1990 Regents of the University of California. All rights reserved.
4 Authors: 1985 Thomas L. Quarles
5  1993 Stephen R. Whiteley
6 ****************************************************************************/
7 
8 #include "spice.h"
9 #include <stdio.h>
10 #include "mosdefs.h"
11 #include "sperror.h"
12 #include "cktext.h"
13 
14 
15 int
16 MOStrunc(inModel,ckt,timeStep)
17 
18 GENmodel *inModel;
19 CKTcircuit *ckt;
20 double *timeStep;
21 {
22  MOSmodel *model = (MOSmodel *)inModel;
23  MOSinstance *here;
24 
25  for ( ; model != NULL; model = model->MOSnextModel) {
26  for (here = model->MOSinstances; here!=NULL;
27  here = here->MOSnextInstance) {
28 
29  CKTterr(here->MOSqgs,ckt,timeStep);
30  CKTterr(here->MOSqgd,ckt,timeStep);
31  CKTterr(here->MOSqgb,ckt,timeStep);
32  }
33  }
34  return (OK);
35 }
struct sMOSmodel * MOSnextModel
Definition: mosdefs.h:274
MOSinstance * MOSinstances
Definition: mosdefs.h:276
#define OK
Definition: iferrmsg.h:17
#define NULL
Definition: spdefs.h:121
void CKTterr()
static char model[32]
Definition: subckt.c:76
struct sMOSinstance * MOSnextInstance
Definition: mosdefs.h:20
int MOStrunc(GENmodel *inModel, CKTcircuit *ckt, double *timeStep)
Definition: mostrun.c:16