111 pFile = fopen( pFileName,
"w" );
114 fprintf( stdout,
"Io_WriteList(): Cannot open the output file \"%s\".\n", pFileName );
118 fprintf( pFile,
"# Adjacency list for sequential AIG \"%s\"\n", pNtk->
pName );
140 fprintf( pFile,
"\n" );
165 fprintf( pFile,
"%s] = %d)",
Abc_ObjName(pFanout), 0 );
167 fprintf( pFile,
"," );
169 fprintf( pFile,
"." );
170 fprintf( pFile,
"\n" );
192 fprintf( pFile,
" %s ([%s_to_%s] = %d)",
"HOST",
Abc_ObjName(pObj),
"HOST", 0 );
193 fprintf( pFile,
"." );
194 fprintf( pFile,
"\n" );
197 fprintf( pFile,
"%-10s > ",
"HOST" );
201 fprintf( pFile,
" ([%s_to_%s] = %d)",
"HOST",
Abc_ObjName(pObj), 0 );
203 fprintf( pFile,
"," );
205 fprintf( pFile,
"." );
206 fprintf( pFile,
"\n" );
230 pFile = fopen( pFileName,
"w" );
233 fprintf( stdout,
"Io_WriteCellNet(): Cannot open the output file \"%s\".\n", pFileName );
237 fprintf( pFile,
"# CellNet file for network \"%s\" written by ABC on %s\n", pNtk->
pName,
Extra_TimeStamp() );
246 fprintf( pFile,
"cell %d is 0\n", pObj->
Id );
249 fprintf( pFile,
"cell %d is 1\n", pObj->
Id );
260 fprintf( pFile,
"net %d %d 0", pObj->
Id, pObj->
Id );
263 fprintf( pFile,
"\n" );
272 fprintf( pFile,
"\n" );
277 fprintf( pFile,
"net %d %d 0", pObj->
Id, pObj->
Id );
280 fprintf( pFile,
"\n" );
283 fprintf( pFile,
"\n" );
static int Abc_NtkIsLogic(Abc_Ntk_t *pNtk)
ABC_DLL Abc_Obj_t * Abc_AigConst1(Abc_Ntk_t *pNtk)
static int Abc_ObjFanoutNum(Abc_Obj_t *pObj)
static int Abc_ObjFaninNum(Abc_Obj_t *pObj)
void Io_WriteCellNet(Abc_Ntk_t *pNtk, char *pFileName)
static Abc_Obj_t * Abc_ObjFanin0(Abc_Obj_t *pObj)
#define Abc_AigForEachAnd(pNtk, pNode, i)
static ABC_NAMESPACE_IMPL_START void Io_WriteListEdge(FILE *pFile, Abc_Obj_t *pObj)
DECLARATIONS ///.
#define ABC_NAMESPACE_IMPL_END
#define Abc_NtkForEachLatch(pNtk, pObj, i)
#define Abc_NtkForEachNode(pNtk, pNode, i)
#define ABC_NAMESPACE_IMPL_START
void Io_WriteList(Abc_Ntk_t *pNtk, char *pFileName, int fUseHost)
FUNCTION DEFINITIONS ///.
#define Abc_ObjForEachFanout(pObj, pFanout, i)
static int Abc_NtkPiNum(Abc_Ntk_t *pNtk)
ABC_DLL char * Abc_ObjName(Abc_Obj_t *pNode)
DECLARATIONS ///.
ABC_DLL int Abc_ObjFanoutFaninNum(Abc_Obj_t *pFanout, Abc_Obj_t *pFanin)
#define Abc_NtkForEachPo(pNtk, pPo, i)
static void Io_WriteListHost(FILE *pFile, Abc_Ntk_t *pNtk)
static Abc_Obj_t * Abc_ObjFanout0(Abc_Obj_t *pObj)
#define Abc_NtkForEachPi(pNtk, pPi, i)