21#ifndef _DEFAULT_SOURCE
22#define _DEFAULT_SOURCE
69 p->pName = Abc_UtilStrsav(pFileName);
70 p->fVerbose = fVerbose;
100 else if ( fAlgorithm )
110 if ( pExcludeFile != 0 )
113 printf (
"Error: Exclude file support not present for old format. Stop.\n");
127 printf(
"Loaded %d unique %d-input supergates from \"%s\". ",
128 p->nSupersReal,
p->nVarsMax, pFileName );
129 ABC_PRT(
"Time", Abc_Clock() - clk );
136 p->tDelayInv.Worst =
MAP_MAX(
p->tDelayInv.Rise,
p->tDelayInv.Fall );
143 p->pSuperInv->Num = -1;
144 p->pSuperInv->nGates = 1;
145 p->pSuperInv->nFanins = 1;
146 p->pSuperInv->nFanLimit = 10;
147 p->pSuperInv->pFanins[0] =
p->ppSupers[0];
148 p->pSuperInv->pRoot =
p->pGateInv;
149 p->pSuperInv->Area =
p->AreaInv;
150 p->pSuperInv->tDelayMax =
p->tDelayInv;
152 p->pSuperInv->tDelaysR[0].Fall =
p->tDelayInv.Rise;
153 p->pSuperInv->tDelaysF[0].Rise =
p->tDelayInv.Fall;
172 if (
p == NULL )
return;
245 Super_Precompute( pLib, 5, 1, 100000000, 10000000, 10000000, 100, 1, 0, pFileName );
249 fprintf( stdout,
"Cannot execute command \"read_super %s\".\n", pFileName );
#define ABC_ALLOC(type, num)
#define ABC_NAMESPACE_IMPL_START
#define ABC_NAMESPACE_IMPL_END
typedefABC_NAMESPACE_HEADER_START struct Abc_Frame_t_ Abc_Frame_t
INCLUDES ///.
ABC_DLL Abc_Frame_t * Abc_FrameGetGlobalFrame()
ABC_DLL void Abc_FrameSetLibSuper(void *pLib)
ABC_DLL void * Abc_FrameReadLibGen()
ABC_DLL void * Abc_FrameReadLibSuper()
struct Vec_Str_t_ Vec_Str_t
ABC_DLL int Cmd_CommandExecute(Abc_Frame_t *pAbc, const char *sCommand)
int Map_LibraryRead(Map_SuperLib_t *p, char *pFileName)
FUNCTION DEFINITIONS ///.
int Map_LibraryReadTree(Map_SuperLib_t *pLib, Mio_Library_t *pGenlib, char *pFileName, char *pExcludeFile)
void Map_SuperTableFree(Map_HashTable_t *p)
int Map_LibraryDeriveGateInfo(Map_SuperLib_t *pLib, st__table *tExcludeGate)
int Map_LibraryReadFileTreeStr(Map_SuperLib_t *pLib, Mio_Library_t *pGenlib, Vec_Str_t *vStr, char *pFileName)
Map_HashTable_t * Map_SuperTableCreate(Map_SuperLib_t *pLib)
FUNCTION DEFINITIONS ///.
int Map_SuperLibDeriveFromGenlib(Mio_Library_t *pLib, int fVerbose)
ABC_NAMESPACE_IMPL_START Map_SuperLib_t * Map_SuperLibCreate(Mio_Library_t *pGenlib, Vec_Str_t *vStr, char *pFileName, char *pExcludeFile, int fAlgorithm, int fVerbose)
DECLARATIONS ///.
int Map_SuperLibDeriveFromGenlib2(Mio_Library_t *pLib, int fVerbose)
void Map_SuperLibFree(Map_SuperLib_t *p)
struct Map_SuperStruct_t_ Map_Super_t
struct Map_SuperLibStruct_t_ Map_SuperLib_t
struct Map_HashEntryStruct_t_ Map_HashEntry_t
void Map_MappingSetupTruthTables(unsigned uTruths[][2])
float Mio_LibraryReadDelayInvFall(Mio_Library_t *pLib)
float Mio_LibraryReadAreaBuf(Mio_Library_t *pLib)
char * Mio_LibraryReadName(Mio_Library_t *pLib)
DECLARATIONS ///.
struct Mio_LibraryStruct_t_ Mio_Library_t
void Mio_LibraryDelete(Mio_Library_t *pLib)
DECLARATIONS ///.
float Mio_LibraryReadAreaInv(Mio_Library_t *pLib)
float Mio_LibraryReadDelayInvRise(Mio_Library_t *pLib)
Mio_Gate_t * Mio_LibraryReadInv(Mio_Library_t *pLib)
void Super_Precompute(Mio_Library_t *pLibGen, int nVarsMax, int nLevels, int nGatesMax, float tDelayMax, float tAreaMax, int TimeLimit, int fSkipInv, int fVerbose, char *pFileName)
FUNCTION DEFINITIONS ///.
Vec_Str_t * Super_PrecomputeStr(Mio_Library_t *pLibGen, int nVarsMax, int nLevels, int nGatesMax, float tDelayMax, float tAreaMax, int TimeLimit, int fSkipInv, int fVerbose)