From a8a08035f575545d660612ae77b58ef620fba67f Mon Sep 17 00:00:00 2001 From: Alan Mishchenko Date: Thu, 6 Mar 2014 21:48:15 -0800 Subject: Changes to LUT mappers. --- src/base/abci/abc.c | 24 ++++++++++++++++++------ 1 file changed, 18 insertions(+), 6 deletions(-) (limited to 'src/base/abci') diff --git a/src/base/abci/abc.c b/src/base/abci/abc.c index 109f5ce3..103764ab 100644 --- a/src/base/abci/abc.c +++ b/src/base/abci/abc.c @@ -15531,14 +15531,25 @@ usage: ***********************************************************************/ int Abc_CommandDsdPs( Abc_Frame_t * pAbc, int argc, char ** argv ) { - int c, fPrintLib = 0; + int c, Number = 0, fVerbose = 0; Extra_UtilGetoptReset(); - while ( ( c = Extra_UtilGetopt( argc, argv, "ph" ) ) != EOF ) + while ( ( c = Extra_UtilGetopt( argc, argv, "Nvh" ) ) != EOF ) { switch ( c ) { - case 'p': - fPrintLib ^= 1; + case 'N': + if ( globalUtilOptind >= argc ) + { + Abc_Print( -1, "Command line switch \"-N\" should be followed by a floating point number.\n" ); + goto usage; + } + Number = atoi(argv[globalUtilOptind]); + globalUtilOptind++; + if ( Number < 0 ) + goto usage; + break; + case 'v': + fVerbose ^= 1; break; case 'h': goto usage; @@ -15551,12 +15562,13 @@ int Abc_CommandDsdPs( Abc_Frame_t * pAbc, int argc, char ** argv ) Abc_Print( 1, "The DSD manager is not started.\n" ); return 0; } - If_DsdManPrint( (If_DsdMan_t *)Abc_FrameReadManDsd(), NULL, 0 ); + If_DsdManPrint( (If_DsdMan_t *)Abc_FrameReadManDsd(), NULL, Number, fVerbose ); return 0; usage: - Abc_Print( -2, "usage: dsd_ps [-h]\n" ); + Abc_Print( -2, "usage: dsd_ps [-N num] [-vh]\n" ); Abc_Print( -2, "\t prints statistics of DSD manager\n" ); + Abc_Print( -2, "\t-v : toggles verbose output [default = %s]\n", fVerbose? "yes": "no" ); Abc_Print( -2, "\t-h : print the command usage\n"); return 1; } -- cgit v1.2.3