DECLARATIONS ///.
Date [Ver. 1.0. Started - June 20, 2005.]
]FUNCTION DEFINITIONS /// Function*************************************************************
52 int nInputs, nOutputs, nLatches, nAnds, nFileSize, Num, i;
53 char * pContents, * pName, * pCur;
54 unsigned * pBufferNode;
59 pFile = fopen( pFileName,
"rb" );
61 RetValue = fread( pContents, nFileSize, 1, pFile );
65 for ( pCur = pContents; *pCur ==
'#'; )
66 while ( *pCur++ !=
'\n' );
69 pName = pCur;
while ( *pCur++ );
71 nInputs = atoi( pCur );
while ( *pCur++ );
73 nOutputs = atoi( pCur );
while ( *pCur++ );
75 nLatches = atoi( pCur );
while ( *pCur++ );
77 nAnds = atoi( pCur );
while ( *pCur++ );
89 for ( i = 0; i < nInputs; i++ )
96 for ( i = 0; i < nOutputs; i++ )
102 for ( i = 0; i < nLatches; i++ )
119 pBufferNode = (
unsigned *)(pContents + (nFileSize - (2 * nAnds + nOutputs + nLatches) *
sizeof(
int)) );
121 if ( pBufferNode != (
unsigned *)pCur )
126 printf(
"Warning: Internal reader error.\n" );
132 for ( i = 0; i < nAnds; i++ )
144 Num = pBufferNode[2*nAnds+i];
162 printf(
"Io_ReadBaf: The network check has failed.\n" );
typedefABC_NAMESPACE_HEADER_START struct Vec_Ptr_t_ Vec_Ptr_t
INCLUDES ///.
ABC_DLL Abc_Obj_t * Abc_AigConst1(Abc_Ntk_t *pNtk)
static int Abc_ObjIsLatch(Abc_Obj_t *pObj)
static int Abc_ObjFanoutNum(Abc_Obj_t *pObj)
static void Vec_PtrPush(Vec_Ptr_t *p, void *Entry)
#define ABC_ALLOC(type, num)
#define Abc_NtkForEachCo(pNtk, pCo, i)
ABC_DLL char * Abc_ObjAssignName(Abc_Obj_t *pObj, char *pName, char *pSuffix)
ABC_DLL void Abc_NtkDelete(Abc_Ntk_t *pNtk)
static void Abc_ObjSetData(Abc_Obj_t *pObj, void *pData)
ABC_DLL void Abc_ObjAddFanin(Abc_Obj_t *pObj, Abc_Obj_t *pFanin)
ABC_DLL Abc_Ntk_t * Abc_NtkAlloc(Abc_NtkType_t Type, Abc_NtkFunc_t Func, int fUseMemMan)
DECLARATIONS ///.
static Abc_Obj_t * Abc_NtkCreateBo(Abc_Ntk_t *pNtk)
ABC_DLL Abc_Obj_t * Abc_AigAnd(Abc_Aig_t *pMan, Abc_Obj_t *p0, Abc_Obj_t *p1)
ABC_DLL int Abc_NtkCheckRead(Abc_Ntk_t *pNtk)
static Abc_Obj_t * Abc_NtkCreateLatch(Abc_Ntk_t *pNtk)
static Abc_Obj_t * Abc_NtkCreatePi(Abc_Ntk_t *pNtk)
static void * Vec_PtrEntry(Vec_Ptr_t *p, int i)
static Vec_Ptr_t * Vec_PtrAlloc(int nCap)
FUNCTION DEFINITIONS ///.
static Abc_Obj_t * Abc_ObjNotCond(Abc_Obj_t *p, int c)
static Abc_Obj_t * Abc_NtkCreateBi(Abc_Ntk_t *pNtk)
static Abc_Obj_t * Abc_NtkCreatePo(Abc_Ntk_t *pNtk)
static Abc_Obj_t * Abc_ObjFanout0(Abc_Obj_t *pObj)
static void Vec_PtrFree(Vec_Ptr_t *p)