Browse Source

Correct the ADMS macro.

pre-master-46
dwarning 20 years ago
parent
commit
067da3e860
  1. 9
      src/spicelib/parser/inp2m.c
  2. 3
      src/spicelib/parser/inp2q.c

9
src/spicelib/parser/inp2m.c

@ -52,7 +52,6 @@ INP2M (void *ckt, INPtables * tab, card * current)
IFuid uid; /* uid for default model */ IFuid uid; /* uid for default model */
#ifdef TRACE #ifdef TRACE
/* SJB debug statement */
printf("INP2M: Parsing '%s'\n",current->line); printf("INP2M: Parsing '%s'\n",current->line);
#endif #endif
@ -76,7 +75,6 @@ INP2M (void *ckt, INPtables * tab, card * current)
the default mosfet model is used */ the default mosfet model is used */
thismodel = (INPmodel *) NULL; thismodel = (INPmodel *) NULL;
#ifdef TRACE #ifdef TRACE
/* SJB debug statement */
printf("INP2M: checking for 4 node device\n"); printf("INP2M: checking for 4 node device\n");
#endif #endif
INPgetMod (ckt, nname5, &thismodel, tab); INPgetMod (ckt, nname5, &thismodel, tab);
@ -86,7 +84,6 @@ INP2M (void *ckt, INPtables * tab, card * current)
INPgetNetTok (&line, &nname6, 1); /* get next token */ INPgetNetTok (&line, &nname6, 1); /* get next token */
thismodel = (INPmodel *) NULL; thismodel = (INPmodel *) NULL;
#ifdef TRACE #ifdef TRACE
/* SJB debug statement */
printf("INP2M: checking for 5 node device\n"); printf("INP2M: checking for 5 node device\n");
#endif #endif
INPgetMod (ckt, nname6, &thismodel, tab); INPgetMod (ckt, nname6, &thismodel, tab);
@ -96,7 +93,6 @@ INP2M (void *ckt, INPtables * tab, card * current)
INPgetNetTok (&line, &nname7, 1); /* get next token */ INPgetNetTok (&line, &nname7, 1); /* get next token */
thismodel = (INPmodel *) NULL; thismodel = (INPmodel *) NULL;
#ifdef TRACE #ifdef TRACE
/* SJB debug statement */
printf("INP2M: checking for 6 node device\n"); printf("INP2M: checking for 6 node device\n");
#endif #endif
INPgetMod (ckt, nname7, &thismodel, tab); INPgetMod (ckt, nname7, &thismodel, tab);
@ -105,7 +101,6 @@ INP2M (void *ckt, INPtables * tab, card * current)
nodeflag = 3; /* now specify a 7 node device */ nodeflag = 3; /* now specify a 7 node device */
INPgetTok (&line, &model, 1); /* get model name */ INPgetTok (&line, &model, 1); /* get model name */
#ifdef TRACE #ifdef TRACE
/* SJB debug statement */
printf("INP2M: checking for 7 node device\n"); printf("INP2M: checking for 7 node device\n");
#endif #endif
INPgetMod (ckt, model, &thismodel, tab); /* get pointer to the model */ INPgetMod (ckt, model, &thismodel, tab); /* get pointer to the model */
@ -130,7 +125,6 @@ INP2M (void *ckt, INPtables * tab, card * current)
/*saj unbreak the default model creation*/ /*saj unbreak the default model creation*/
else{ else{
#ifdef TRACE #ifdef TRACE
/* SJB debug statement */
printf("INP2M: couldn't workout number of nodes, assuming 4\n"); printf("INP2M: couldn't workout number of nodes, assuming 4\n");
#endif #endif
model = nname5;/*mosfet*/ model = nname5;/*mosfet*/
@ -188,7 +182,6 @@ INP2M (void *ckt, INPtables * tab, card * current)
INPinsert (&model, tab); INPinsert (&model, tab);
thismodel = (INPmodel *) NULL; thismodel = (INPmodel *) NULL;
#ifdef TRACE #ifdef TRACE
/* SJB debug statement */
printf("INP2M: Looking up model\n"); printf("INP2M: Looking up model\n");
#endif #endif
current->error = INPgetMod (ckt, model, &thismodel, tab); current->error = INPgetMod (ckt, model, &thismodel, tab);
@ -217,7 +210,7 @@ INP2M (void *ckt, INPtables * tab, card * current)
#ifdef CIDER #ifdef CIDER
&& thismodel->INPmodType != INPtypelook ("NUMOS") && thismodel->INPmodType != INPtypelook ("NUMOS")
#endif #endif
#ifdef HAVE_ADMS
#ifdef ADMS
&& thismodel->INPmodType != INPtypelook ("EKV") && thismodel->INPmodType != INPtypelook ("EKV")
#endif #endif
&& thismodel->INPmodType != INPtypelook ("HiSIM1") && thismodel->INPmodType != INPtypelook ("HiSIM1")

3
src/spicelib/parser/inp2q.c

@ -70,7 +70,7 @@ void INP2Q(void *ckt, INPtables * tab, card * current, void *gnode)
if((thismodel->INPmodType != INPtypelook("BJT")) if((thismodel->INPmodType != INPtypelook("BJT"))
&& (thismodel->INPmodType != INPtypelook("BJT2")) && (thismodel->INPmodType != INPtypelook("BJT2"))
&& (thismodel->INPmodType != INPtypelook("VBIC")) && (thismodel->INPmodType != INPtypelook("VBIC"))
#ifdef HAVE_ADMS
#ifdef ADMS
&& (thismodel->INPmodType != INPtypelook("hicum0")) && (thismodel->INPmodType != INPtypelook("hicum0"))
&& (thismodel->INPmodType != INPtypelook("mextram")) && (thismodel->INPmodType != INPtypelook("mextram"))
#endif #endif
@ -96,7 +96,6 @@ void INP2Q(void *ckt, INPtables * tab, card * current, void *gnode)
} }
#ifdef TRACE #ifdef TRACE
/* --- SDB debug statement --- */
printf ("In INP2Q, just about to dive into newInstance\n"); printf ("In INP2Q, just about to dive into newInstance\n");
#endif #endif

Loading…
Cancel
Save