summaryrefslogtreecommitdiffstats
path: root/src/aig
diff options
context:
space:
mode:
authorAlan Mishchenko <alanmi@berkeley.edu>2014-04-11 12:20:36 -0700
committerAlan Mishchenko <alanmi@berkeley.edu>2014-04-11 12:20:36 -0700
commit865526f88094140c458a244fc8bb279bfa154fc1 (patch)
tree79af4109829c87a5a20a8634ccf6084644baee16 /src/aig
parente855eaa080c0ac1162ff8a8b5d227dce0c456997 (diff)
downloadabc-865526f88094140c458a244fc8bb279bfa154fc1.tar.gz
abc-865526f88094140c458a244fc8bb279bfa154fc1.tar.bz2
abc-865526f88094140c458a244fc8bb279bfa154fc1.zip
New feature to optimize delay during mapping.
Diffstat (limited to 'src/aig')
-rw-r--r--src/aig/gia/giaIf.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/aig/gia/giaIf.c b/src/aig/gia/giaIf.c
index 44012454..1295be60 100644
--- a/src/aig/gia/giaIf.c
+++ b/src/aig/gia/giaIf.c
@@ -1187,7 +1187,7 @@ int Gia_ManFromIfLogicFindLut( If_Man_t * pIfMan, Gia_Man_t * pNew, If_Cut_t * p
int nVarsS = 0, pVarsS[IF_MAX_FUNC_LUTSIZE];
unsigned uSetNew, uSetOld;
int RetValue, RetValue2, k;
- char * pPerm = If_CutDsdPerm( pIfMan, pCutBest );
+ char * pPerm;
if ( Vec_IntSize(vLeaves) <= nLutSize )
{
RetValue = Gia_ManFromIfLogicCreateLut( pNew, If_CutTruthW(pIfMan, pCutBest), vLeaves, vCover, vMapping, vMapping2 );
@@ -1208,6 +1208,7 @@ int Gia_ManFromIfLogicFindLut( If_Man_t * pIfMan, Gia_Man_t * pNew, If_Cut_t * p
uSetOld = If_DsdManCheckXY( pIfMan->pIfDsdMan, If_CutDsdLit(pIfMan, pCutBest), nLutSize, 1, 0, 1, 0 );
// remap bound set
uSetNew = 0;
+ pPerm = If_CutDsdPerm( pIfMan, pCutBest );
for ( k = 0; k < If_CutLeaveNum(pCutBest); k++ )
{
int iVar = Abc_Lit2Var((int)pPerm[k]);