diff options
author | Alan Mishchenko <alanmi@berkeley.edu> | 2014-09-21 21:40:34 -0400 |
---|---|---|
committer | Alan Mishchenko <alanmi@berkeley.edu> | 2014-09-21 21:40:34 -0400 |
commit | 15f5428989298ffc05b3ea341ca0b87739e973bc (patch) | |
tree | 84e8dd9ca5a848f96cff4e05a093148a9a2de307 /src/base/abci/abc.c | |
parent | 8f3dd475ee438460991ff40d31de9b289bb58c28 (diff) | |
download | abc-15f5428989298ffc05b3ea341ca0b87739e973bc.tar.gz abc-15f5428989298ffc05b3ea341ca0b87739e973bc.tar.bz2 abc-15f5428989298ffc05b3ea341ca0b87739e973bc.zip |
Adding switch to enable SOP balancing in '&flow2'.
Diffstat (limited to 'src/base/abci/abc.c')
-rw-r--r-- | src/base/abci/abc.c | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/src/base/abci/abc.c b/src/base/abci/abc.c index 3eb0b31c..b6f8c5e4 100644 --- a/src/base/abci/abc.c +++ b/src/base/abci/abc.c @@ -30978,12 +30978,13 @@ usage: ***********************************************************************/ int Abc_CommandAbc9Flow2( Abc_Frame_t * pAbc, int argc, char ** argv ) { - extern void Gia_ManPerformFlow2( int fIsMapped, int nAnds, int nLevels, int nLutSize, int nCutNum, int fVerbose ); + extern void Gia_ManPerformFlow2( int fIsMapped, int nAnds, int nLevels, int nLutSize, int nCutNum, int fBalance, int fVerbose ); int nLutSize = 6; int nCutNum = 8; + int fBalance = 0; int c, fVerbose = 0; Extra_UtilGetoptReset(); - while ( ( c = Extra_UtilGetopt( argc, argv, "KCvh" ) ) != EOF ) + while ( ( c = Extra_UtilGetopt( argc, argv, "KCbvh" ) ) != EOF ) { switch ( c ) { @@ -31009,6 +31010,9 @@ int Abc_CommandAbc9Flow2( Abc_Frame_t * pAbc, int argc, char ** argv ) if ( nCutNum < 0 ) goto usage; break; + case 'b': + fBalance ^= 1; + break; case 'v': fVerbose ^= 1; break; @@ -31023,14 +31027,15 @@ int Abc_CommandAbc9Flow2( Abc_Frame_t * pAbc, int argc, char ** argv ) Abc_Print( -1, "Abc_CommandAbc9Flow2(): There is no AIG.\n" ); return 1; } - Gia_ManPerformFlow2( Gia_ManHasMapping(pAbc->pGia), Gia_ManAndNum(pAbc->pGia), Gia_ManLevelNum(pAbc->pGia), nLutSize, nCutNum, fVerbose ); + Gia_ManPerformFlow2( Gia_ManHasMapping(pAbc->pGia), Gia_ManAndNum(pAbc->pGia), Gia_ManLevelNum(pAbc->pGia), nLutSize, nCutNum, fBalance, fVerbose ); return 0; usage: - Abc_Print( -2, "usage: &flow2 [-KC num] [-vh]\n" ); + Abc_Print( -2, "usage: &flow2 [-KC num] [-bvh]\n" ); Abc_Print( -2, "\t integration optimization and mapping flow\n" ); Abc_Print( -2, "\t-K num : the number of LUT inputs (LUT size) [default = %d]\n", nLutSize ); Abc_Print( -2, "\t-C num : the number of cuts at a node [default = %d]\n", nCutNum ); + Abc_Print( -2, "\t-b : toggle using SOP balancing during synthesis [default = %s]\n", fBalance? "yes": "no" ); Abc_Print( -2, "\t-v : toggle printing verbose information [default = %s]\n", fVerbose? "yes": "no" ); Abc_Print( -2, "\t-h : print the command usage\n"); return 1; |