From 6b2744ff771eb71b5246aa9930ea5ff8862e106d Mon Sep 17 00:00:00 2001 From: Alan Mishchenko Date: Tue, 4 Sep 2012 12:22:59 -0700 Subject: Improving print-outs in 'stime' and 'gsize'. --- src/map/scl/sclLoad.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/map/scl/sclLoad.c') diff --git a/src/map/scl/sclLoad.c b/src/map/scl/sclLoad.c index 3d763bd7..0ad3a405 100644 --- a/src/map/scl/sclLoad.c +++ b/src/map/scl/sclLoad.c @@ -84,7 +84,7 @@ Vec_Flt_t * Abc_SclFindWireCaps( SC_Man * p ) SC_LibForEachWireLoad( p->pLib, pWL, i ) if ( !strcmp(pWL->pName, p->pWLoadUsed) ) break; - if ( i == Vec_PtrSize(p->pLib->vWireLoadSels) ) + if ( i == Vec_PtrSize(p->pLib->vWireLoads) ) { Abc_Print( -1, "Cannot find wire load model \"%s\".\n", p->pWLoadUsed ); exit(1); @@ -143,6 +143,8 @@ void Abc_SclComputeLoad( SC_Man * p ) pLoad->fall += pPin->fall_cap; } } + if ( !p->fUseWireLoads ) + return; // add wire load vWireCaps = Abc_SclFindWireCaps( p ); if ( vWireCaps ) -- cgit v1.2.3