summaryrefslogtreecommitdiffstats
path: root/src/base
diff options
context:
space:
mode:
authorAlan Mishchenko <alanmi@berkeley.edu>2014-09-29 16:08:59 -0700
committerAlan Mishchenko <alanmi@berkeley.edu>2014-09-29 16:08:59 -0700
commit69b4a922867a317c105aa7e6470c9983e75783c9 (patch)
tree9d1d40604470025809873cedfe509e02b0a56af0 /src/base
parent4960af4e76d1c7f325d0cfa0b20940ea295328cc (diff)
downloadabc-69b4a922867a317c105aa7e6470c9983e75783c9.tar.gz
abc-69b4a922867a317c105aa7e6470c9983e75783c9.tar.bz2
abc-69b4a922867a317c105aa7e6470c9983e75783c9.zip
Adding options to &flow2.
Diffstat (limited to 'src/base')
-rw-r--r--src/base/abci/abc.c13
1 files changed, 9 insertions, 4 deletions
diff --git a/src/base/abci/abc.c b/src/base/abci/abc.c
index a418febd..6fc70f16 100644
--- a/src/base/abci/abc.c
+++ b/src/base/abci/abc.c
@@ -30997,14 +30997,15 @@ 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 fBalance, int fMinAve, int fVerbose );
+ extern void Gia_ManPerformFlow2( int fIsMapped, int nAnds, int nLevels, int nLutSize, int nCutNum, int fBalance, int fMinAve, int fUseMfs, int fVerbose );
int nLutSize = 6;
int nCutNum = 8;
int fBalance = 0;
int fMinAve = 0;
+ int fUseMfs = 0;
int c, fVerbose = 0;
Extra_UtilGetoptReset();
- while ( ( c = Extra_UtilGetopt( argc, argv, "KCbtvh" ) ) != EOF )
+ while ( ( c = Extra_UtilGetopt( argc, argv, "KCbtmvh" ) ) != EOF )
{
switch ( c )
{
@@ -31036,6 +31037,9 @@ int Abc_CommandAbc9Flow2( Abc_Frame_t * pAbc, int argc, char ** argv )
case 't':
fMinAve ^= 1;
break;
+ case 'm':
+ fUseMfs ^= 1;
+ break;
case 'v':
fVerbose ^= 1;
break;
@@ -31050,16 +31054,17 @@ 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, fBalance, fMinAve, fVerbose );
+ Gia_ManPerformFlow2( Gia_ManHasMapping(pAbc->pGia), Gia_ManAndNum(pAbc->pGia), Gia_ManLevelNum(pAbc->pGia), nLutSize, nCutNum, fBalance, fMinAve, fUseMfs, fVerbose );
return 0;
usage:
- Abc_Print( -2, "usage: &flow2 [-KC num] [-btvh]\n" );
+ Abc_Print( -2, "usage: &flow2 [-KC num] [-btmvh]\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-t : toggle minimizing average (not maximum) level [default = %s]\n", fMinAve? "yes": "no" );
+ Abc_Print( -2, "\t-m : toggle using \"mfs2\" in the script [default = %s]\n", fUseMfs? "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;