summaryrefslogtreecommitdiffstats
path: root/src/base
diff options
context:
space:
mode:
authorAlan Mishchenko <alanmi@berkeley.edu>2016-04-04 08:43:22 -0700
committerAlan Mishchenko <alanmi@berkeley.edu>2016-04-04 08:43:22 -0700
commit4a954c1b23aad9b7189dd76164d3e5a61ca6b39f (patch)
tree330bc38a4b018c110cb4ae2214b8417e411653d7 /src/base
parente0ad9de7ea8c8fd34072a712f4579767b9055d6e (diff)
downloadabc-4a954c1b23aad9b7189dd76164d3e5a61ca6b39f.tar.gz
abc-4a954c1b23aad9b7189dd76164d3e5a61ca6b39f.tar.bz2
abc-4a954c1b23aad9b7189dd76164d3e5a61ca6b39f.zip
Improvements to delay-optimization in &satlut.
Diffstat (limited to 'src/base')
-rw-r--r--src/base/abci/abc.c20
1 files changed, 15 insertions, 5 deletions
diff --git a/src/base/abci/abc.c b/src/base/abci/abc.c
index 5c3a573a..771f2028 100644
--- a/src/base/abci/abc.c
+++ b/src/base/abci/abc.c
@@ -34827,11 +34827,11 @@ usage:
***********************************************************************/
int Abc_CommandAbc9SatLut( Abc_Frame_t * pAbc, int argc, char ** argv )
{
- extern void Gia_ManLutSat( Gia_Man_t * p, int nNumber, int nBTLimit, int DelayMax, int fDelay, int fReverse, int fVeryVerbose, int fVerbose );
- int c, nNumber = 64, nBTLimit = 500, DelayMax = 0;
+ extern void Gia_ManLutSat( Gia_Man_t * p, int nNumber, int nBTLimit, int DelayMax, int nEdges, int fDelay, int fReverse, int fVeryVerbose, int fVerbose );
+ int c, nNumber = 64, nBTLimit = 500, DelayMax = 0, nEdges = 0;
int fDelay = 0, fReverse = 0, fVeryVerbose = 0, fVerbose = 0;
Extra_UtilGetoptReset();
- while ( ( c = Extra_UtilGetopt( argc, argv, "NCDdrwvh" ) ) != EOF )
+ while ( ( c = Extra_UtilGetopt( argc, argv, "NCDQdrwvh" ) ) != EOF )
{
switch ( c )
{
@@ -34867,6 +34867,15 @@ int Abc_CommandAbc9SatLut( Abc_Frame_t * pAbc, int argc, char ** argv )
DelayMax = atoi(argv[globalUtilOptind]);
globalUtilOptind++;
break;
+ case 'Q':
+ if ( globalUtilOptind >= argc )
+ {
+ Abc_Print( -1, "Command line switch \"-Q\" should be followed by a positive integer.\n" );
+ goto usage;
+ }
+ nEdges = atoi(argv[globalUtilOptind]);
+ globalUtilOptind++;
+ break;
case 'd':
fDelay ^= 1;
break;
@@ -34898,15 +34907,16 @@ int Abc_CommandAbc9SatLut( Abc_Frame_t * pAbc, int argc, char ** argv )
if ( Gia_ManLutSizeMax(pAbc->pGia) > 4 )
Abc_Print( 0, "Current AIG is mapped into %d-LUTs (only 4-LUT mapping is currently supported).\n", Gia_ManLutSizeMax(pAbc->pGia) );
else
- Gia_ManLutSat( pAbc->pGia, nNumber, nBTLimit, DelayMax, fDelay, fReverse, fVeryVerbose, fVerbose );
+ Gia_ManLutSat( pAbc->pGia, nNumber, nBTLimit, DelayMax, nEdges, fDelay, fReverse, fVeryVerbose, fVerbose );
return 0;
usage:
- Abc_Print( -2, "usage: &satlut [-NCD num] [-drwvh]\n" );
+ Abc_Print( -2, "usage: &satlut [-NCDQ num] [-drwvh]\n" );
Abc_Print( -2, "\t performs SAT-based remapping of the 4-LUT network\n" );
Abc_Print( -2, "\t-N num : the limit on the number of AIG nodes in the window [default = %d]\n", nNumber );
Abc_Print( -2, "\t-C num : the limit on the number of conflicts [default = %d]\n", nBTLimit );
Abc_Print( -2, "\t-D num : the user-specified required times at the outputs [default = %d]\n", DelayMax );
+ Abc_Print( -2, "\t-Q num : the maximum number of edges [default = %d]\n", nEdges );
Abc_Print( -2, "\t-d : toggles delay optimization [default = %s]\n", fDelay? "yes": "no" );
Abc_Print( -2, "\t-r : toggles using reverse search [default = %s]\n", fReverse? "yes": "no" );
Abc_Print( -2, "\t-v : toggles verbose output [default = %s]\n", fVerbose? "yes": "no" );