abc-master
|
#include "saig.h"
Go to the source code of this file.
Data Structures | |
struct | Saig_MvObj_t_ |
struct | Saig_MvAnd_t_ |
struct | Saig_MvMan_t_ |
Macros | |
#define | SAIG_DIFF_VALUES 8 |
DECLARATIONS ///. More... | |
#define | SAIG_UNDEF_VALUE 0x1ffffffe |
#define | Saig_MvManForEachObj(pAig, pEntry) for ( pEntry = pAig; pEntry->Type != AIG_OBJ_VOID; pEntry++ ) |
Typedefs | |
typedef struct Saig_MvObj_t_ | Saig_MvObj_t |
typedef struct Saig_MvAnd_t_ | Saig_MvAnd_t |
typedef struct Saig_MvMan_t_ | Saig_MvMan_t |
Functions | |
static int | Saig_MvObjFaninC0 (Saig_MvObj_t *pObj) |
static int | Saig_MvObjFaninC1 (Saig_MvObj_t *pObj) |
static int | Saig_MvObjFanin0 (Saig_MvObj_t *pObj) |
static int | Saig_MvObjFanin1 (Saig_MvObj_t *pObj) |
static int | Saig_MvConst0 () |
static int | Saig_MvConst1 () |
static int | Saig_MvConst (int c) |
static int | Saig_MvUndef () |
static int | Saig_MvIsConst0 (int iNode) |
static int | Saig_MvIsConst1 (int iNode) |
static int | Saig_MvIsConst (int iNode) |
static int | Saig_MvIsUndef (int iNode) |
static int | Saig_MvRegular (int iNode) |
static int | Saig_MvNot (int iNode) |
static int | Saig_MvNotCond (int iNode, int c) |
static int | Saig_MvIsComplement (int iNode) |
static int | Saig_MvLit2Var (int iNode) |
static int | Saig_MvVar2Lit (int iVar) |
static int | Saig_MvLev (Saig_MvMan_t *p, int iNode) |
Saig_MvObj_t * | Saig_ManCreateReducedAig (Aig_Man_t *p, Vec_Ptr_t **pvFlops) |
FUNCTION DEFINITIONS ///. More... | |
static int | Saig_MvCreateObj (Saig_MvMan_t *p, int iFan0, int iFan1) |
Saig_MvMan_t * | Saig_MvManStart (Aig_Man_t *pAig, int nFramesSatur) |
void | Saig_MvManStop (Saig_MvMan_t *p) |
static int | Saig_MvHash (int iFan0, int iFan1, int TableSize) |
static int * | Saig_MvTableFind (Saig_MvMan_t *p, int iFan0, int iFan1) |
static int | Saig_MvAnd (Saig_MvMan_t *p, int iFan0, int iFan1, int fFirst) |
static int | Saig_MvSimulateValue0 (Saig_MvObj_t *pAig, Saig_MvObj_t *pObj) |
static int | Saig_MvSimulateValue1 (Saig_MvObj_t *pAig, Saig_MvObj_t *pObj) |
void | Saig_MvPrintState (int Iter, Saig_MvMan_t *p) |
void | Saig_MvSimulateFrame (Saig_MvMan_t *p, int fFirst, int fVerbose) |
int | Saig_MvSimHash (unsigned *pState, int nFlops, int TableSize) |
static unsigned * | Saig_MvSimTableFind (Saig_MvMan_t *p, unsigned *pState) |
int | Saig_MvSaveState (Saig_MvMan_t *p) |
void | Saig_MvManPostProcess (Saig_MvMan_t *p, int iState) |
Vec_Int_t * | Saig_MvManFindXFlops (Saig_MvMan_t *p) |
int | Saig_MvManCheckOscilator (Saig_MvMan_t *p, int iFlop) |
Vec_Int_t * | Saig_MvManFindConstBinaryFlops (Saig_MvMan_t *p, Vec_Int_t **pvBinary) |
Vec_Int_t * | Saig_MvManFindOscilators (Saig_MvMan_t *p, Vec_Int_t **pvConst0) |
Vec_Int_t * | Saig_MvManCreateNextSkip (Saig_MvMan_t *p) |
Vec_Ptr_t * | Saig_MvManDeriveMap (Saig_MvMan_t *p, int fVerbose) |
Vec_Ptr_t * | Saig_MvManSimulate (Aig_Man_t *pAig, int nFramesSymb, int nFramesSatur, int fVerbose, int fVeryVerbose) |
#define SAIG_DIFF_VALUES 8 |
DECLARATIONS ///.
CFile****************************************************************
FileName [saigSimMv.c]
SystemName [ABC: Logic synthesis and verification system.]
PackageName [Sequential AIG package.]
Synopsis [Multi-valued simulation.]
Author [Alan Mishchenko]
Affiliation [UC Berkeley]
Date [Ver. 1.0. Started - June 20, 2005.]
Revision [
]
Definition at line 30 of file saigSimMv.c.
#define Saig_MvManForEachObj | ( | pAig, | |
pEntry | |||
) | for ( pEntry = pAig; pEntry->Type != AIG_OBJ_VOID; pEntry++ ) |
Definition at line 112 of file saigSimMv.c.
#define SAIG_UNDEF_VALUE 0x1ffffffe |
Definition at line 31 of file saigSimMv.c.
typedef struct Saig_MvAnd_t_ Saig_MvAnd_t |
Definition at line 44 of file saigSimMv.c.
typedef struct Saig_MvMan_t_ Saig_MvMan_t |
Definition at line 53 of file saigSimMv.c.
typedef struct Saig_MvObj_t_ Saig_MvObj_t |
Definition at line 34 of file saigSimMv.c.
Saig_MvObj_t* Saig_ManCreateReducedAig | ( | Aig_Man_t * | p, |
Vec_Ptr_t ** | pvFlops | ||
) |
FUNCTION DEFINITIONS ///.
Function*************************************************************
Synopsis [Creates reduced manager.]
Description []
SideEffects []
SeeAlso []
Definition at line 130 of file saigSimMv.c.
|
inlinestatic |
Function*************************************************************
Synopsis [Performs an AND-operation.]
Description []
SideEffects []
SeeAlso []
Definition at line 326 of file saigSimMv.c.
|
inlinestatic |
Definition at line 94 of file saigSimMv.c.
|
inlinestatic |
Definition at line 92 of file saigSimMv.c.
|
inlinestatic |
Definition at line 93 of file saigSimMv.c.
|
inlinestatic |
Function*************************************************************
Synopsis [Creates a new node.]
Description []
SideEffects []
SeeAlso []
Definition at line 173 of file saigSimMv.c.
|
inlinestatic |
Function*************************************************************
Synopsis [Hashing the node.]
Description []
SideEffects []
SeeAlso []
Definition at line 282 of file saigSimMv.c.
|
inlinestatic |
Definition at line 105 of file saigSimMv.c.
|
inlinestatic |
Definition at line 99 of file saigSimMv.c.
|
inlinestatic |
Definition at line 97 of file saigSimMv.c.
|
inlinestatic |
Definition at line 98 of file saigSimMv.c.
|
inlinestatic |
Definition at line 100 of file saigSimMv.c.
|
inlinestatic |
Definition at line 109 of file saigSimMv.c.
|
inlinestatic |
Definition at line 107 of file saigSimMv.c.
int Saig_MvManCheckOscilator | ( | Saig_MvMan_t * | p, |
int | iFlop | ||
) |
Function*************************************************************
Synopsis [Checks if the flop is an oscilator.]
Description []
SideEffects []
SeeAlso []
Definition at line 670 of file saigSimMv.c.
Vec_Int_t* Saig_MvManCreateNextSkip | ( | Saig_MvMan_t * | p | ) |
Function*************************************************************
Synopsis [Find constants and oscilators.]
Description []
SideEffects []
SeeAlso []
Definition at line 793 of file saigSimMv.c.
Vec_Ptr_t* Saig_MvManDeriveMap | ( | Saig_MvMan_t * | p, |
int | fVerbose | ||
) |
Function*************************************************************
Synopsis [Finds equivalent flops.]
Description []
SideEffects []
SeeAlso []
Definition at line 821 of file saigSimMv.c.
Vec_Int_t* Saig_MvManFindConstBinaryFlops | ( | Saig_MvMan_t * | p, |
Vec_Int_t ** | pvBinary | ||
) |
Function*************************************************************
Synopsis [Returns const0 and binary flops.]
Description []
SideEffects []
SeeAlso []
Definition at line 725 of file saigSimMv.c.
Vec_Int_t* Saig_MvManFindOscilators | ( | Saig_MvMan_t * | p, |
Vec_Int_t ** | pvConst0 | ||
) |
Function*************************************************************
Synopsis [Find oscilators.]
Description []
SideEffects []
SeeAlso []
Definition at line 767 of file saigSimMv.c.
Vec_Int_t* Saig_MvManFindXFlops | ( | Saig_MvMan_t * | p | ) |
Function*************************************************************
Synopsis [Performs multi-valued simulation.]
Description []
SideEffects []
SeeAlso []
Definition at line 644 of file saigSimMv.c.
void Saig_MvManPostProcess | ( | Saig_MvMan_t * | p, |
int | iState | ||
) |
Function*************************************************************
Synopsis [Performs multi-valued simulation.]
Description []
SideEffects []
SeeAlso []
Definition at line 571 of file saigSimMv.c.
Vec_Ptr_t* Saig_MvManSimulate | ( | Aig_Man_t * | pAig, |
int | nFramesSymb, | ||
int | nFramesSatur, | ||
int | fVerbose, | ||
int | fVeryVerbose | ||
) |
Function*************************************************************
Synopsis [Performs multi-valued simulation.]
Description []
SideEffects []
SeeAlso []
Definition at line 879 of file saigSimMv.c.
Saig_MvMan_t* Saig_MvManStart | ( | Aig_Man_t * | pAig, |
int | nFramesSatur | ||
) |
Function*************************************************************
Synopsis [Creates multi-valued simulation manager.]
Description []
SideEffects []
SeeAlso []
Definition at line 204 of file saigSimMv.c.
void Saig_MvManStop | ( | Saig_MvMan_t * | p | ) |
Function*************************************************************
Synopsis [Destroys multi-valued simulation manager.]
Description []
SideEffects []
SeeAlso []
Definition at line 252 of file saigSimMv.c.
|
inlinestatic |
Definition at line 103 of file saigSimMv.c.
|
inlinestatic |
Definition at line 104 of file saigSimMv.c.
|
inlinestatic |
Definition at line 89 of file saigSimMv.c.
|
inlinestatic |
Definition at line 90 of file saigSimMv.c.
|
inlinestatic |
Definition at line 87 of file saigSimMv.c.
|
inlinestatic |
Definition at line 88 of file saigSimMv.c.
void Saig_MvPrintState | ( | int | Iter, |
Saig_MvMan_t * | p | ||
) |
Function*************************************************************
Synopsis [Prints MV state.]
Description []
SideEffects []
SeeAlso []
Definition at line 407 of file saigSimMv.c.
|
inlinestatic |
Definition at line 102 of file saigSimMv.c.
int Saig_MvSaveState | ( | Saig_MvMan_t * | p | ) |
Function*************************************************************
Synopsis [Saves current state.]
Description [Returns -1 if there is no fixed point.]
SideEffects []
SeeAlso []
Definition at line 543 of file saigSimMv.c.
int Saig_MvSimHash | ( | unsigned * | pState, |
int | nFlops, | ||
int | TableSize | ||
) |
Function*************************************************************
Synopsis [Computes hash value of the node using its simulation info.]
Description []
SideEffects []
SeeAlso []
Definition at line 483 of file saigSimMv.c.
|
inlinestatic |
Function*************************************************************
Synopsis [Returns the place where this state is stored (or should be stored).]
Description []
SideEffects []
SeeAlso []
Definition at line 521 of file saigSimMv.c.
void Saig_MvSimulateFrame | ( | Saig_MvMan_t * | p, |
int | fFirst, | ||
int | fVerbose | ||
) |
Function*************************************************************
Synopsis [Performs one iteration of simulation.]
Description []
SideEffects []
SeeAlso []
Definition at line 433 of file saigSimMv.c.
|
inlinestatic |
Function*************************************************************
Synopsis [Propagates one edge.]
Description []
SideEffects []
SeeAlso []
Definition at line 381 of file saigSimMv.c.
|
inlinestatic |
Definition at line 388 of file saigSimMv.c.
|
inlinestatic |
Function*************************************************************
Synopsis [Returns the place where this node is stored (or should be stored).]
Description []
SideEffects []
SeeAlso []
Definition at line 304 of file saigSimMv.c.
|
inlinestatic |
Definition at line 95 of file saigSimMv.c.
|
inlinestatic |
Definition at line 108 of file saigSimMv.c.