Go to the source code of this file.
Function*************************************************************
Synopsis [Make sure the network does not have offending names.]
Description []
SideEffects []
SeeAlso []
Definition at line 215 of file ioWriteEqn.c.
229 if ( pName[0] ==
'0' || pName[0] ==
'1' )
234 for ( k = 0; k < Length; k++ )
235 if ( pName[k] ==
'(' || pName[k] ==
')' || pName[k] ==
'!' || pName[k] ==
'*' || pName[k] ==
'+' )
245 printf(
"The network cannot be written in the EQN format because object %d has name \"%s\".\n", i, pName );
246 printf(
"Consider renaming the objects using command \"short_names\" and trying again.\n" );
char * Nm_ManFindNameById(Nm_Man_t *p, int ObjId)
#define Abc_NtkForEachObj(pNtk, pObj, i)
ITERATORS ///.
void Io_NtkWriteEqnCis |
( |
FILE * |
pFile, |
|
|
Abc_Ntk_t * |
pNtk |
|
) |
| |
|
static |
Function*************************************************************
Synopsis [Writes the primary input list.]
Description []
SideEffects []
SeeAlso []
Definition at line 135 of file ioWriteEqn.c.
153 fprintf( pFile,
" \n" );
159 LineLength += AddedLength;
#define IO_WRITE_LINE_LENGTH
MACRO DEFINITIONS ///.
#define Abc_NtkForEachCi(pNtk, pCi, i)
ABC_DLL char * Abc_ObjName(Abc_Obj_t *pNode)
DECLARATIONS ///.
static Abc_Obj_t * Abc_ObjFanout0(Abc_Obj_t *pObj)
void Io_NtkWriteEqnCos |
( |
FILE * |
pFile, |
|
|
Abc_Ntk_t * |
pNtk |
|
) |
| |
|
static |
Function*************************************************************
Synopsis [Writes the primary input list.]
Description []
SideEffects []
SeeAlso []
Definition at line 175 of file ioWriteEqn.c.
193 fprintf( pFile,
" \n" );
199 LineLength += AddedLength;
#define Abc_NtkForEachCo(pNtk, pCo, i)
static Abc_Obj_t * Abc_ObjFanin0(Abc_Obj_t *pObj)
#define IO_WRITE_LINE_LENGTH
MACRO DEFINITIONS ///.
ABC_DLL char * Abc_ObjName(Abc_Obj_t *pNode)
DECLARATIONS ///.
void Io_NtkWriteEqnOne |
( |
FILE * |
pFile, |
|
|
Abc_Ntk_t * |
pNtk |
|
) |
| |
|
static |
DECLARATIONS ///.
CFile****************************************************************
FileName [ioWriteEqn.c]
SystemName [ABC: Logic synthesis and verification system.]
PackageName [Command processing package.]
Synopsis [Procedures to write equation representation of the network.]
Author [Alan Mishchenko]
Affiliation [UC Berkeley]
Date [Ver. 1.0. Started - June 20, 2005.]
Revision [
- Id:
- ioWriteEqn.c,v 1.00 2005/06/20 00:00:00 alanmi Exp
]
Function*************************************************************
Synopsis [Write one network.]
Description []
SideEffects []
SeeAlso []
Definition at line 88 of file ioWriteEqn.c.
96 fprintf( pFile,
"INORDER =" );
98 fprintf( pFile,
";\n" );
101 fprintf( pFile,
"OUTORDER =" );
103 fprintf( pFile,
";\n" );
117 fprintf( pFile, ";\n" );
static Vec_Vec_t * Vec_VecAlloc(int nCap)
FUNCTION DEFINITIONS ///.
static int Abc_NtkObjNumMax(Abc_Ntk_t *pNtk)
typedefABC_NAMESPACE_HEADER_START struct Vec_Vec_t_ Vec_Vec_t
INCLUDES ///.
static void Io_NtkWriteEqnCos(FILE *pFile, Abc_Ntk_t *pNtk)
static void Vec_VecFree(Vec_Vec_t *p)
static void Io_NtkWriteEqnCis(FILE *pFile, Abc_Ntk_t *pNtk)
#define Abc_NtkForEachNode(pNtk, pNode, i)
#define Abc_ObjForEachFanin(pObj, pFanin, i)
ABC_DLL char * Abc_ObjName(Abc_Obj_t *pNode)
DECLARATIONS ///.
typedefABC_NAMESPACE_HEADER_START struct Hop_Man_t_ Hop_Man_t
INCLUDES ///.
Hop_Obj_t * Hop_IthVar(Hop_Man_t *p, int i)
FUNCTION DEFINITIONS ///.
static Abc_Obj_t * Abc_ObjFanout0(Abc_Obj_t *pObj)
void Hop_ObjPrintEqn(FILE *pFile, Hop_Obj_t *pObj, Vec_Vec_t *vLevels, int Level)
void Io_WriteEqn |
( |
Abc_Ntk_t * |
pNtk, |
|
|
char * |
pFileName |
|
) |
| |
FUNCTION DEFINITIONS ///.
Function*************************************************************
Synopsis [Writes the logic network in the equation format.]
Description []
SideEffects []
SeeAlso []
Definition at line 50 of file ioWriteEqn.c.
56 printf(
"Warning: only combinational portion is being written.\n" );
63 pFile = fopen( pFileName,
"w" );
66 fprintf( stdout,
"Io_WriteEqn(): Cannot open the output file \"%s\".\n", pFileName );
69 fprintf( pFile,
"# Equations for \"%s\" written by ABC on %s\n", pNtk->
pName,
Extra_TimeStamp() );
73 fprintf( pFile,
"\n" );
static ABC_NAMESPACE_IMPL_START void Io_NtkWriteEqnOne(FILE *pFile, Abc_Ntk_t *pNtk)
DECLARATIONS ///.
static int Abc_NtkLatchNum(Abc_Ntk_t *pNtk)
static int Abc_NtkIsAigNetlist(Abc_Ntk_t *pNtk)
static int Io_NtkWriteEqnCheck(Abc_Ntk_t *pNtk)