[CEC][SimGen][Experiment ID] Added experiment ID option to test different experiments with simgen

This commit is contained in:
Carmine50 2024-12-18 19:53:44 +01:00
parent 070ae52a46
commit cbd4456805
2 changed files with 13 additions and 1 deletions

View File

@ -39198,10 +39198,21 @@ int Abc_CommandAbc9SimGen( Abc_Frame_t * pAbc, int argc, char ** argv )
int c;
Cec_SimGenSetParDefault( pPars );
Extra_UtilGetoptReset();
while ( ( c = Extra_UtilGetopt( argc, argv, "OSstiwvV" ) ) != EOF )
while ( ( c = Extra_UtilGetopt( argc, argv, "EOSstiwvV" ) ) != EOF )
{
switch ( c )
{
case 'E':
if ( globalUtilOptind >= argc )
{
Abc_Print( -1, "Command line switch \"-E\" should be followed by an integer.\n" );
goto usage;
}
pPars->expId = atoi(argv[globalUtilOptind]);
globalUtilOptind++;
if ( pPars->expId < 0 )
goto usage;
break;
case 'O':
if ( globalUtilOptind >= argc )
{

View File

@ -207,6 +207,7 @@ struct Cec_ParSimGen_t_
{
int fVerbose; // verbose flag
int fVeryVerbose; // verbose flag
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