32static float Sim_ComputeSwitching(
unsigned * pSimInfo,
int nSimWords );
66 vSwitching = Vec_IntStart( Abc_NtkObjNumMax(pNtk) );
67 pSwitching = (
float *)vSwitching->pArray;
70 pSimInfo = (
unsigned *)Vec_PtrEntry(vSimInfo, pNode->
Id);
72 pSwitching[pNode->
Id] = Sim_ComputeSwitching( pSimInfo, nSimWords );
78 pSimInfo = (
unsigned *)Vec_PtrEntry(vSimInfo, pNode->
Id);
80 pSwitching[pNode->
Id] = Sim_ComputeSwitching( pSimInfo, nSimWords );
82 Vec_PtrFree( vNodes );
98float Sim_ComputeSwitching(
unsigned * pSimInfo,
int nSimWords )
struct Abc_Obj_t_ Abc_Obj_t
ABC_DLL Vec_Ptr_t * Abc_AigDfs(Abc_Ntk_t *pNtk, int fCollectAll, int fCollectCos)
struct Abc_Ntk_t_ Abc_Ntk_t
#define Abc_NtkForEachCi(pNtk, pCi, i)
#define ABC_NAMESPACE_IMPL_START
#define ABC_NAMESPACE_IMPL_END
int nTotal
DECLARATIONS ///.
typedefABC_NAMESPACE_IMPL_START struct Vec_Int_t_ Vec_Int_t
DECLARATIONS ///.
Vec_Int_t * Sim_NtkComputeSwitching(Abc_Ntk_t *pNtk, int nPatterns)
FUNCTION DEFINITIONS ///.
void Sim_UtilInfoFree(Vec_Ptr_t *p)
void Sim_UtilSetRandom(unsigned *pPatRand, int nSimWords)
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)
int Sim_UtilCountOnes(unsigned *pSimInfo, int nSimWords)
#define SIM_NUM_WORDS(n)
MACRO DEFINITIONS ///.
typedefABC_NAMESPACE_HEADER_START struct Vec_Ptr_t_ Vec_Ptr_t
INCLUDES ///.
#define Vec_PtrForEachEntry(Type, vVec, pEntry, i)
MACRO DEFINITIONS ///.