97 char * pFileName = NULL;
115 printf(
"Abc_CommandReadVer(): Input file name should be given on the command line.\n" );
120 if ( (pFile = fopen( pFileName,
"r" )) == NULL )
122 Abc_Print( 1,
"Cannot open input file \"%s\". ", pFileName );
124 Abc_Print( 1,
"Did you mean \"%s\"?", pFileName );
135 Abc_Print( -2,
"usage: %%read_ver [-vh] <file_name>\n" );
136 Abc_Print( -2,
"\t reads word-level design from Verilog file\n" );
137 Abc_Print( -2,
"\t-v : toggle printing verbose information [default = %s]\n", fVerbose?
"yes":
"no" );
138 Abc_Print( -2,
"\t-h : print the command usage\n");
156 char * pFileName = NULL;
174 Abc_Print( 1,
"Abc_CommandWriteVer(): There is no current design.\n" );
183 printf(
"Output file name should be given on the command line.\n" );
189 Abc_Print( -2,
"usage: %%write_ver [-vh]\n" );
190 Abc_Print( -2,
"\t writes the design into a file\n" );
191 Abc_Print( -2,
"\t-v : toggle printing verbose information [default = %s]\n", fVerbose?
"yes":
"no" );
192 Abc_Print( -2,
"\t-h : print the command usage\n");
240 Abc_Print( 1,
"Abc_CommandPs(): There is no current design.\n" );
250 Abc_Print( -2,
"usage: %%ps [-madvh]\n" );
251 Abc_Print( -2,
"\t prints statistics\n" );
252 Abc_Print( -2,
"\t-m : toggle printing multipliers [default = %s]\n", fShowMulti?
"yes":
"no" );
253 Abc_Print( -2,
"\t-a : toggle printing adders [default = %s]\n", fShowAdder?
"yes":
"no" );
254 Abc_Print( -2,
"\t-d : toggle printing distrubition [default = %s]\n", fDistrib?
"yes":
"no" );
255 Abc_Print( -2,
"\t-v : toggle printing verbose information [default = %s]\n", fVerbose?
"yes":
"no" );
256 Abc_Print( -2,
"\t-h : print the command usage\n");
276 int c, fMulti = 0, fVerbose = 0;
296 Abc_Print( 1,
"Abc_CommandBlast(): There is no current design.\n" );
302 if ( vBoxIds == NULL )
303 Abc_Print( 1,
"Warning: There is no multipliers in the design.\n" );
310 Abc_Print( 1,
"Abc_CommandBlast(): Bit-blasting has failed.\n" );
316 Abc_Print( -2,
"usage: %%blast [-mvh]\n" );
317 Abc_Print( -2,
"\t performs bit-blasting of the word-level design\n" );
318 Abc_Print( -2,
"\t-m : toggle creating boxes for all multipliers in the design [default = %s]\n", fMulti?
"yes":
"no" );
319 Abc_Print( -2,
"\t-v : toggle printing verbose information [default = %s]\n", fVerbose?
"yes":
"no" );
320 Abc_Print( -2,
"\t-h : print the command usage\n");
355 Abc_Print( 1,
"Abc_CommandBlast(): There is no current design.\n" );
364 Abc_Print( -2,
"usage: %%test [-vh]\n" );
365 Abc_Print( -2,
"\t experiments with word-level networks\n" );
366 Abc_Print( -2,
"\t-v : toggle printing verbose information [default = %s]\n", fVerbose?
"yes":
"no" );
367 Abc_Print( -2,
"\t-h : print the command usage\n");
Vec_Int_t * Wlc_NtkCollectMultipliers(Wlc_Ntk_t *p)
Wlc_Ntk_t * Wlc_NtkAbstractNodes(Wlc_Ntk_t *pNtk, Vec_Int_t *vNodes)
void Wlc_NtkPrintStats(Wlc_Ntk_t *p, int fDistrib, int fVerbose)
typedefABC_NAMESPACE_IMPL_START struct Vec_Int_t_ Vec_Int_t
DECLARATIONS ///.
static void Wlc_AbcFreeNtk(Abc_Frame_t *pAbc)
static void Wlc_AbcUpdateNtk(Abc_Frame_t *pAbc, Wlc_Ntk_t *pNtk)
void Cmd_CommandAdd(Abc_Frame_t *pAbc, const char *sGroup, const char *sName, Cmd_CommandFuncType pFunc, int fChanges)
static int Abc_CommandWriteVer(Abc_Frame_t *pAbc, int argc, char **argv)
void Wlc_WriteVer(Wlc_Ntk_t *p, char *pFileName)
typedefABC_NAMESPACE_HEADER_START struct Abc_Frame_t_ Abc_Frame_t
INCLUDES ///.
static int Abc_CommandTest(Abc_Frame_t *pAbc, int argc, char **argv)
void Wlc_NtkPrintNodes(Wlc_Ntk_t *p, int Type)
#define ABC_NAMESPACE_IMPL_END
void Wlc_NtkFree(Wlc_Ntk_t *p)
static void Vec_IntFreeP(Vec_Int_t **p)
static void Abc_Print(int level, const char *format,...)
#define ABC_NAMESPACE_IMPL_START
static int Abc_CommandBlast(Abc_Frame_t *pAbc, int argc, char **argv)
Gia_Man_t * Wlc_NtkBitBlast(Wlc_Ntk_t *p, Vec_Int_t *vBoxIds)
Wlc_Ntk_t * Wlc_NtkUifNodePairs(Wlc_Ntk_t *pNtk, Vec_Int_t *vPairs)
void Wlc_Init(Abc_Frame_t *pAbc)
FUNCTION DEFINITIONS ///.
void Abc_FrameUpdateGia(Abc_Frame_t *pAbc, Gia_Man_t *pNew)
void Wlc_End(Abc_Frame_t *pAbc)
static int Abc_CommandPs(Abc_Frame_t *pAbc, int argc, char **argv)
static ABC_NAMESPACE_IMPL_START int Abc_CommandReadVer(Abc_Frame_t *pAbc, int argc, char **argv)
DECLARATIONS ///.
Wlc_Ntk_t * Wlc_ReadVer(char *pFileName)
static Wlc_Ntk_t * Wlc_AbcGetNtk(Abc_Frame_t *pAbc)