54 If_LibLut_t s_LutLib = {
"lutlib", 4, 0, {0,1,1,1,1}, {{0},{1},{1},{1},{1}} };
129 if ( (pFile = fopen( FileName,
"r" )) == NULL )
131 fprintf( pErr,
"Cannot open input file \"%s\". ", FileName );
133 fprintf( pErr,
"Did you mean \"%s\"?", FileName );
134 fprintf( pErr,
"\n" );
143 fprintf( pErr,
"Reading LUT library has failed.\n" );
152 fprintf( pErr,
"\nusage: read_lut [-vh]\n");
153 fprintf( pErr,
"\t read the LUT library from the file\n" );
154 fprintf( pErr,
"\t-v : toggles enabling of verbose output [default = %s]\n", (fVerbose?
"yes" :
"no") );
155 fprintf( pErr,
"\t-h : print the command usage\n");
156 fprintf( pErr,
"\t \n");
157 fprintf( pErr,
"\t File format for a LUT library:\n");
158 fprintf( pErr,
"\t (the default library is shown)\n");
159 fprintf( pErr,
"\t \n");
160 fprintf( pErr,
"\t # The area/delay of k-variable LUTs:\n");
161 fprintf( pErr,
"\t # k area delay\n");
162 fprintf( pErr,
"\t 1 1 1\n");
163 fprintf( pErr,
"\t 2 2 2\n");
164 fprintf( pErr,
"\t 3 4 3\n");
165 fprintf( pErr,
"\t 4 8 4\n");
166 fprintf( pErr,
"\t 5 16 5\n");
167 fprintf( pErr,
"\t 6 32 6\n");
219 fprintf( pErr,
"\nusage: print_lut [-vh]\n");
220 fprintf( pErr,
"\t print the current LUT library\n" );
221 fprintf( pErr,
"\t-v : toggles enabling of verbose output [default = %s]\n", (fVerbose?
"yes" :
"no") );
222 fprintf( pErr,
"\t-h : print the command usage\n");
279 if ( (pFile = fopen( FileName,
"r" )) == NULL )
281 fprintf( pErr,
"Cannot open input file \"%s\". ", FileName );
283 fprintf( pErr,
"Did you mean \"%s\"?", FileName );
284 fprintf( pErr,
"\n" );
293 fprintf( pErr,
"Reading box library has failed.\n" );
302 fprintf( pErr,
"\nusage: read_box [-evh]\n");
303 fprintf( pErr,
"\t read the box library from the file\n" );
304 fprintf( pErr,
"\t-e : toggles reading extended format [default = %s]\n", (fExtended?
"yes" :
"no") );
305 fprintf( pErr,
"\t-v : toggles enabling of verbose output [default = %s]\n", (fVerbose?
"yes" :
"no") );
306 fprintf( pErr,
"\t-h : print the command usage\n");
358 fprintf( pErr,
"\nusage: print_box [-vh]\n");
359 fprintf( pErr,
"\t print the current box library\n" );
360 fprintf( pErr,
"\t-v : toggles enabling of verbose output [default = %s]\n", (fVerbose?
"yes" :
"no") );
361 fprintf( pErr,
"\t-h : print the command usage\n");
static int If_CommandPrintBox(Abc_Frame_t *pAbc, int argc, char **argv)
static int If_CommandReadBox(Abc_Frame_t *pAbc, int argc, char **argv)
ABC_DLL void Abc_FrameSetLibLut(void *pLib)
void If_LibBoxFree(If_LibBox_t *p)
void If_LibLutPrint(If_LibLut_t *pLutLib)
If_LibLut_t * If_LibLutRead(char *FileName)
FUNCTION DEFINITIONS ///.
void If_LibBoxPrint(FILE *pFile, If_LibBox_t *p)
void Cmd_CommandAdd(Abc_Frame_t *pAbc, const char *sGroup, const char *sName, Cmd_CommandFuncType pFunc, int fChanges)
If_LibBox_t * If_LibBoxRead2(char *pFileName)
If_LibBox_t * If_LibBoxRead(char *pFileName)
void If_Init(Abc_Frame_t *pAbc)
FUNCTION DEFINITIONS ///.
typedefABC_NAMESPACE_HEADER_START struct Abc_Frame_t_ Abc_Frame_t
INCLUDES ///.
static int If_CommandPrintLut(Abc_Frame_t *pAbc, int argc, char **argv)
#define ABC_NAMESPACE_IMPL_END
ABC_DLL void * Abc_FrameReadLibBox()
If_LibLut_t * If_LibLutDup(If_LibLut_t *p)
ABC_DLL void Abc_FrameSetLibBox(void *pLib)
static ABC_NAMESPACE_IMPL_START int If_CommandReadLut(Abc_Frame_t *pAbc, int argc, char **argv)
DECLARATIONS ///.
#define ABC_NAMESPACE_IMPL_START
ABC_DLL Abc_Ntk_t * Abc_FrameReadNtk(Abc_Frame_t *p)
void If_End(Abc_Frame_t *pAbc)
void If_LibLutFree(If_LibLut_t *pLutLib)
ABC_DLL FILE * Abc_FrameReadErr(Abc_Frame_t *p)
ABC_DLL FILE * Abc_FrameReadOut(Abc_Frame_t *p)
ABC_DLL void * Abc_FrameReadLibLut()