88 char * FileName, * ExcludeFile;
108 if ( ExcludeFile == 0 )
134 if ( (pFile =
Io_FileOpen( FileName,
"open_path",
"r", 0 )) == NULL )
137 fprintf( pErr,
"Cannot open input file \"%s\". ", FileName );
139 fprintf( pErr,
"Did you mean \"%s\"?", FileName );
140 fprintf( pErr,
"\n" );
147 fprintf( pErr,
"Genlib library should be read in first..\n" );
155 fprintf( pErr,
"Reading supergate library has failed.\n" );
169 fprintf( pErr,
"\nusage: read_super [-ovh]\n");
170 fprintf( pErr,
"\t read the supergate library from the file\n" );
171 fprintf( pErr,
"\t-e file : file contains list of genlib gates to exclude\n" );
172 fprintf( pErr,
"\t-o : toggles the use of old file format [default = %s]\n", (fAlgorithm?
"new" :
"old") );
173 fprintf( pErr,
"\t-v : toggles enabling of verbose output [default = %s]\n", (fVerbose?
"yes" :
"no") );
174 fprintf( pErr,
"\t-h : print the command usage\n");
FILE * Io_FileOpen(const char *FileName, const char *PathVar, const char *Mode, int fVerbose)
ABC_DLL void Abc_FrameSetLibSuper(void *pLib)
void Map_SuperLibFree(Map_SuperLib_t *p)
ABC_DLL void * Abc_FrameReadLibGen()
void Cmd_CommandAdd(Abc_Frame_t *pAbc, const char *sGroup, const char *sName, Cmd_CommandFuncType pFunc, int fChanges)
void Map_End(Abc_Frame_t *pAbc)
void Map_Init(Abc_Frame_t *pAbc)
FUNCTION DEFINITIONS ///.
typedefABC_NAMESPACE_HEADER_START struct Abc_Frame_t_ Abc_Frame_t
INCLUDES ///.
#define ABC_NAMESPACE_IMPL_END
ABC_DLL void * Abc_FrameReadLibSuper()
STRUCTURE DEFINITIONS ///.
static ABC_NAMESPACE_IMPL_START int Map_CommandReadLibrary(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)
ABC_DLL FILE * Abc_FrameReadErr(Abc_Frame_t *p)
ABC_DLL FILE * Abc_FrameReadOut(Abc_Frame_t *p)
Map_SuperLib_t * Map_SuperLibCreate(Mio_Library_t *pGenlib, Vec_Str_t *vStr, char *pFileName, char *pExcludeFile, int fAlgorithm, int fVerbose)
DECLARATIONS ///.