From 5ff49be9931a7be3037812230f5d9eb085f59593 Mon Sep 17 00:00:00 2001 From: Alan Mishchenko Date: Tue, 28 Aug 2012 19:42:53 -0700 Subject: Ensured that SC mapped network is always in a topo order. --- src/base/abci/abc.c | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'src/base') 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; -- cgit v1.2.3