82 fprintf( stdout,
"Abc_NtkToLogic(): Network check has failed.\n" );
150 Abc_Obj_t * pObj, * pNet, * pDriver, * pFanin;
167 printf(
"Abc_NtkLogicToNetlist() warning: The network is converted to have simple COs.\n" );
228 fprintf( stdout,
"Abc_NtkLogicToNetlist(): Network check has failed.\n" );
250 int i, k, fChoices = 0;
273 for ( pFanin = pObj; pFanin; pFanin = (
Abc_Obj_t *)pFanin->
pData )
318 fprintf( stdout,
"Abc_NtkAigToLogicSop(): Network check has failed.\n" );
341 printf(
"Warning: Choice nodes are skipped.\n" );
387 printf(
"Warning: The EXDc network is skipped.\n" );
389 fprintf( stdout,
"Abc_NtkAigToLogicSopBench(): Network check has failed.\n" );
412 printf(
"Warning: Choice nodes are skipped.\n" );
468 printf(
"Warning: The EXDc network is skipped.\n" );
470 fprintf( stdout,
"Abc_NtkAigToLogicSopBench(): Network check has failed.\n" );
static int * Vec_IntArray(Vec_Int_t *p)
int Abc_NtkLogicMakeSimpleCos2(Abc_Ntk_t *pNtk, int fDuplicate)
static int Abc_NtkIsStrash(Abc_Ntk_t *pNtk)
static int Abc_NtkIsLogic(Abc_Ntk_t *pNtk)
typedefABC_NAMESPACE_HEADER_START struct Vec_Ptr_t_ Vec_Ptr_t
INCLUDES ///.
Abc_Ntk_t * Abc_NtkToLogic(Abc_Ntk_t *pNtk)
FUNCTION DEFINITIONS ///.
static int Abc_ObjIsCi(Abc_Obj_t *pObj)
ABC_DLL Abc_Obj_t * Abc_AigConst1(Abc_Ntk_t *pNtk)
ABC_DLL int Abc_NtkLogicHasSimpleCos(Abc_Ntk_t *pNtk)
static int Abc_ObjFaninC1(Abc_Obj_t *pObj)
typedefABC_NAMESPACE_IMPL_START struct Vec_Int_t_ Vec_Int_t
DECLARATIONS ///.
static int Abc_NtkIsNetlist(Abc_Ntk_t *pNtk)
ABC_DLL char * Abc_SopCreateAnd2(Mem_Flex_t *pMan, int fCompl0, int fCompl1)
static Abc_Ntk_t * Abc_NtkLogicToNetlist(Abc_Ntk_t *pNtk)
static int Abc_ObjFanoutNum(Abc_Obj_t *pObj)
ABC_DLL char * Abc_SopCreateAnd(Mem_Flex_t *pMan, int nVars, int *pfCompl)
ABC_DLL Abc_Obj_t * Abc_NtkDupObj(Abc_Ntk_t *pNtkNew, Abc_Obj_t *pObj, int fCopyName)
ABC_DLL Abc_Obj_t * Abc_NtkCreateNodeConst1(Abc_Ntk_t *pNtk)
static int Abc_ObjFaninC0(Abc_Obj_t *pObj)
ABC_DLL Abc_Ntk_t * Abc_NtkDup(Abc_Ntk_t *pNtk)
#define Abc_NtkForEachCo(pNtk, pCo, i)
ABC_DLL int Abc_NtkCheckUniqueCioNames(Abc_Ntk_t *pNtk)
ABC_DLL int Abc_NtkCheck(Abc_Ntk_t *pNtk)
FUNCTION DEFINITIONS ///.
ABC_DLL Vec_Ptr_t * Abc_NtkDfs(Abc_Ntk_t *pNtk, int fCollectAll)
ABC_DLL int Abc_NtkCleanup(Abc_Ntk_t *pNtk, int fVerbose)
static int Abc_NtkWhiteboxNum(Abc_Ntk_t *pNtk)
static Abc_Obj_t * Abc_ObjFanin0(Abc_Obj_t *pObj)
ABC_DLL int Abc_NtkGetChoiceNum(Abc_Ntk_t *pNtk)
ABC_DLL char * Abc_SopCreateNand(Mem_Flex_t *pMan, int nVars)
Abc_Ntk_t * Abc_NtkToNetlist(Abc_Ntk_t *pNtk)
ABC_DLL void Abc_NtkDelete(Abc_Ntk_t *pNtk)
ABC_DLL void Abc_ObjAddFanin(Abc_Obj_t *pObj, Abc_Obj_t *pFanin)
static Abc_Obj_t * Abc_ObjChild0(Abc_Obj_t *pObj)
ABC_DLL void Abc_ObjPatchFanin(Abc_Obj_t *pObj, Abc_Obj_t *pFaninOld, Abc_Obj_t *pFaninNew)
static int Abc_ObjIsNode(Abc_Obj_t *pObj)
ABC_DLL Abc_Ntk_t * Abc_NtkStartFrom(Abc_Ntk_t *pNtk, Abc_NtkType_t Type, Abc_NtkFunc_t Func)
static Abc_Ntk_t * Abc_NtkAigToLogicSop(Abc_Ntk_t *pNtk)
static Vec_Int_t * Vec_IntAlloc(int nCap)
FUNCTION DEFINITIONS ///.
ABC_DLL Abc_Obj_t * Abc_NtkCreateNodeInv(Abc_Ntk_t *pNtk, Abc_Obj_t *pFanin)
ABC_DLL int Abc_NtkCheckUniqueCoNames(Abc_Ntk_t *pNtk)
#define ABC_NAMESPACE_IMPL_END
static Abc_Ntk_t * Abc_NtkAigToLogicSopBench(Abc_Ntk_t *pNtk)
ABC_DLL void Abc_NtkFinalize(Abc_Ntk_t *pNtk, Abc_Ntk_t *pNtkNew)
ABC_DLL int Abc_NtkCheckUniqueCiNames(Abc_Ntk_t *pNtk)
ABC_DLL int Abc_AigNodeHasComplFanoutEdgeTrav(Abc_Obj_t *pNode)
static void Vec_IntPush(Vec_Int_t *p, int Entry)
ABC_DLL Abc_Obj_t * Abc_NtkFindOrCreateNet(Abc_Ntk_t *pNtk, char *pName)
#define Abc_NtkForEachNode(pNtk, pNode, i)
#define ABC_NAMESPACE_IMPL_START
ABC_DLL int Abc_NtkLogicMakeSimpleCos(Abc_Ntk_t *pNtk, int fDuplicate)
static int Abc_AigNodeIsChoice(Abc_Obj_t *pNode)
static int Abc_ObjFaninC(Abc_Obj_t *pObj, int i)
static int Vec_IntSize(Vec_Int_t *p)
#define Abc_NtkForEachCi(pNtk, pCi, i)
static ABC_NAMESPACE_IMPL_START void Abc_NtkAddPoBuffers(Abc_Ntk_t *pNtk)
DECLARATIONS ///.
#define Abc_ObjForEachFanin(pObj, pFanin, i)
ABC_DLL char * Abc_ObjName(Abc_Obj_t *pNode)
DECLARATIONS ///.
static Abc_Obj_t * Abc_NtkCreateNode(Abc_Ntk_t *pNtk)
ABC_DLL char * Abc_SopCreateOrMultiCube(Mem_Flex_t *pMan, int nVars, int *pfCompl)
static void Abc_ObjXorFaninC(Abc_Obj_t *pObj, int i)
Abc_Ntk_t * Abc_NtkToNetlistBench(Abc_Ntk_t *pNtk)
static Abc_Obj_t * Abc_ObjNotCond(Abc_Obj_t *p, int c)
ABC_DLL char * Abc_FrameReadFlag(char *pFlag)
#define Abc_NtkForEachPo(pNtk, pPo, i)
static int Abc_NtkBlackboxNum(Abc_Ntk_t *pNtk)
static void Vec_IntFree(Vec_Int_t *p)
#define Vec_PtrForEachEntry(Type, vVec, pEntry, i)
MACRO DEFINITIONS ///.
Abc_Ntk_t * Abc_NtkAigToLogicSopNand(Abc_Ntk_t *pNtk)
#define Abc_NtkForEachObj(pNtk, pObj, i)
ITERATORS ///.
static void Vec_PtrFree(Vec_Ptr_t *p)