summaryrefslogtreecommitdiffstats
path: root/src/base
diff options
context:
space:
mode:
authorAlan Mishchenko <alanmi@berkeley.edu>2015-10-13 18:48:38 -0700
committerAlan Mishchenko <alanmi@berkeley.edu>2015-10-13 18:48:38 -0700
commitb5e0b7d4fcdf81e9d9ba896d087a4981e336603e (patch)
tree85dab28aca9904e20d80dba9c6185c7df8bbbb9c /src/base
parent9df63f529175dba9300ada4e02897b5178235477 (diff)
downloadabc-b5e0b7d4fcdf81e9d9ba896d087a4981e336603e.tar.gz
abc-b5e0b7d4fcdf81e9d9ba896d087a4981e336603e.tar.bz2
abc-b5e0b7d4fcdf81e9d9ba896d087a4981e336603e.zip
Experiments with precomputation and matching.
Diffstat (limited to 'src/base')
-rw-r--r--src/base/abci/abc.c36
1 files changed, 20 insertions, 16 deletions
diff --git a/src/base/abci/abc.c b/src/base/abci/abc.c
index cbfb7b31..bb6e4aa7 100644
--- a/src/base/abci/abc.c
+++ b/src/base/abci/abc.c
@@ -5160,7 +5160,7 @@ int Abc_CommandMfs3( Abc_Frame_t * pAbc, int argc, char ** argv )
// set defaults
Sfm_ParSetDefault3( pPars );
Extra_UtilGetoptReset();
- while ( ( c = Extra_UtilGetopt( argc, argv, "OIFXMLCNdaovwh" ) ) != EOF )
+ while ( ( c = Extra_UtilGetopt( argc, argv, "OIFLHMCNdazovwh" ) ) != EOF )
{
switch ( c )
{
@@ -5200,37 +5200,37 @@ int Abc_CommandMfs3( Abc_Frame_t * pAbc, int argc, char ** argv )
if ( pPars->nFanoutMax < 0 )
goto usage;
break;
- case 'X':
+ case 'L':
if ( globalUtilOptind >= argc )
{
- Abc_Print( -1, "Command line switch \"-X\" should be followed by an integer.\n" );
+ Abc_Print( -1, "Command line switch \"-L\" should be followed by an integer.\n" );
goto usage;
}
- pPars->nMffcMax = atoi(argv[globalUtilOptind]);
+ pPars->nMffcMin = atoi(argv[globalUtilOptind]);
globalUtilOptind++;
- if ( pPars->nMffcMax < 0 )
+ if ( pPars->nMffcMin < 0 )
goto usage;
break;
- case 'M':
+ case 'H':
if ( globalUtilOptind >= argc )
{
- Abc_Print( -1, "Command line switch \"-M\" should be followed by an integer.\n" );
+ Abc_Print( -1, "Command line switch \"-H\" should be followed by an integer.\n" );
goto usage;
}
- pPars->nWinSizeMax = atoi(argv[globalUtilOptind]);
+ pPars->nMffcMax = atoi(argv[globalUtilOptind]);
globalUtilOptind++;
- if ( pPars->nWinSizeMax < 0 )
+ if ( pPars->nMffcMax < 0 )
goto usage;
break;
- case 'L':
+ case 'M':
if ( globalUtilOptind >= argc )
{
- Abc_Print( -1, "Command line switch \"-L\" should be followed by an integer.\n" );
+ Abc_Print( -1, "Command line switch \"-M\" should be followed by an integer.\n" );
goto usage;
}
- pPars->nGrowthLevel = atoi(argv[globalUtilOptind]);
+ pPars->nWinSizeMax = atoi(argv[globalUtilOptind]);
globalUtilOptind++;
- if ( pPars->nGrowthLevel < -ABC_INFINITY || pPars->nGrowthLevel > ABC_INFINITY )
+ if ( pPars->nWinSizeMax < 0 )
goto usage;
break;
case 'C':
@@ -5258,6 +5258,9 @@ int Abc_CommandMfs3( Abc_Frame_t * pAbc, int argc, char ** argv )
case 'a':
pPars->fArea ^= 1;
break;
+ case 'z':
+ pPars->fZeroCost ^= 1;
+ break;
case 'o':
pPars->fRrOnly ^= 1;
break;
@@ -5288,17 +5291,18 @@ int Abc_CommandMfs3( Abc_Frame_t * pAbc, int argc, char ** argv )
return 0;
usage:
- Abc_Print( -2, "usage: mfs3 [-OIFXMLCN <num>] [-aovwh]\n" );
+ Abc_Print( -2, "usage: mfs3 [-OIFLHMCN <num>] [-azovwh]\n" );
Abc_Print( -2, "\t performs don't-care-based optimization of mapped networks\n" );
Abc_Print( -2, "\t-O <num> : the number of levels in the TFO cone (0 <= num) [default = %d]\n", pPars->nTfoLevMax );
Abc_Print( -2, "\t-I <num> : the number of levels in the TFI cone (1 <= num) [default = %d]\n", pPars->nTfiLevMax );
Abc_Print( -2, "\t-F <num> : the max number of fanouts to skip (1 <= num) [default = %d]\n", pPars->nFanoutMax );
- Abc_Print( -2, "\t-X <num> : the max size of max fanout-free cone (MFFC) [default = %d]\n", pPars->nMffcMax );
+ Abc_Print( -2, "\t-L <num> : the min size of max fanout-free cone (MFFC) [default = %d]\n", pPars->nMffcMin );
+ Abc_Print( -2, "\t-H <num> : the max size of max fanout-free cone (MFFC) [default = %d]\n", pPars->nMffcMax );
Abc_Print( -2, "\t-M <num> : the max node count of windows to consider (0 = no limit) [default = %d]\n", pPars->nWinSizeMax );
- Abc_Print( -2, "\t-L <num> : the max increase in node level after resynthesis (0 <= num) [default = %d]\n", pPars->nGrowthLevel );
Abc_Print( -2, "\t-C <num> : the max number of conflicts in one SAT run (0 = no limit) [default = %d]\n", pPars->nBTLimit );
Abc_Print( -2, "\t-N <num> : the max number of nodes to try (0 = all) [default = %d]\n", pPars->nNodesMax );
Abc_Print( -2, "\t-a : toggle minimizing area or area+edges [default = %s]\n", pPars->fArea? "area": "area+edges" );
+ Abc_Print( -2, "\t-z : toggle zero-cost replacements [default = %s]\n", pPars->fZeroCost? "yes": "no" );
Abc_Print( -2, "\t-o : toggle using old implementation for comparison [default = %s]\n", pPars->fRrOnly? "yes": "no" );
Abc_Print( -2, "\t-v : toggle printing optimization summary [default = %s]\n", pPars->fVerbose? "yes": "no" );
Abc_Print( -2, "\t-w : toggle printing detailed stats for each node [default = %s]\n", pPars->fVeryVerbose? "yes": "no" );