summaryrefslogtreecommitdiffstats
path: root/src/opt
diff options
context:
space:
mode:
authorAlan Mishchenko <alanmi@berkeley.edu>2016-01-05 16:40:00 -0800
committerAlan Mishchenko <alanmi@berkeley.edu>2016-01-05 16:40:00 -0800
commitc158dd5a94294e297bd8561b72897bcfb53f03f9 (patch)
treec56a25525b6564a9d9d5f1f63c20fca027921739 /src/opt
parent19ad75f125e5a99014d8549233f1d120acea9677 (diff)
downloadabc-c158dd5a94294e297bd8561b72897bcfb53f03f9.tar.gz
abc-c158dd5a94294e297bd8561b72897bcfb53f03f9.tar.bz2
abc-c158dd5a94294e297bd8561b72897bcfb53f03f9.zip
Migrating to using 32-bit timing representation in &nf.
Diffstat (limited to 'src/opt')
-rw-r--r--src/opt/sfm/sfmLib.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/opt/sfm/sfmLib.c b/src/opt/sfm/sfmLib.c
index 1dffb164..0bf7c4a0 100644
--- a/src/opt/sfm/sfmLib.c
+++ b/src/opt/sfm/sfmLib.c
@@ -290,14 +290,14 @@ void Sfm_LibTruth8Two( Mio_Cell2_t * pCellBot, Mio_Cell2_t * pCellTop, int InTop
***********************************************************************/
void Sfm_LibCellProfile( Mio_Cell2_t * pCellBot, Mio_Cell2_t * pCellTop, int InTop, int nFanins, int * Perm, int * pProf )
{
- int i, DelayAdd = (int)(pCellTop ? pCellTop->Delays[InTop] : 0);
+ int i, DelayAdd = pCellTop ? pCellTop->iDelays[InTop] : 0;
for ( i = 0; i < nFanins; i++ )
if ( Perm[i] < (int)pCellBot->nFanins )
- pProf[i] = (int)pCellBot->Delays[Perm[i]] + DelayAdd;
+ pProf[i] = pCellBot->iDelays[Perm[i]] + DelayAdd;
else if ( Perm[i] < (int)pCellBot->nFanins + InTop )
- pProf[i] = (int)pCellTop->Delays[Perm[i] - (int)pCellBot->nFanins];
+ pProf[i] = pCellTop->iDelays[Perm[i] - (int)pCellBot->nFanins];
else // if ( Perm[i] >= (int)pCellBot->nFanins + InTop )
- pProf[i] = (int)pCellTop->Delays[Perm[i] - (int)pCellBot->nFanins + 1];
+ pProf[i] = pCellTop->iDelays[Perm[i] - (int)pCellBot->nFanins + 1];
}
static inline int Sfm_LibNewIsContained( Sfm_Fun_t * pObj, int * pProf, int Area, int * pProfNew, int nFanins )
{