You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

64 lines
2.0 KiB

/**********
Copyright 1990 Regents of the University of California. All rights reserved.
Author: 1985 Thomas L. Quarles
Modified: 2000 AlansFixes
This function is obsolete (was used by an old sensitivity analysis)
**********/
/* Pretty print the sensitivity info for all the MOS3
* devices in the circuit.
*/
#include "ngspice/ngspice.h"
#include "ngspice/smpdefs.h"
#include "ngspice/cktdefs.h"
#include "mos3defs.h"
#include "ngspice/sperror.h"
#include "ngspice/suffix.h"
void
MOS3sPrint(GENmodel *inModel, CKTcircuit *ckt)
{
MOS3model *model = (MOS3model *)inModel;
MOS3instance *here;
printf("LEVEL 3 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(" Multiplier: %g ",here->MOS3m);
printf(here->MOS3mGiven ? "(specified)\n" : "(default)\n");
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");
}
}
}
}