Correct the ADMS macro.

This commit is contained in:
dwarning 2006-02-18 09:15:17 +00:00
parent 9d5b6727f9
commit 067da3e860
2 changed files with 2 additions and 10 deletions

View File

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

View File

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