100 int i, Counters[256] = {0};
103 printf(
"LUTs by size: " );
104 for ( i = 0; i <= pLutLib->
LutMax; i++ )
105 printf(
"%d:%d ", i, Counters[i] );
125 static struct ParStruct {
132 } ParsNew, ParsBest = { 0 };
146 if ( ParsBest.pName == NULL ||
148 ParsBest.Depth > ParsNew.Depth ||
149 (ParsBest.Depth == ParsNew.Depth && ParsBest.Flops > ParsNew.Flops) ||
150 (ParsBest.Depth == ParsNew.Depth && ParsBest.Flops == ParsNew.Flops && ParsBest.Nodes > ParsNew.Nodes) )
154 ParsBest.Depth = ParsNew.Depth;
155 ParsBest.Flops = ParsNew.Flops;
156 ParsBest.Nodes = ParsNew.Nodes;
157 ParsBest.nPis = ParsNew.nPis;
158 ParsBest.nPos = ParsNew.nPos;
182 if ( (pDot =
strrchr( pRes,
'.' )) )
206 float Result = (float)0;
212 pSwitching = (
float *)vSwitching->pArray;
242 char Buffer[1000] = {0};
244 sprintf( Buffer,
"%s_dump.blif", pNameGen );
252 printf(
"%-15s : ", pNtk->
pName );
typedefABC_NAMESPACE_HEADER_START struct Vec_Ptr_t_ Vec_Ptr_t
INCLUDES ///.
static int Nwk_ObjFanoutNum(Nwk_Obj_t *p)
ABC_DLL int Nwk_ManLevel(Nwk_Man_t *pNtk)
ABC_DLL int Nwk_ManPoNum(Nwk_Man_t *pNtk)
static int Nwk_ManLatchNum(Nwk_Man_t *p)
void Nwk_ManFree(Nwk_Man_t *p)
typedefABC_NAMESPACE_HEADER_START struct Aig_Man_t_ Aig_Man_t
INCLUDES ///.
typedefABC_NAMESPACE_HEADER_START struct Nwk_Obj_t_ Nwk_Obj_t
INCLUDES ///.
typedefABC_NAMESPACE_IMPL_START struct Vec_Int_t_ Vec_Int_t
DECLARATIONS ///.
void Aig_ManStop(Aig_Man_t *p)
void Nwk_ManPrintStats(Nwk_Man_t *pNtk, If_LibLut_t *pLutLib, int fSaveBest, int fDumpResult, int fPower, Ntl_Man_t *pNtl)
static Aig_Obj_t * Aig_Regular(Aig_Obj_t *p)
ABC_DLL Aig_Man_t * Nwk_ManStrash(Nwk_Man_t *p)
#define ABC_ALLOC(type, num)
ABC_DLL int Nwk_ManGetAigNodeNum(Nwk_Man_t *pNtk)
static int Nwk_ObjFaninNum(Nwk_Obj_t *p)
void Hop_ManStop(Hop_Man_t *p)
typedefABC_NAMESPACE_HEADER_START struct Ntl_Man_t_ Ntl_Man_t
INCLUDES ///.
char * Nwk_FileNameGeneric(char *FileName)
Vec_Int_t * Saig_ManComputeSwitchProbs(Aig_Man_t *pAig, int nFrames, int nPref, int fProbOne)
ABC_DLL int Nwk_ManPiNum(Nwk_Man_t *pNtk)
#define ABC_NAMESPACE_IMPL_END
Hop_Man_t * Hop_ManStart()
DECLARATIONS ///.
void Tim_ManStop(Tim_Man_t *p)
static int Nwk_ManCiNum(Nwk_Man_t *p)
MACRO DEFINITIONS ///.
#define ABC_NAMESPACE_IMPL_START
static Vec_Ptr_t * Vec_PtrAlloc(int nCap)
FUNCTION DEFINITIONS ///.
ABC_NAMESPACE_IMPL_START Nwk_Man_t * Nwk_ManAlloc()
DECLARATIONS ///.
Aig_MmFlex_t * Aig_MmFlexStart()
int Nwk_ManCompareAndSaveBest(Nwk_Man_t *pNtk, void *pNtl)
void Aig_MmFlexStop(Aig_MmFlex_t *p, int fVerbose)
ABC_DLL float Nwk_ManDelayTraceLut(Nwk_Man_t *pNtk)
float Nwl_ManComputeTotalSwitching(Nwk_Man_t *pNtk)
ABC_DLL void Nwk_ManDumpBlif(Nwk_Man_t *p, char *pFileName, Vec_Ptr_t *vCiNames, Vec_Ptr_t *vCoNames)
#define Nwk_ManForEachObj(p, pObj, i)
ABC_DLL int Nwk_ManGetTotalFanins(Nwk_Man_t *pNtk)
static int Nwk_ManNodeNum(Nwk_Man_t *p)
void Nwk_ManPrintLutSizes(Nwk_Man_t *p, If_LibLut_t *pLutLib)
static void Vec_IntFree(Vec_Int_t *p)
char * Abc_UtilStrsav(char *s)
static int Nwk_ManCoNum(Nwk_Man_t *p)
static void Vec_PtrFree(Vec_Ptr_t *p)
#define Nwk_ManForEachNode(p, pObj, i)