abc-master
|
#include "gia.h"
Go to the source code of this file.
Data Structures | |
struct | Gli_Obj_t_ |
struct | Gli_Man_t_ |
Macros | |
#define | Gli_ManForEachObj(p, pObj, i) for ( i = 0; (i < p->nObjData) && (pObj = Gli_ManObj(p,i)); i += Gli_ObjSize(pObj) ) |
#define | Gli_ManForEachNode(p, pObj, i) for ( i = 0; (i < p->nObjData) && (pObj = Gli_ManObj(p,i)); i += Gli_ObjSize(pObj) ) if ( Gli_ObjIsTerm(pObj) ) {} else |
#define | Gli_ManForEachEntry(vVec, p, pObj, i) for ( i = 0; (i < Vec_IntSize(vVec)) && (pObj = Gli_ManObj(p,Vec_IntEntry(vVec,i))); i++ ) |
#define | Gli_ManForEachCi(p, pObj, i) for ( i = 0; (i < Vec_IntSize(p->vCis)) && (pObj = Gli_ManObj(p,Vec_IntEntry(p->vCis,i))); i++ ) |
#define | Gli_ManForEachCo(p, pObj, i) for ( i = 0; (i < Vec_IntSize(p->vCos)) && (pObj = Gli_ManObj(p,Vec_IntEntry(p->vCos,i))); i++ ) |
#define | Gli_ManForEachPi(p, pObj, i) for ( i = 0; (i < Gli_ManPiNum(p)) && ((pObj) = Gli_ManCi(p, i)); i++ ) |
#define | Gli_ManForEachPo(p, pObj, i) for ( i = 0; (i < Gli_ManPoNum(p)) && ((pObj) = Gli_ManCo(p, i)); i++ ) |
#define | Gli_ManForEachRo(p, pObj, i) for ( i = 0; (i < Gli_ManRegNum(p)) && ((pObj) = Gli_ManCi(p, Gli_ManPiNum(p)+i)); i++ ) |
#define | Gli_ManForEachRi(p, pObj, i) for ( i = 0; (i < Gli_ManRegNum(p)) && ((pObj) = Gli_ManCo(p, Gli_ManPoNum(p)+i)); i++ ) |
#define | Gli_ManForEachRiRo(p, pObjRi, pObjRo, i) for ( i = 0; (i < Gli_ManRegNum(p)) && ((pObjRi) = Gli_ManCo(p, Gli_ManPoNum(p)+i)) && ((pObjRo) = Gli_ManCi(p, Gli_ManPiNum(p)+i)); i++ ) |
#define | Gli_ObjForEachFanin(pObj, pNext, i) for ( i = 0; (i < (int)pObj->nFanins) && (pNext = Gli_ObjFanin(pObj,i)); i++ ) |
#define | Gli_ObjForEachFanout(pObj, pNext, i) for ( i = 0; (i < (int)pObj->nFanouts) && (pNext = Gli_ObjFanout(pObj,i)); i++ ) |
Typedefs | |
typedef typedefABC_NAMESPACE_IMPL_START struct Gli_Obj_t_ | Gli_Obj_t |
DECLARATIONS ///. More... | |
typedef struct Gli_Man_t_ | Gli_Man_t |
#define Gli_ManForEachCi | ( | p, | |
pObj, | |||
i | |||
) | for ( i = 0; (i < Vec_IntSize(p->vCis)) && (pObj = Gli_ManObj(p,Vec_IntEntry(p->vCis,i))); i++ ) |
Definition at line 108 of file giaGlitch.c.
#define Gli_ManForEachCo | ( | p, | |
pObj, | |||
i | |||
) | for ( i = 0; (i < Vec_IntSize(p->vCos)) && (pObj = Gli_ManObj(p,Vec_IntEntry(p->vCos,i))); i++ ) |
Definition at line 110 of file giaGlitch.c.
#define Gli_ManForEachEntry | ( | vVec, | |
p, | |||
pObj, | |||
i | |||
) | for ( i = 0; (i < Vec_IntSize(vVec)) && (pObj = Gli_ManObj(p,Vec_IntEntry(vVec,i))); i++ ) |
Definition at line 106 of file giaGlitch.c.
#define Gli_ManForEachNode | ( | p, | |
pObj, | |||
i | |||
) | for ( i = 0; (i < p->nObjData) && (pObj = Gli_ManObj(p,i)); i += Gli_ObjSize(pObj) ) if ( Gli_ObjIsTerm(pObj) ) {} else |
Definition at line 103 of file giaGlitch.c.
#define Gli_ManForEachObj | ( | p, | |
pObj, | |||
i | |||
) | for ( i = 0; (i < p->nObjData) && (pObj = Gli_ManObj(p,i)); i += Gli_ObjSize(pObj) ) |
Definition at line 101 of file giaGlitch.c.
#define Gli_ManForEachPi | ( | p, | |
pObj, | |||
i | |||
) | for ( i = 0; (i < Gli_ManPiNum(p)) && ((pObj) = Gli_ManCi(p, i)); i++ ) |
Definition at line 113 of file giaGlitch.c.
#define Gli_ManForEachPo | ( | p, | |
pObj, | |||
i | |||
) | for ( i = 0; (i < Gli_ManPoNum(p)) && ((pObj) = Gli_ManCo(p, i)); i++ ) |
Definition at line 115 of file giaGlitch.c.
#define Gli_ManForEachRi | ( | p, | |
pObj, | |||
i | |||
) | for ( i = 0; (i < Gli_ManRegNum(p)) && ((pObj) = Gli_ManCo(p, Gli_ManPoNum(p)+i)); i++ ) |
Definition at line 119 of file giaGlitch.c.
#define Gli_ManForEachRiRo | ( | p, | |
pObjRi, | |||
pObjRo, | |||
i | |||
) | for ( i = 0; (i < Gli_ManRegNum(p)) && ((pObjRi) = Gli_ManCo(p, Gli_ManPoNum(p)+i)) && ((pObjRo) = Gli_ManCi(p, Gli_ManPiNum(p)+i)); i++ ) |
Definition at line 121 of file giaGlitch.c.
#define Gli_ManForEachRo | ( | p, | |
pObj, | |||
i | |||
) | for ( i = 0; (i < Gli_ManRegNum(p)) && ((pObj) = Gli_ManCi(p, Gli_ManPiNum(p)+i)); i++ ) |
Definition at line 117 of file giaGlitch.c.
#define Gli_ObjForEachFanin | ( | pObj, | |
pNext, | |||
i | |||
) | for ( i = 0; (i < (int)pObj->nFanins) && (pNext = Gli_ObjFanin(pObj,i)); i++ ) |
Definition at line 124 of file giaGlitch.c.
#define Gli_ObjForEachFanout | ( | pObj, | |
pNext, | |||
i | |||
) | for ( i = 0; (i < (int)pObj->nFanouts) && (pNext = Gli_ObjFanout(pObj,i)); i++ ) |
Definition at line 126 of file giaGlitch.c.
typedef struct Gli_Man_t_ Gli_Man_t |
Definition at line 55 of file giaGlitch.c.
typedef typedefABC_NAMESPACE_IMPL_START struct Gli_Obj_t_ Gli_Obj_t |
DECLARATIONS ///.
CFile****************************************************************
FileName [giaGlitch.c]
SystemName [ABC: Logic synthesis and verification system.]
PackageName [Scalable AIG package.]
Synopsis [Glitch simulation.]
Author [Alan Mishchenko]
Affiliation [UC Berkeley]
Date [Ver. 1.0. Started - June 20, 2005.]
Revision [
]
Definition at line 30 of file giaGlitch.c.
Gli_Man_t* Gli_ManAlloc | ( | int | nObjs, |
int | nRegs, | ||
int | nFanioPairs | ||
) |
FUNCTION DEFINITIONS ///.
Function*************************************************************
Synopsis [Creates logic network.]
Description []
SideEffects []
SeeAlso []
Definition at line 144 of file giaGlitch.c.
Definition at line 82 of file giaGlitch.c.
|
inlinestatic |
Definition at line 73 of file giaGlitch.c.
Definition at line 83 of file giaGlitch.c.
|
inlinestatic |
Definition at line 74 of file giaGlitch.c.
int Gli_ManCreateCi | ( | Gli_Man_t * | p, |
int | nFanouts | ||
) |
Function*************************************************************
Synopsis [Creates CI.]
Description []
SideEffects []
SeeAlso []
Definition at line 288 of file giaGlitch.c.
int Gli_ManCreateCo | ( | Gli_Man_t * | p, |
int | iFanin | ||
) |
Function*************************************************************
Synopsis [Creates CO.]
Description []
SideEffects []
SeeAlso []
Definition at line 308 of file giaGlitch.c.
Function*************************************************************
Synopsis [Creates node.]
Description []
SideEffects []
SeeAlso []
Definition at line 369 of file giaGlitch.c.
void Gli_ManFinalize | ( | Gli_Man_t * | p | ) |
Function*************************************************************
Synopsis [Checks logic network.]
Description []
SideEffects []
SeeAlso []
Definition at line 221 of file giaGlitch.c.
void Gli_ManGlitching | ( | Gli_Man_t * | p | ) |
Function*************************************************************
Synopsis [Computes glitching activity of each node.]
Description []
SideEffects []
SeeAlso []
Definition at line 507 of file giaGlitch.c.
|
inlinestatic |
Definition at line 79 of file giaGlitch.c.
Definition at line 81 of file giaGlitch.c.
|
inlinestatic |
Definition at line 78 of file giaGlitch.c.
Definition at line 84 of file giaGlitch.c.
|
inlinestatic |
Definition at line 75 of file giaGlitch.c.
Definition at line 85 of file giaGlitch.c.
|
inlinestatic |
Definition at line 76 of file giaGlitch.c.
void Gli_ManPrintObjects | ( | Gli_Man_t * | p | ) |
Function*************************************************************
Synopsis [Checks logic network.]
Description []
SideEffects []
SeeAlso []
Definition at line 192 of file giaGlitch.c.
|
inlinestatic |
Definition at line 77 of file giaGlitch.c.
Definition at line 87 of file giaGlitch.c.
Definition at line 86 of file giaGlitch.c.
void Gli_ManSetDataSaved | ( | Gli_Man_t * | p, |
int | iBit | ||
) |
Function*************************************************************
Synopsis [Initialized object values to be one pattern in the saved data.]
Description []
SideEffects []
SeeAlso []
Definition at line 676 of file giaGlitch.c.
void Gli_ManSetPiFromSaved | ( | Gli_Man_t * | p, |
int | iBit | ||
) |
Function*************************************************************
Synopsis [Sets random info at the PIs and collects changed PIs.]
Description []
SideEffects []
SeeAlso []
Definition at line 456 of file giaGlitch.c.
void Gli_ManSetPiRandom | ( | Gli_Man_t * | p, |
float | PiTransProb | ||
) |
Function*************************************************************
Synopsis [Sets random info at the PIs and collects changed PIs.]
Description []
SideEffects []
SeeAlso []
Definition at line 427 of file giaGlitch.c.
void Gli_ManSetPiRandomSeq | ( | Gli_Man_t * | p, |
float | PiTransProb | ||
) |
Function*************************************************************
Synopsis [Sets random info at the PIs and collects changed PIs.]
Description []
SideEffects []
SeeAlso []
Definition at line 697 of file giaGlitch.c.
Function*************************************************************
Synopsis [Simulates one node.]
Description []
SideEffects []
SeeAlso []
Definition at line 581 of file giaGlitch.c.
void Gli_ManSimulateSeqPref | ( | Gli_Man_t * | p, |
int | nPref | ||
) |
Function*************************************************************
Synopsis [Simulates sequential network randomly for the given number of frames.]
Description []
SideEffects []
SeeAlso []
Definition at line 636 of file giaGlitch.c.
void Gli_ManStop | ( | Gli_Man_t * | p | ) |
Function*************************************************************
Synopsis [Deletes logic network.]
Description []
SideEffects []
SeeAlso []
Definition at line 170 of file giaGlitch.c.
void Gli_ManSwitchesAndGlitches | ( | Gli_Man_t * | p, |
int | nPatterns, | ||
float | PiTransProb, | ||
int | fVerbose | ||
) |
Function*************************************************************
Synopsis [Computes glitching activity of each node.]
Description []
SideEffects []
SeeAlso []
Definition at line 741 of file giaGlitch.c.
void Gli_ManSwitching | ( | Gli_Man_t * | p | ) |
Function*************************************************************
Synopsis [Computes switching activity of each node.]
Description []
SideEffects []
SeeAlso []
Definition at line 483 of file giaGlitch.c.
|
inlinestatic |
Function*************************************************************
Synopsis [Simulates one node.]
Description []
SideEffects []
SeeAlso []
Definition at line 613 of file giaGlitch.c.
void Gli_ManVerify | ( | Gli_Man_t * | p | ) |
Function*************************************************************
Synopsis [Checks that the resulting values are the same.]
Description []
SideEffects []
SeeAlso []
Definition at line 559 of file giaGlitch.c.
|
inlinestatic |
Function*************************************************************
Synopsis [Creates node.]
Description []
SideEffects []
SeeAlso []
Definition at line 331 of file giaGlitch.c.
|
inlinestatic |
Function*************************************************************
Synopsis [Creates node.]
Description []
SideEffects []
SeeAlso []
Definition at line 350 of file giaGlitch.c.
Function*************************************************************
Synopsis [Creates fanin/fanout pair.]
Description []
SideEffects []
SeeAlso []
Definition at line 246 of file giaGlitch.c.
Function*************************************************************
Synopsis [Allocates object.]
Description []
SideEffects []
SeeAlso []
Definition at line 265 of file giaGlitch.c.
Definition at line 98 of file giaGlitch.c.
|
inlinestatic |
Definition at line 94 of file giaGlitch.c.
Definition at line 99 of file giaGlitch.c.
|
inlinestatic |
Definition at line 95 of file giaGlitch.c.
|
inlinestatic |
Definition at line 90 of file giaGlitch.c.
|
inlinestatic |
Definition at line 91 of file giaGlitch.c.
|
inlinestatic |
Definition at line 92 of file giaGlitch.c.
|
inlinestatic |
Definition at line 89 of file giaGlitch.c.
int Gli_ObjNumGlitches | ( | Gli_Man_t * | p, |
int | iNode | ||
) |
Function*************************************************************
Synopsis [Returns the number of glitches of the node.]
Description []
SideEffects []
SeeAlso []
Definition at line 410 of file giaGlitch.c.
int Gli_ObjNumSwitches | ( | Gli_Man_t * | p, |
int | iNode | ||
) |
Function*************************************************************
Synopsis [Returns the number of switches of the node.]
Description []
SideEffects []
SeeAlso []
Definition at line 394 of file giaGlitch.c.
|
inlinestatic |
Definition at line 96 of file giaGlitch.c.