Jspice3
mostrun.c File Reference
#include "spice.h"
#include <stdio.h>
#include "mosdefs.h"
#include "sperror.h"
#include "cktext.h"
Include dependency graph for mostrun.c:

Go to the source code of this file.

Functions

int MOStrunc (GENmodel *inModel, CKTcircuit *ckt, double *timeStep)
 

Function Documentation

int MOStrunc ( GENmodel inModel,
CKTcircuit ckt,
double *  timeStep 
)

Definition at line 16 of file mostrun.c.

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