summaryrefslogtreecommitdiffstats
path: root/src/map/scl/sclSize.c
diff options
context:
space:
mode:
authorAlan Mishchenko <alanmi@berkeley.edu>2012-10-09 21:14:32 -0700
committerAlan Mishchenko <alanmi@berkeley.edu>2012-10-09 21:14:32 -0700
commit1e7ea2ca459184461c1461fb13e7fd54e0a467b8 (patch)
tree682ef972611a0d6032359de9a159b1fcd0a8c517 /src/map/scl/sclSize.c
parentdaeffe791cb2f6690a23f4cf4d0d3101a5ac54b5 (diff)
downloadabc-1e7ea2ca459184461c1461fb13e7fd54e0a467b8.tar.gz
abc-1e7ea2ca459184461c1461fb13e7fd54e0a467b8.tar.bz2
abc-1e7ea2ca459184461c1461fb13e7fd54e0a467b8.zip
Improvements to gate sizing.
Diffstat (limited to 'src/map/scl/sclSize.c')
-rw-r--r--src/map/scl/sclSize.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/map/scl/sclSize.c b/src/map/scl/sclSize.c
index 45b0bcd2..f7bb9371 100644
--- a/src/map/scl/sclSize.c
+++ b/src/map/scl/sclSize.c
@@ -67,7 +67,8 @@ Vec_Int_t * Abc_SclCollectNodes( Abc_Ntk_t * p )
***********************************************************************/
Vec_Int_t * Abc_SclFindCriticalCoRange( SC_Man * p, int Range )
{
- float fMaxArr = Abc_SclGetMaxDelay( p ) * (100.0 - Range) / 100.0;
+// float fMaxArr = Abc_SclGetMaxDelay( p ) * (100.0 - Range) / 100.0;
+ float fMaxArr = Abc_SclReadMaxDelay( p ) * (100.0 - Range) / 100.0;
Vec_Int_t * vPivots;
Abc_Obj_t * pObj;
int i;
@@ -333,7 +334,7 @@ void Abc_SclUpdateNetwork( SC_Man * p, Abc_Obj_t * pObj, int nCone, int fUpsize,
printf( "%5d :", iStep );
printf( "%7d ", Abc_ObjId(pObj) );
printf( "%-12s-> %-12s ", pOld->pName, pNew->pName );
- printf( "d =%8.2f ps ", SC_LibTimePs(p->pLib, Abc_SclGetMaxDelay(p)) );
+ printf( "d =%8.2f ps ", SC_LibTimePs(p->pLib, Abc_SclReadMaxDelay(p)) );
printf( "a =%10.2f ", p->SumArea );
printf( "n =%5d ", nCone );
// Abc_PrintTime( 1, "Time", clock() - p->timeTotal );
@@ -365,7 +366,7 @@ void Abc_SclSizingPerform( SC_Lib * pLib, Abc_Ntk_t * pNtk, SC_SizePars * pPars
Abc_Obj_t * pBest;
clock_t nRuntimeLimit = pPars->nTimeOut ? pPars->nTimeOut * CLOCKS_PER_SEC + clock() : 0;
int r, i, nNodes, nCones = 0, nDownSize = 0;
- p = Abc_SclManStart( pLib, pNtk, pPars->fUseWireLoads );
+ p = Abc_SclManStart( pLib, pNtk, pPars->fUseWireLoads, 0 );
p->timeTotal = clock();
if ( pPars->fPrintCP )
Abc_SclTimeNtkPrint( p, 0, 0 );
@@ -375,7 +376,7 @@ void Abc_SclSizingPerform( SC_Lib * pLib, Abc_Ntk_t * pNtk, SC_SizePars * pPars
{
// printf( "%5d : ", 0 );
printf( "Starting parameters of current mapping: " );
- printf( "d =%8.2f ps ", SC_LibTimePs(p->pLib, Abc_SclGetMaxDelay(p)) );
+ printf( "d =%8.2f ps ", SC_LibTimePs(p->pLib, Abc_SclReadMaxDelay(p)) );
printf( "a =%10.2f ", p->SumArea );
printf( " " );
Abc_PrintTime( 1, "Time", clock() - p->timeTotal );
@@ -458,7 +459,7 @@ void Abc_SclSizingPerform( SC_Lib * pLib, Abc_Ntk_t * pNtk, SC_SizePars * pPars
printf( "\n" );
}
- p->MaxDelay = Abc_SclGetMaxDelay(p);
+ p->MaxDelay = Abc_SclReadMaxDelay(p);
if ( pPars->fPrintCP )
Abc_SclTimeNtkPrint( p, 0, 0 );
if ( nRuntimeLimit && clock() > nRuntimeLimit )