diff options
author | Alan Mishchenko <alanmi@berkeley.edu> | 2015-10-28 20:18:21 -0700 |
---|---|---|
committer | Alan Mishchenko <alanmi@berkeley.edu> | 2015-10-28 20:18:21 -0700 |
commit | cb50fadb554398518d1548eb59b266465c4d4ba4 (patch) | |
tree | 9194ec3497d4049f52b9a76cf0ee9596bd2e8837 /src/opt/fret | |
parent | 9c4c95b6b100f96c825a0d62af9ae14b46f13bbb (diff) | |
download | abc-cb50fadb554398518d1548eb59b266465c4d4ba4.tar.gz abc-cb50fadb554398518d1548eb59b266465c4d4ba4.tar.bz2 abc-cb50fadb554398518d1548eb59b266465c4d4ba4.zip |
Changes to VC6.0 makefile to accommodate new package 'opt/fret' and compiler warnings.
Diffstat (limited to 'src/opt/fret')
-rw-r--r-- | src/opt/fret/fretMain.c | 4 | ||||
-rw-r--r-- | src/opt/fret/fretTime.c | 20 |
2 files changed, 12 insertions, 12 deletions
diff --git a/src/opt/fret/fretMain.c b/src/opt/fret/fretMain.c index 847476aa..2dd2bc03 100644 --- a/src/opt/fret/fretMain.c +++ b/src/opt/fret/fretMain.c @@ -491,10 +491,10 @@ Abc_FlowRetime_PushFlows( Abc_Ntk_t * pNtk, int fVerbose ) { srcDist = MAX_DIST; Abc_NtkForEachLatch( pNtk, pObj, i ) if (FDATA(pObj)->e_dist) - srcDist = MIN(srcDist, FDATA(pObj)->e_dist); + srcDist = MIN(srcDist, (int)FDATA(pObj)->e_dist); Abc_NtkForEachLatch( pNtk, pObj, i ) { - if (srcDist == FDATA(pObj)->e_dist && + if (srcDist == (int)FDATA(pObj)->e_dist && dfsfast_e( pObj, NULL )) { #ifdef DEBUG_PRINT_FLOWS printf("\n\n"); diff --git a/src/opt/fret/fretTime.c b/src/opt/fret/fretTime.c index b423ace8..0614ab6e 100644 --- a/src/opt/fret/fretTime.c +++ b/src/opt/fret/fretTime.c @@ -191,7 +191,7 @@ void Abc_FlowRetime_ConstrainConserv_forw( Abc_Ntk_t * pNtk ) { } pObj->Level += Abc_ObjIsNode(pObj) ? 1 : 0; - if (pObj->Level > pManMR->maxDelay) { + if ((int)pObj->Level > pManMR->maxDelay) { FSET(pObj, BLOCK); } } @@ -242,7 +242,7 @@ void Abc_FlowRetime_ConstrainConserv_forw( Abc_Ntk_t * pNtk ) { pObj->Level += Abc_ObjIsNode(pObj) ? 1 : 0; // constrained? - if (pObj->Level > pManMR->maxDelay) { + if ((int)pObj->Level > pManMR->maxDelay) { FSET( pObj, CONSERVATIVE ); pManMR->nConservConstraints++; } else @@ -276,7 +276,7 @@ void Abc_FlowRetime_ConstrainConserv_back( Abc_Ntk_t * pNtk ) { { l = pNext->Level + (Abc_ObjIsNode(pObj) ? 1 : 0); if ( Abc_NodeIsTravIdCurrent(pNext) && - pObj->Level < l ) + (int)pObj->Level < l ) pObj->Level = l; } @@ -325,11 +325,11 @@ void Abc_FlowRetime_ConstrainConserv_back( Abc_Ntk_t * pNtk ) { { l = pNext->Level + (Abc_ObjIsNode(pObj) ? 1 : 0); if ( Abc_NodeIsTravIdCurrent(pNext) && - pObj->Level < l ) + (int)pObj->Level < l ) pObj->Level = l; } - if (pObj->Level + (Abc_ObjIsNode(pObj)?1:0) > pManMR->maxDelay) { + if ((int)pObj->Level + (Abc_ObjIsNode(pObj)?1:0) > pManMR->maxDelay) { FSET(pObj, BLOCK); } } @@ -347,7 +347,7 @@ void Abc_FlowRetime_ConstrainConserv_back( Abc_Ntk_t * pNtk ) { Abc_ObjForEachFanout( pObj, pNext, j ) { l = pNext->Level + (Abc_ObjIsNode(pObj) ? 1 : 0); if ( Abc_NodeIsTravIdCurrent(pNext) && - pObj->Level < l ) + (int)pObj->Level < l ) pObj->Level = l; } @@ -377,12 +377,12 @@ void Abc_FlowRetime_ConstrainConserv_back( Abc_Ntk_t * pNtk ) { Abc_ObjForEachFanout( pObj, pNext, j ) { l = pNext->Level + (Abc_ObjIsNode(pObj) ? 1 : 0); if ( Abc_NodeIsTravIdCurrent(pNext) && - pObj->Level < l ) + (int)pObj->Level < l ) pObj->Level = l; } // constrained? - if (pObj->Level > pManMR->maxDelay) { + if ((int)pObj->Level > pManMR->maxDelay) { FSET( pObj, CONSERVATIVE ); pManMR->nConservConstraints++; } else @@ -482,7 +482,7 @@ void Abc_FlowRetime_ConstrainExact_forw( Abc_Obj_t * pObj ) { if (!Abc_ObjIsLatch(pNext)) pNext->Level = MAX( pNext->Level, pReg->Level + (Abc_ObjIsNode(pReg)?1:0)); - if (pReg->Level == pManMR->maxDelay) { + if ((int)pReg->Level == pManMR->maxDelay) { Vec_PtrPush( FTIMEEDGES(pObj), pReg); pManMR->nExactConstraints++; } @@ -557,7 +557,7 @@ void Abc_FlowRetime_ConstrainExact_back( Abc_Obj_t * pObj ) { if (!Abc_ObjIsLatch(pNext)) pNext->Level = MAX( pNext->Level, pReg->Level + (Abc_ObjIsNode(pReg)?1:0)); - if (pReg->Level == pManMR->maxDelay) { + if ((int)pReg->Level == pManMR->maxDelay) { Vec_PtrPush( FTIMEEDGES(pObj), pReg); pManMR->nExactConstraints++; } |