60 fprintf( stdout,
"Io_WriteBench(): Signal names in this benchmark contain parantheses making them impossible to reproduce in the BENCH format. Use \"short_names\".\n" );
63 pFile = fopen( pFileName,
"w" );
66 fprintf( stdout,
"Io_WriteBench(): Cannot open the output file.\n" );
75 printf(
"Io_WriteBench: EXDC is not written (warning).\n" );
104 fprintf( pFile,
"%-11s = DFF(%s)\n",
140 fprintf( pFile,
" = vdd\n" );
142 else if ( nFanins == 1 )
182 fprintf( stdout,
"Io_WriteBenchLut(): Signal names in this benchmark contain parantheses making them impossible to reproduce in the BENCH format. Use \"short_names\".\n" );
185 pFile = fopen( pFileName,
"w" );
188 fprintf( stdout,
"Io_WriteBench(): Cannot open the output file.\n" );
197 printf(
"Io_WriteBench: EXDC is not written (warning).\n" );
227 fprintf( pFile,
"%-11s = DFFRSE( %s, gnd, gnd, gnd, gnd )\n",
280 fprintf( pFile,
"%-11s = LUT 0x%d ( %s )\n",
303 fprintf( pFile,
" (" );
305 fprintf( pFile,
" %s%s",
Abc_ObjName(pFanin), ((i==nFanins-1)?
"" :
",") );
306 fprintf( pFile,
" )\n" );
329 if ( *pName ==
'(' || *pName ==
')' )
static Abc_Obj_t * Abc_ObjFanin1(Abc_Obj_t *pObj)
static int Io_WriteBenchOneNode(FILE *pFile, Abc_Obj_t *pNode)
static int Abc_NtkObjNumMax(Abc_Ntk_t *pNtk)
static Abc_Ntk_t * Abc_NtkExdc(Abc_Ntk_t *pNtk)
typedefABC_NAMESPACE_IMPL_START struct Vec_Int_t_ Vec_Int_t
DECLARATIONS ///.
static int Abc_ObjFaninNum(Abc_Obj_t *pObj)
static Abc_Obj_t * Abc_ObjFanin0(Abc_Obj_t *pObj)
static ABC_NAMESPACE_IMPL_START int Io_WriteBenchCheckNames(Abc_Ntk_t *pNtk)
DECLARATIONS ///.
ABC_DLL int Abc_NodeIsBuf(Abc_Obj_t *pNode)
int Io_WriteBench(Abc_Ntk_t *pNtk, const char *pFileName)
FUNCTION DEFINITIONS ///.
static int Abc_ObjIsNode(Abc_Obj_t *pObj)
static int Io_WriteBenchLutOne(FILE *pFile, Abc_Ntk_t *pNtk)
static Vec_Int_t * Vec_IntAlloc(int nCap)
FUNCTION DEFINITIONS ///.
static int Io_WriteBenchLutOneNode(FILE *pFile, Abc_Obj_t *pNode, Vec_Int_t *vTruth)
static int Abc_NtkIsAigNetlist(Abc_Ntk_t *pNtk)
#define ABC_NAMESPACE_IMPL_END
char * Nm_ManFindNameById(Nm_Man_t *p, int ObjId)
int Io_WriteBenchLut(Abc_Ntk_t *pNtk, char *pFileName)
static int Hop_IsComplement(Hop_Obj_t *p)
#define Abc_NtkForEachLatch(pNtk, pObj, i)
static int Io_WriteBenchOne(FILE *pFile, Abc_Ntk_t *pNtk)
#define Abc_NtkForEachNode(pNtk, pNode, i)
#define ABC_NAMESPACE_IMPL_START
#define Abc_ObjForEachFanin(pObj, pFanin, i)
ABC_DLL char * Abc_ObjName(Abc_Obj_t *pNode)
DECLARATIONS ///.
static int Abc_NtkIsSopNetlist(Abc_Ntk_t *pNtk)
unsigned * Hop_ManConvertAigToTruth(Hop_Man_t *p, Hop_Obj_t *pRoot, int nVars, Vec_Int_t *vTruth, int fMsbFirst)
ABC_DLL int Abc_NodeIsConst1(Abc_Obj_t *pNode)
#define Abc_NtkForEachPo(pNtk, pPo, i)
static void Vec_IntFree(Vec_Int_t *p)
static Hop_Obj_t * Hop_Regular(Hop_Obj_t *p)
#define Abc_NtkForEachObj(pNtk, pObj, i)
ITERATORS ///.
typedefABC_NAMESPACE_HEADER_START struct Hop_Man_t_ Hop_Man_t
INCLUDES ///.
static Abc_Obj_t * Abc_ObjFanout0(Abc_Obj_t *pObj)
#define Abc_NtkForEachPi(pNtk, pPi, i)