summaryrefslogtreecommitdiffstats
path: root/src/base
diff options
context:
space:
mode:
authorAlan Mishchenko <alanmi@berkeley.edu>2012-08-28 19:42:53 -0700
committerAlan Mishchenko <alanmi@berkeley.edu>2012-08-28 19:42:53 -0700
commit5ff49be9931a7be3037812230f5d9eb085f59593 (patch)
tree1f1ec505e5f527239ca078b886d5b1bf9d446542 /src/base
parent9b02fe59bdf1437c6de99c7dad348f3e18a19f10 (diff)
downloadabc-5ff49be9931a7be3037812230f5d9eb085f59593.tar.gz
abc-5ff49be9931a7be3037812230f5d9eb085f59593.tar.bz2
abc-5ff49be9931a7be3037812230f5d9eb085f59593.zip
Ensured that SC mapped network is always in a topo order.
Diffstat (limited to 'src/base')
-rw-r--r--src/base/abci/abc.c15
1 files changed, 14 insertions, 1 deletions
diff --git a/src/base/abci/abc.c b/src/base/abci/abc.c
index c192b809..d3e3357d 100644
--- a/src/base/abci/abc.c
+++ b/src/base/abci/abc.c
@@ -13374,7 +13374,14 @@ int Abc_CommandMap( Abc_Frame_t * pAbc, int argc, char ** argv )
}
if ( fSweep )
+ {
Abc_NtkFraigSweep( pNtkRes, 0, 0, 0, 0 );
+ if ( Abc_NtkHasMapping(pNtkRes) )
+ {
+ pNtkRes = Abc_NtkDupDfs( pNtk = pNtkRes );
+ Abc_NtkDelete( pNtk );
+ }
+ }
// replace the current network
Abc_FrameReplaceCurrentNetwork( pAbc, pNtkRes );
@@ -13526,8 +13533,14 @@ int Abc_CommandAmap( Abc_Frame_t * pAbc, int argc, char ** argv )
}
if ( fSweep )
+ {
Abc_NtkFraigSweep( pNtkRes, 0, 0, 0, 0 );
-
+ if ( Abc_NtkHasMapping(pNtkRes) )
+ {
+ pNtkRes = Abc_NtkDupDfs( pNtk = pNtkRes );
+ Abc_NtkDelete( pNtk );
+ }
+ }
// replace the current network
Abc_FrameReplaceCurrentNetwork( pAbc, pNtkRes );
return 0;