Commit affb43e2 by Alan Mishchenko

Added switch to control duplication of logic after mapping.

parent 2becb24a
......@@ -16,6 +16,7 @@ src/ext/
src/xxx/
src/aig/au/
src/aig/ssm/
src/aig/ddb/
*~
*.orig
......
......@@ -4370,6 +4370,42 @@ SOURCE=.\src\aig\ssm\ssmSimulate.c
SOURCE=.\src\aig\ssm\ssmWrite.c
# End Source File
# End Group
# Begin Group "ddb"
# PROP Default_Filter ""
# Begin Source File
SOURCE=.\src\aig\ddb\ddb.c
# End Source File
# Begin Source File
SOURCE=.\src\aig\ddb\ddb.h
# End Source File
# Begin Source File
SOURCE=.\src\aig\ddb\ddbGarb.c
# End Source File
# Begin Source File
SOURCE=.\src\aig\ddb\ddbInt.h
# End Source File
# Begin Source File
SOURCE=.\src\aig\ddb\ddbMan.c
# End Source File
# Begin Source File
SOURCE=.\src\aig\ddb\ddbOper.c
# End Source File
# Begin Source File
SOURCE=.\src\aig\ddb\ddbReo.c
# End Source File
# Begin Source File
SOURCE=.\src\aig\ddb\ddbTable.c
# End Source File
# End Group
# End Group
# End Group
# Begin Group "Header Files"
......
......@@ -12682,7 +12682,7 @@ int Abc_CommandIf( Abc_Frame_t * pAbc, int argc, char ** argv )
fLutMux = 0;
Extra_UtilGetoptReset();
while ( ( c = Extra_UtilGetopt( argc, argv, "KCFADEqaflepmrsdbugvh" ) ) != EOF )
while ( ( c = Extra_UtilGetopt( argc, argv, "KCFADEqaflepmrsdbugovh" ) ) != EOF )
{
switch ( c )
{
......@@ -12793,6 +12793,9 @@ int Abc_CommandIf( Abc_Frame_t * pAbc, int argc, char ** argv )
case 'g':
pPars->fDelayOpt ^= 1;
break;
case 'o':
pPars->fUseBuffs ^= 1;
break;
case 'v':
pPars->fVerbose ^= 1;
break;
......@@ -12949,7 +12952,7 @@ usage:
sprintf( LutSize, "library" );
else
sprintf( LutSize, "%d", pPars->nLutSize );
Abc_Print( -2, "usage: if [-KCFA num] [-DE float] [-qarlepmsdbugvh]\n" );
Abc_Print( -2, "usage: if [-KCFA num] [-DE float] [-qarlepmsdbugovh]\n" );
Abc_Print( -2, "\t performs FPGA technology mapping of the network\n" );
Abc_Print( -2, "\t-K num : the number of LUT inputs (2 < num < %d) [default = %s]\n", IF_MAX_LUTSIZE+1, LutSize );
Abc_Print( -2, "\t-C num : the max number of priority cuts (0 < num < 2^12) [default = %d]\n", pPars->nCutsMax );
......@@ -12970,6 +12973,7 @@ usage:
Abc_Print( -2, "\t-b : toggles the use of one special feature [default = %s]\n", pPars->fUseBat? "yes": "no" );
Abc_Print( -2, "\t-u : toggles the use of MUXes along with LUTs [default = %s]\n", fLutMux? "yes": "no" );
Abc_Print( -2, "\t-g : toggles global delay optimization [default = %s]\n", pPars->fDelayOpt? "yes": "no" );
Abc_Print( -2, "\t-o : toggles using buffers to decouple combinational outputs [default = %s]\n", pPars->fUseBuffs? "yes": "no" );
Abc_Print( -2, "\t-v : toggles verbose output [default = %s]\n", pPars->fVerbose? "yes": "no" );
Abc_Print( -2, "\t-h : prints the command usage\n");
return 1;
......
......@@ -282,7 +282,7 @@ Abc_Ntk_t * Abc_NtkFromIf( If_Man_t * pIfMan, Abc_Ntk_t * pNtk )
if ( pIfMan->pPars->fUseBdds )
Abc_NtkBddReorder( pNtkNew, 0 );
// decouple the PO driver nodes to reduce the number of levels
nDupGates = Abc_NtkLogicMakeSimpleCos( pNtkNew, 1 );
nDupGates = Abc_NtkLogicMakeSimpleCos( pNtkNew, !pIfMan->pPars->fUseBuffs );
if ( nDupGates && pIfMan->pPars->fVerbose )
printf( "Duplicated %d gates to decouple the CO drivers.\n", nDupGates );
return pNtkNew;
......
......@@ -95,6 +95,7 @@ struct If_Par_t_
int fSeqMap; // sequential mapping
int fBidec; // use bi-decomposition
int fUseBat; // use one specialized feature
int fUseBuffs; // use buffers to decouple outputs
int fVerbose; // the verbosity flag
// internal parameters
int fDelayOpt; // special delay optimization
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment