abc-master
|
Go to the source code of this file.
Data Structures | |
struct | Aig_VSig_t_ |
struct | Aig_Tru_t_ |
struct | Aig_RMan_t_ |
Macros | |
#define | RMAN_MAXVARS 12 |
DECLARATIONS ///. More... | |
#define | RMAX_MAXWORD (RMAN_MAXVARS <= 5 ? 1 : (1 << (RMAN_MAXVARS - 5))) |
Typedefs | |
typedef struct Aig_VSig_t_ | Aig_VSig_t |
typedef struct Aig_Tru_t_ | Aig_Tru_t |
typedef struct Aig_RMan_t_ | Aig_RMan_t |
Functions | |
Aig_RMan_t * | Aig_RManStart () |
FUNCTION DEFINITIONS ///. More... | |
static int | Aig_RManTableHash (unsigned *pTruth, int nVars, int nBins, int *pPrimes) |
Aig_Tru_t ** | Aig_RManTableLookup (Aig_RMan_t *p, unsigned *pTruth, int nVars) |
void | Aig_RManTableResize (Aig_RMan_t *p) |
int | Aig_RManTableFindOrAdd (Aig_RMan_t *p, unsigned *pTruth, int nVars) |
void | Aig_RManStop (Aig_RMan_t *p) |
void | Aig_RManQuit () |
void | Aig_RManPrintVarProfile (unsigned *pTruth, int nVars, unsigned *pTruthAux) |
void | Aig_RManSortNums (int *pArray, int nVars) |
void | Aig_RManPrintSigs (Aig_VSig_t *pSigs, int nVars) |
void | Aig_RManComputeVSigs (unsigned *pTruth, int nVars, Aig_VSig_t *pSigs, unsigned *pAux) |
static int | Aig_RManCompareSigs (Aig_VSig_t *p0, Aig_VSig_t *p1, int nVars) |
int | Aig_RManVarsAreUnique (Aig_VSig_t *pMints, int nVars) |
void | Aig_RManPrintUniqueVars (Aig_VSig_t *pMints, int nVars) |
unsigned | Aig_RManSemiCanonicize (unsigned *pOut, unsigned *pIn, int nVars, char *pCanonPerm, Aig_VSig_t *pSigs, int fReturnIn) |
static Aig_Obj_t * | Bdc_FunCopyHop (Bdc_Fun_t *pObj) |
void | Aig_RManSaveOne (Aig_RMan_t *p, unsigned *pTruth, int nVars) |
void | Aig_RManRecord (unsigned *pTruth, int nVarsInit) |
Variables | |
static Aig_RMan_t * | s_pRMan = NULL |
#define RMAN_MAXVARS 12 |
DECLARATIONS ///.
CFile****************************************************************
FileName [aigCanon.c]
SystemName [ABC: Logic synthesis and verification system.]
PackageName [AIG package.]
Synopsis [Processing the library of semi-canonical AIGs.]
Author [Alan Mishchenko]
Affiliation [UC Berkeley]
Date [Ver. 1.0. Started - April 28, 2007.]
Revision [
]
Definition at line 33 of file aigCanon.c.
#define RMAX_MAXWORD (RMAN_MAXVARS <= 5 ? 1 : (1 << (RMAN_MAXVARS - 5))) |
Definition at line 34 of file aigCanon.c.
typedef struct Aig_RMan_t_ Aig_RMan_t |
Definition at line 53 of file aigCanon.c.
typedef struct Aig_Tru_t_ Aig_Tru_t |
Definition at line 43 of file aigCanon.c.
typedef struct Aig_VSig_t_ Aig_VSig_t |
Definition at line 36 of file aigCanon.c.
|
inlinestatic |
Function*************************************************************
Synopsis [Computs signatures for all variables.]
Description []
SideEffects []
SeeAlso []
Definition at line 410 of file aigCanon.c.
void Aig_RManComputeVSigs | ( | unsigned * | pTruth, |
int | nVars, | ||
Aig_VSig_t * | pSigs, | ||
unsigned * | pAux | ||
) |
Function*************************************************************
Synopsis [Computes signatures for all variables.]
Description []
SideEffects []
SeeAlso []
Definition at line 382 of file aigCanon.c.
void Aig_RManPrintSigs | ( | Aig_VSig_t * | pSigs, |
int | nVars | ||
) |
Function*************************************************************
Synopsis [Prints signatures for all variables.]
Description []
SideEffects []
SeeAlso []
Definition at line 353 of file aigCanon.c.
void Aig_RManPrintUniqueVars | ( | Aig_VSig_t * | pMints, |
int | nVars | ||
) |
Function*************************************************************
Synopsis [Returns 1 if all variables are unique.]
Description []
SideEffects []
SeeAlso []
Definition at line 447 of file aigCanon.c.
void Aig_RManPrintVarProfile | ( | unsigned * | pTruth, |
int | nVars, | ||
unsigned * | pTruthAux | ||
) |
Function*************************************************************
Synopsis [Returns 1 if all variables are unique.]
Description []
SideEffects []
SeeAlso []
Definition at line 308 of file aigCanon.c.
void Aig_RManQuit | ( | ) |
Function*************************************************************
Synopsis [Stops recording.]
Description []
SideEffects []
SeeAlso []
Definition at line 283 of file aigCanon.c.
void Aig_RManRecord | ( | unsigned * | pTruth, |
int | nVarsInit | ||
) |
Function*************************************************************
Synopsis [Records one function.]
Description []
SideEffects []
SeeAlso []
Definition at line 598 of file aigCanon.c.
void Aig_RManSaveOne | ( | Aig_RMan_t * | p, |
unsigned * | pTruth, | ||
int | nVars | ||
) |
Function*************************************************************
Synopsis [Records one function.]
Description []
SideEffects []
SeeAlso []
Definition at line 558 of file aigCanon.c.
unsigned Aig_RManSemiCanonicize | ( | unsigned * | pOut, |
unsigned * | pIn, | ||
int | nVars, | ||
char * | pCanonPerm, | ||
Aig_VSig_t * | pSigs, | ||
int | fReturnIn | ||
) |
Function*************************************************************
Synopsis [Canonicize the truth table.]
Description [Returns the phase. ]
SideEffects []
SeeAlso []
Definition at line 479 of file aigCanon.c.
void Aig_RManSortNums | ( | int * | pArray, |
int | nVars | ||
) |
Function*************************************************************
Synopsis [Sorts numbers in the increasing order.]
Description []
SideEffects []
SeeAlso []
Definition at line 329 of file aigCanon.c.
Aig_RMan_t* Aig_RManStart | ( | ) |
FUNCTION DEFINITIONS ///.
Function*************************************************************
Synopsis [Allocates recording manager.]
Description []
SideEffects []
SeeAlso []
Definition at line 99 of file aigCanon.c.
void Aig_RManStop | ( | Aig_RMan_t * | p | ) |
Function*************************************************************
Synopsis [Deallocates recording manager.]
Description []
SideEffects []
SeeAlso []
Definition at line 252 of file aigCanon.c.
int Aig_RManTableFindOrAdd | ( | Aig_RMan_t * | p, |
unsigned * | pTruth, | ||
int | nVars | ||
) |
Function*************************************************************
Synopsis [Find or add new entry.]
Description [Returns 1 if this is a new entry.]
SideEffects []
SeeAlso []
Definition at line 218 of file aigCanon.c.
|
inlinestatic |
Function*************************************************************
Synopsis [Returns the hash key.]
Description []
SideEffects []
SeeAlso []
Definition at line 130 of file aigCanon.c.
Aig_Tru_t** Aig_RManTableLookup | ( | Aig_RMan_t * | p, |
unsigned * | pTruth, | ||
int | nVars | ||
) |
Function*************************************************************
Synopsis [Returns the given record.]
Description []
SideEffects []
SeeAlso []
Definition at line 150 of file aigCanon.c.
void Aig_RManTableResize | ( | Aig_RMan_t * | p | ) |
Function*************************************************************
Synopsis [Find or add new entry.]
Description []
SideEffects []
SeeAlso []
Definition at line 174 of file aigCanon.c.
int Aig_RManVarsAreUnique | ( | Aig_VSig_t * | pMints, |
int | nVars | ||
) |
Function*************************************************************
Synopsis [Returns 1 if all variables are unique.]
Description []
SideEffects []
SeeAlso []
Definition at line 427 of file aigCanon.c.
Function*************************************************************
Synopsis []
Description []
SideEffects []
SeeAlso []
Definition at line 544 of file aigCanon.c.
|
static |
Definition at line 82 of file aigCanon.c.