67 pSwitching = (
float *)vSwitching->pArray;
101 nTotal = 32 * nSimWords;
103 return (
float)2.0 * nOnes / nTotal * (nTotal - nOnes) / nTotal;
typedefABC_NAMESPACE_HEADER_START struct Vec_Ptr_t_ Vec_Ptr_t
INCLUDES ///.
static int Abc_NtkObjNumMax(Abc_Ntk_t *pNtk)
typedefABC_NAMESPACE_IMPL_START struct Vec_Int_t_ Vec_Int_t
DECLARATIONS ///.
void Sim_UtilSetRandom(unsigned *pPatRand, int nSimWords)
int Sim_UtilCountOnes(unsigned *pSimInfo, int nSimWords)
static ABC_NAMESPACE_IMPL_START void Sim_NodeSimulate(Abc_Obj_t *pNode, Vec_Ptr_t *vSimInfo, int nSimWords)
DECLARATIONS ///.
void Sim_UtilInfoFree(Vec_Ptr_t *p)
static Vec_Int_t * Vec_IntStart(int nSize)
Vec_Ptr_t * Sim_UtilInfoAlloc(int nSize, int nWords, int fClean)
FUNCTION DEFINITIONS ///.
void Sim_UtilSimulateNodeOne(Abc_Obj_t *pNode, Vec_Ptr_t *vSimInfo, int nSimWords, int nOffset)
#define ABC_NAMESPACE_IMPL_END
static float Sim_ComputeSwitching(unsigned *pSimInfo, int nSimWords)
#define SIM_NUM_WORDS(n)
MACRO DEFINITIONS ///.
Vec_Int_t * Sim_NtkComputeSwitching(Abc_Ntk_t *pNtk, int nPatterns)
FUNCTION DEFINITIONS ///.
ABC_DLL Vec_Ptr_t * Abc_AigDfs(Abc_Ntk_t *pNtk, int fCollectAll, int fCollectCos)
#define ABC_NAMESPACE_IMPL_START
static void * Vec_PtrEntry(Vec_Ptr_t *p, int i)
#define Abc_NtkForEachCi(pNtk, pCi, i)
#define Vec_PtrForEachEntry(Type, vVec, pEntry, i)
MACRO DEFINITIONS ///.
int nTotal
DECLARATIONS ///.
static void Vec_PtrFree(Vec_Ptr_t *p)