mirror of https://github.com/YosysHQ/abc.git
Extending simulation interface.
This commit is contained in:
parent
5980562f28
commit
45cdd5acaa
|
|
@ -45645,15 +45645,16 @@ usage:
|
||||||
***********************************************************************/
|
***********************************************************************/
|
||||||
int Abc_CommandAbc9Cfs( Abc_Frame_t * pAbc, int argc, char ** argv )
|
int Abc_CommandAbc9Cfs( Abc_Frame_t * pAbc, int argc, char ** argv )
|
||||||
{
|
{
|
||||||
extern void Extra_CommandCfs( Gia_Man_t * pGia, int Limit, int Reps, int UnseenUse, int RareUse, int fReplaceRare, int fVerbose );
|
extern void Extra_CommandCfs( Gia_Man_t * pGia, int Limit, int Reps, int UnseenUse, int RareUse, int fReplaceRare, int fConstSim, int fVerbose );
|
||||||
int Limit = 0;
|
int Limit = 0;
|
||||||
int Reps = 1;
|
int Reps = 1;
|
||||||
int UnseenUse = 2;
|
int UnseenUse = 2;
|
||||||
int RareUse = 2;
|
int RareUse = 2;
|
||||||
int fReplaceRare= 0;
|
int fReplaceRare= 0;
|
||||||
|
int fConstSim = 0;
|
||||||
int c, fVerbose = 0;
|
int c, fVerbose = 0;
|
||||||
Extra_UtilGetoptReset();
|
Extra_UtilGetoptReset();
|
||||||
while ( ( c = Extra_UtilGetopt( argc, argv, "LNURrvh" ) ) != EOF )
|
while ( ( c = Extra_UtilGetopt( argc, argv, "LNURrcvh" ) ) != EOF )
|
||||||
{
|
{
|
||||||
switch ( c )
|
switch ( c )
|
||||||
{
|
{
|
||||||
|
|
@ -45704,6 +45705,9 @@ int Abc_CommandAbc9Cfs( Abc_Frame_t * pAbc, int argc, char ** argv )
|
||||||
case 'r':
|
case 'r':
|
||||||
fReplaceRare ^= 1;
|
fReplaceRare ^= 1;
|
||||||
break;
|
break;
|
||||||
|
case 'c':
|
||||||
|
fConstSim ^= 1;
|
||||||
|
break;
|
||||||
case 'v':
|
case 'v':
|
||||||
fVerbose ^= 1;
|
fVerbose ^= 1;
|
||||||
break;
|
break;
|
||||||
|
|
@ -45718,17 +45722,18 @@ int Abc_CommandAbc9Cfs( Abc_Frame_t * pAbc, int argc, char ** argv )
|
||||||
Abc_Print( -1, "Abc_CommandAbc9Cfs(): There is no AIG.\n" );
|
Abc_Print( -1, "Abc_CommandAbc9Cfs(): There is no AIG.\n" );
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
Extra_CommandCfs( pAbc->pGia, Limit, Reps, UnseenUse, RareUse, fReplaceRare, fVerbose );
|
Extra_CommandCfs( pAbc->pGia, Limit, Reps, UnseenUse, RareUse, fReplaceRare, fConstSim, fVerbose );
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
usage:
|
usage:
|
||||||
Abc_Print( -2, "usage: &cfs [-LNURrvh]\n" );
|
Abc_Print( -2, "usage: &cfs [-LNURrcvh]\n" );
|
||||||
Abc_Print( -2, "\t performs simulation\n" );
|
Abc_Print( -2, "\t performs simulation\n" );
|
||||||
Abc_Print( -2, "\t-L num : the limit on the number of occurrences [default = %d]\n", Limit );
|
Abc_Print( -2, "\t-L num : the limit on the number of occurrences [default = %d]\n", Limit );
|
||||||
Abc_Print( -2, "\t-N num : the number of repetions of each pattern [default = %d]\n", Reps );
|
Abc_Print( -2, "\t-N num : the number of repetions of each pattern [default = %d]\n", Reps );
|
||||||
Abc_Print( -2, "\t-U num : what to do with unseen patterns [default = %d]\n", UnseenUse );
|
Abc_Print( -2, "\t-U num : what to do with unseen patterns [default = %d]\n", UnseenUse );
|
||||||
Abc_Print( -2, "\t-R num : what to do with rare patterns [default = %d]\n", RareUse );
|
Abc_Print( -2, "\t-R num : what to do with rare patterns [default = %d]\n", RareUse );
|
||||||
Abc_Print( -2, "\t-r : toggle replacing rare patterns [default = %s]\n", fReplaceRare? "yes": "no" );
|
Abc_Print( -2, "\t-r : toggle replacing rare patterns [default = %s]\n", fReplaceRare? "yes": "no" );
|
||||||
|
Abc_Print( -2, "\t-c : toggle inserting constants [default = %s]\n", fConstSim? "yes": "no" );
|
||||||
Abc_Print( -2, "\t-v : toggle printing verbose information [default = %s]\n", fVerbose? "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");
|
Abc_Print( -2, "\t-h : print the command usage\n");
|
||||||
return 1;
|
return 1;
|
||||||
|
|
|
||||||
|
|
@ -48,7 +48,7 @@ ABC_NAMESPACE_IMPL_START
|
||||||
SeeAlso []
|
SeeAlso []
|
||||||
|
|
||||||
***********************************************************************/
|
***********************************************************************/
|
||||||
void Extra_CommandCfs( Gia_Man_t * pGia, int Limit, int Reps, int UnseenUse, int RareUse, int fReplaceRare, int fVerbose )
|
void Extra_CommandCfs( Gia_Man_t * pGia, int Limit, int Reps, int UnseenUse, int RareUse, int fReplaceRare, int fConstSim, int fVerbose )
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue