mirror of https://github.com/YosysHQ/abc.git
[CEC][SimGen][Experiment ID] Added experiment ID option to test different experiments with simgen
This commit is contained in:
parent
070ae52a46
commit
cbd4456805
|
|
@ -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 )
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue