Go to the source code of this file.
Function*************************************************************
Synopsis [Create the library.]
Description []
SideEffects []
SeeAlso []
Definition at line 226 of file abcLib.c.
int st__insert(st__table *table, const char *key, char *value)
static void Vec_PtrPush(Vec_Ptr_t *p, void *Entry)
#define st__is_member(table, key)
static int Vec_PtrSize(Vec_Ptr_t *p)
void Abc_DesCleanManPointer |
( |
Abc_Des_t * |
p, |
|
|
void * |
pMan |
|
) |
| |
Function*************************************************************
Synopsis [Removes all pointers to the manager.]
Description []
SideEffects []
SeeAlso []
Definition at line 70 of file abcLib.c.
79 if ( pTemp->pManFunc == pMan )
80 pTemp->pManFunc = NULL;
#define Vec_PtrForEachEntry(Type, vVec, pEntry, i)
MACRO DEFINITIONS ///.
DECLARATIONS ///.
CFile****************************************************************
FileName [abcLib.c]
SystemName [ABC: Logic synthesis and verification system.]
PackageName [Network and node package.]
Synopsis [Functions to manipulate verilog libraries.]
Author [Alan Mishchenko]
Affiliation [UC Berkeley]
Date [Ver. 1.0. Started - June 20, 2005.]
Revision [
- Id:
- abcLib.c,v 1.00 2005/06/20 00:00:00 alanmi Exp
]FUNCTION DEFINITIONS /// Function*************************************************************
Synopsis [Create the library.]
Description []
SideEffects []
SeeAlso []
Definition at line 45 of file abcLib.c.
#define ABC_ALLOC(type, num)
st__table * st__init_table(st__compare_func_type compare, st__hash_func_type hash)
int st__strhash(const char *string, int modulus)
Hop_Man_t * Hop_ManStart()
DECLARATIONS ///.
static Vec_Ptr_t * Vec_PtrAlloc(int nCap)
FUNCTION DEFINITIONS ///.
char * Abc_UtilStrsav(char *s)
Function*************************************************************
Synopsis [Frees the library.]
Description []
SideEffects []
SeeAlso []
Definition at line 269 of file abcLib.c.
274 printf(
"The design includes more than one module and is currently not used.\n" );
static int Vec_PtrSize(Vec_Ptr_t *p)
static void * Vec_PtrEntry(Vec_Ptr_t *p, int i)
static void Vec_PtrClear(Vec_Ptr_t *p)
Function*************************************************************
Synopsis [Duplicated the library.]
Description []
SideEffects []
SeeAlso []
Definition at line 133 of file abcLib.c.
145 pTemp->pCopy->pAltView = pTemp->pAltView ? pTemp->pAltView->pCopy : NULL;
ABC_DLL Abc_Ntk_t * Abc_NtkDup(Abc_Ntk_t *pNtk)
static void Vec_PtrPush(Vec_Ptr_t *p, void *Entry)
static int Abc_ObjIsWhitebox(Abc_Obj_t *pObj)
static Abc_Ntk_t * Abc_ObjModel(Abc_Obj_t *pObj)
int Abc_DesAddModel(Abc_Des_t *p, Abc_Ntk_t *pNtk)
#define Abc_NtkForEachBox(pNtk, pObj, i)
#define Vec_PtrForEachEntry(Type, vVec, pEntry, i)
MACRO DEFINITIONS ///.
static int Abc_ObjIsBlackbox(Abc_Obj_t *pObj)
ABC_NAMESPACE_IMPL_START Abc_Des_t * Abc_DesCreate(char *pName)
DECLARATIONS ///.
Function*************************************************************
Synopsis [Frees the library.]
Description []
SideEffects []
SeeAlso []
Definition at line 165 of file abcLib.c.
ABC_DLL Abc_Ntk_t * Abc_NtkDup(Abc_Ntk_t *pNtk)
static void Vec_PtrPush(Vec_Ptr_t *p, void *Entry)
static int Vec_PtrSize(Vec_Ptr_t *p)
static int Abc_NtkHasBlackbox(Abc_Ntk_t *pNtk)
#define Vec_PtrForEachEntry(Type, vVec, pEntry, i)
MACRO DEFINITIONS ///.
ABC_NAMESPACE_IMPL_START Abc_Des_t * Abc_DesCreate(char *pName)
DECLARATIONS ///.
Function*************************************************************
Synopsis [Create the library.]
Description []
SideEffects []
SeeAlso []
Definition at line 249 of file abcLib.c.
#define st__is_member(table, key)
int st__lookup(st__table *table, const char *key, char **value)
int Abc_DesFindTopLevelModels |
( |
Abc_Des_t * |
p | ) |
|
Function*************************************************************
Synopsis [Detects the top-level models.]
Description []
SideEffects []
SeeAlso []
Definition at line 293 of file abcLib.c.
301 pNtk->fHieVisited = 0;
309 if ( pObj->
pData == NULL )
311 pNtkBox = (Abc_Ntk_t *)pObj->
pData;
319 if ( pNtk->fHieVisited == 0 )
322 pNtk->fHieVisited = 0;
static int Abc_ObjIsLatch(Abc_Obj_t *pObj)
static void Vec_PtrPush(Vec_Ptr_t *p, void *Entry)
static int Vec_PtrSize(Vec_Ptr_t *p)
#define Abc_NtkForEachBox(pNtk, pObj, i)
static void Vec_PtrClear(Vec_Ptr_t *p)
#define Vec_PtrForEachEntry(Type, vVec, pEntry, i)
MACRO DEFINITIONS ///.
Function*************************************************************
Synopsis [Frees the library.]
Description []
SideEffects []
SeeAlso []
Definition at line 94 of file abcLib.c.
108 if ( pNtk == pNtkSave )
void st__free_table(st__table *table)
ABC_DLL void Abc_NtkDelete(Abc_Ntk_t *pNtk)
void Hop_ManStop(Hop_Man_t *p)
#define Vec_PtrForEachEntry(Type, vVec, pEntry, i)
MACRO DEFINITIONS ///.
typedefABC_NAMESPACE_HEADER_START struct Hop_Man_t_ Hop_Man_t
INCLUDES ///.
static void Vec_PtrFree(Vec_Ptr_t *p)
Function*************************************************************
Synopsis [Prints the library.]
Description []
SideEffects []
SeeAlso []
Definition at line 194 of file abcLib.c.
199 printf(
"Models of design %s:\n", p->
pName );
202 printf(
"%2d : %20s ", i+1, pNtk->
pName );
203 printf(
"nd = %6d lat = %6d whitebox = %3d blackbox = %3d\n",
#define Abc_NtkForEachWhitebox(pNtk, pObj, i)
static int Abc_NtkLatchNum(Abc_Ntk_t *pNtk)
static int Abc_NtkWhiteboxNum(Abc_Ntk_t *pNtk)
static int Abc_NtkNodeNum(Abc_Ntk_t *pNtk)
#define Abc_NtkForEachBlackbox(pNtk, pObj, i)
static char * Abc_NtkName(Abc_Ntk_t *pNtk)
static int Abc_NtkBlackboxNum(Abc_Ntk_t *pNtk)
#define Vec_PtrForEachEntry(Type, vVec, pEntry, i)
MACRO DEFINITIONS ///.
Function*************************************************************
Synopsis [Derive the AIG of the logic in the netlist.]
Description []
SideEffects []
SeeAlso []
Definition at line 366 of file abcLib.c.
370 unsigned * pPolarity;
374 pPolarity = (
unsigned *)pBox->
pNext;
static int Abc_NtkIsNetlist(Abc_Ntk_t *pNtk)
static int Abc_InfoHasBit(unsigned *p, int i)
static Abc_Obj_t * Abc_ObjFanin0Ntk(Abc_Obj_t *pObj)
static int Abc_NtkLatchNum(Abc_Ntk_t *pNtk)
static Abc_Obj_t * Abc_ObjFanin0(Abc_Obj_t *pObj)
void Abc_NodeStrashUsingNetwork_rec(Abc_Ntk_t *pNtkAig, Abc_Obj_t *pObj)
ABC_DLL void Abc_NtkCleanCopy(Abc_Ntk_t *pNtk)
static Abc_Obj_t * Abc_ObjNotCond(Abc_Obj_t *p, int c)
static int Abc_ObjIsBox(Abc_Obj_t *pObj)
#define Abc_NtkForEachPo(pNtk, pPo, i)
static Abc_Obj_t * Abc_ObjFanout(Abc_Obj_t *pObj, int i)
static Abc_Obj_t * Abc_ObjFanin(Abc_Obj_t *pObj, int i)
static Abc_Obj_t * Abc_ObjFanout0(Abc_Obj_t *pObj)
#define Abc_NtkForEachPi(pNtk, pPi, i)
Function*************************************************************
Synopsis [Derive the AIG of the logic in the netlist.]
Description []
SideEffects []
SeeAlso []
Definition at line 339 of file abcLib.c.
static Abc_Obj_t * Abc_ObjFanin0Ntk(Abc_Obj_t *pObj)
static Abc_Obj_t * Abc_ObjFanin0(Abc_Obj_t *pObj)
ABC_DLL Abc_Obj_t * Abc_NodeStrash(Abc_Ntk_t *pNtkNew, Abc_Obj_t *pNode, int fRecord)
void Abc_NodeStrashUsingNetwork_rec(Abc_Ntk_t *pNtkAig, Abc_Obj_t *pObj)
#define Abc_ObjForEachFanin(pObj, pFanin, i)
static int Abc_ObjIsNet(Abc_Obj_t *pObj)
static Abc_Obj_t * Abc_ObjFanout0(Abc_Obj_t *pObj)