[CEC][SimGen][CLI] Removed option of nMaxStep since it was unused

This commit is contained in:
Carmine50 2024-12-19 18:12:28 +01:00
parent 30af6f9868
commit b999084ade
3 changed files with 2 additions and 16 deletions

View File

@ -39198,7 +39198,7 @@ int Abc_CommandAbc9SimGen( Abc_Frame_t * pAbc, int argc, char ** argv )
int c;
Cec_SimGenSetParDefault( pPars );
Extra_UtilGetoptReset();
while ( ( c = Extra_UtilGetopt( argc, argv, "EOSstiwvV" ) ) != EOF )
while ( ( c = Extra_UtilGetopt( argc, argv, "EOStiwvV" ) ) != EOF )
{
switch ( c )
{
@ -39235,17 +39235,6 @@ int Abc_CommandAbc9SimGen( Abc_Frame_t * pAbc, int argc, char ** argv )
if ( pPars->bitwidthSim <= 0 )
goto usage;
break;
case 's':
if ( globalUtilOptind >= argc )
{
Abc_Print( -1, "Command line switch \"-s\" should be followed by an integer.\n" );
goto usage;
}
pPars->nMaxStep = atoi(argv[globalUtilOptind]);
globalUtilOptind++;
if ( pPars->nMaxStep <= 0 )
goto usage;
break;
case 't':
if ( globalUtilOptind >= argc )
{
@ -39254,7 +39243,7 @@ int Abc_CommandAbc9SimGen( Abc_Frame_t * pAbc, int argc, char ** argv )
}
pPars->timeOutSim = atof(argv[globalUtilOptind]);
globalUtilOptind++;
if ( pPars->nMaxStep <= 0 )
if ( pPars->timeOutSim <= 0 )
goto usage;
break;
case 'i':
@ -39303,7 +39292,6 @@ usage:
Abc_Print( -2, "\t-E num : the experiment ID for SimGen [default = %d]\n", pPars->expId );
Abc_Print( -2, "\t-O num : the bitwidth of the output gold [default = %d]\n", pPars->bitwidthOutgold );
Abc_Print( -2, "\t-S num : the bitwidth of the simulation vectors [default = %d]\n", pPars->bitwidthSim );
Abc_Print( -2, "\t-s num : the maximum number of SimGen steps [default = %d]\n", pPars->nMaxStep );
Abc_Print( -2, "\t-t num : the timeout value after which Smart Simulation Pattern Generation terminates [default = %.0f]\n", pPars->timeOutSim);
Abc_Print( -2, "\t-i num : the maximum number of iterations [default = %d]\n", pPars->nMaxIter );
Abc_Print( -2, "\t-w : activates the watchlist feature [default = %d]\n", pPars->fUseWatchlist);

View File

@ -210,7 +210,6 @@ struct Cec_ParSimGen_t_
int expId; // experiment ID for SimGen
int bitwidthOutgold; // bitwidth of the output gold
int bitwidthSim; // bitwidth of the simulation vectors
int nMaxStep; // maximum number of SimGen steps
int nMaxIter; // maximum number of iterations
char * outGold; // data containing outgold
float timeOutSim; // timeout for simulation

View File

@ -244,7 +244,6 @@ void Cec_SimGenSetParDefault( Cec_ParSimGen_t * pPars )
pPars->bitwidthOutgold = 2; // bitwidth of the output golden model
pPars->bitwidthSim = 31; // bitwidth of the simulation vectors
pPars->expId = 1; // experiment ID
pPars->nMaxStep = 20; // the maximum number of steps
pPars->nMaxIter = -1; // the maximum number of iterations
pPars->timeOutSim = 1000.0; // the timeout for simulation in sec
pPars->fUseWatchlist = 0; // use watchlist