From 067da3e8601cb8e1d148519ac0304921f6bc00a7 Mon Sep 17 00:00:00 2001 From: dwarning Date: Sat, 18 Feb 2006 09:15:17 +0000 Subject: [PATCH] Correct the ADMS macro. --- src/spicelib/parser/inp2m.c | 9 +-------- src/spicelib/parser/inp2q.c | 3 +-- 2 files changed, 2 insertions(+), 10 deletions(-) diff --git a/src/spicelib/parser/inp2m.c b/src/spicelib/parser/inp2m.c index 3c95da2c6..4cc0f739f 100644 --- a/src/spicelib/parser/inp2m.c +++ b/src/spicelib/parser/inp2m.c @@ -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") diff --git a/src/spicelib/parser/inp2q.c b/src/spicelib/parser/inp2q.c index 30465e629..6317717f2 100644 --- a/src/spicelib/parser/inp2q.c +++ b/src/spicelib/parser/inp2q.c @@ -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