#include "gia.h"#include "misc/util/utilTruth.h"#include "misc/extra/extra.h"#include "aig/miniaig/miniaig.h"
Go to the source code of this file.
Classes | |
| struct | Gia_SimRsbMan_t_ |
| struct | Gia_SimAbsMan_t_ |
| struct | Gia_RsbMan_t_ |
Typedefs | |
| typedef typedefABC_NAMESPACE_IMPL_START struct Gia_SimRsbMan_t_ | Gia_SimRsbMan_t |
| DECLARATIONS ///. | |
| typedef struct Gia_SimAbsMan_t_ | Gia_SimAbsMan_t |
| typedef struct Gia_RsbMan_t_ | Gia_RsbMan_t |
| typedef struct Gia_RsbMan_t_ Gia_RsbMan_t |
Function*************************************************************
Synopsis []
Description []
SideEffects []
SeeAlso []
Definition at line 1717 of file giaSimBase.c.
| typedef struct Gia_SimAbsMan_t_ Gia_SimAbsMan_t |
Definition at line 50 of file giaSimBase.c.
| typedef typedefABC_NAMESPACE_IMPL_START struct Gia_SimRsbMan_t_ Gia_SimRsbMan_t |
DECLARATIONS ///.
CFile****************************************************************
FileName [giaSim.c]
SystemName [ABC: Logic synthesis and verification system.]
PackageName [Scalable AIG package.]
Synopsis [Fast sequential simulator.]
Author [Alan Mishchenko]
Affiliation [UC Berkeley]
Date [Ver. 1.0. Started - June 20, 2005.]
Revision [
]
Definition at line 35 of file giaSimBase.c.
Definition at line 2596 of file giaSimBase.c.


Definition at line 2579 of file giaSimBase.c.

Function*************************************************************
Synopsis []
Description []
SideEffects []
SeeAlso []
Definition at line 3639 of file giaSimBase.c.

| int Gia_ManCheckSimEquiv | ( | Gia_Man_t * | p, |
| int | fVerbose ) |
Definition at line 452 of file giaSimBase.c.

Definition at line 442 of file giaSimBase.c.

Function*************************************************************
Synopsis []
Description []
SideEffects []
SeeAlso []
Definition at line 3718 of file giaSimBase.c.

Function*************************************************************
Synopsis []
Description []
SideEffects []
SeeAlso []
Definition at line 2811 of file giaSimBase.c.

Function*************************************************************
Synopsis []
Description []
SideEffects []
SeeAlso []
Definition at line 3685 of file giaSimBase.c.


Definition at line 405 of file giaSimBase.c.


Function*************************************************************
Synopsis []
Description []
SideEffects []
SeeAlso []
Definition at line 385 of file giaSimBase.c.


Definition at line 306 of file giaSimBase.c.

Function*************************************************************
Synopsis []
Description []
SideEffects []
SeeAlso []
Definition at line 291 of file giaSimBase.c.
| int Gia_ManFindDividerVar | ( | Gia_Man_t * | p, |
| int | fVerbose ) |
Definition at line 430 of file giaSimBase.c.

Definition at line 2157 of file giaSimBase.c.

| void Gia_ManPatDistImprove | ( | Gia_Man_t * | p, |
| int | fVerbose ) |
Definition at line 2174 of file giaSimBase.c.

| float Gia_ManPatGetOneQuo | ( | Gia_Man_t * | p, |
| int | RareLimit, | ||
| Vec_Wrd_t * | vPatterns, | ||
| int | nWords, | ||
| int | n ) |
Definition at line 2337 of file giaSimBase.c.


| float Gia_ManPatGetQuo | ( | Gia_Man_t * | p, |
| Vec_Int_t * | vRareCounts, | ||
| Vec_Wrd_t * | vSims, | ||
| int | n, | ||
| int | nWords ) |
Definition at line 2307 of file giaSimBase.c.

Definition at line 2323 of file giaSimBase.c.


| void Gia_ManPatRareImprove | ( | Gia_Man_t * | p, |
| int | RareLimit, | ||
| int | fVerbose ) |
Definition at line 2350 of file giaSimBase.c.

| void Gia_ManPatSatImprove | ( | Gia_Man_t * | p, |
| int | nWords0, | ||
| int | fVerbose ) |
Definition at line 773 of file giaSimBase.c.

| void Gia_ManPatUpdateOne | ( | Gia_Man_t * | p, |
| Vec_Wrd_t * | vPatterns, | ||
| int | n, | ||
| int | nWords, | ||
| Vec_Int_t * | vPat ) |
Definition at line 2164 of file giaSimBase.c.

Definition at line 335 of file giaSimBase.c.

| Vec_Int_t * Gia_ManProcessBuffs | ( | Gia_Man_t * | pHie, |
| Vec_Wrd_t * | vSimsH, | ||
| int | nWords, | ||
| Vec_Mem_t * | vStore, | ||
| Vec_Int_t * | vLabels ) |
Function*************************************************************
Synopsis []
Description []
SideEffects []
SeeAlso []
Definition at line 2736 of file giaSimBase.c.

| void Gia_ManPtrWrdDumpBin | ( | char * | pFileName, |
| Vec_Ptr_t * | p, | ||
| int | fVerbose ) |
Function*************************************************************
Synopsis [Serialization.]
Description []
SideEffects []
SeeAlso []
Definition at line 2660 of file giaSimBase.c.
| Vec_Ptr_t * Gia_ManPtrWrdReadBin | ( | char * | pFileName, |
| int | fVerbose ) |
Definition at line 2682 of file giaSimBase.c.

Definition at line 3435 of file giaSimBase.c.


Definition at line 3411 of file giaSimBase.c.


| void Gia_ManRelCompute | ( | Gia_Man_t * | p, |
| Vec_Int_t * | vIns, | ||
| Vec_Int_t * | vDivs, | ||
| Vec_Int_t * | vOuts, | ||
| Vec_Wrd_t ** | pvSimsIn, | ||
| Vec_Wrd_t ** | pvSimsOut ) |
Definition at line 3454 of file giaSimBase.c.


Definition at line 2915 of file giaSimBase.c.


Definition at line 2959 of file giaSimBase.c.


| Vec_Wrd_t * Gia_ManRelDeriveRel | ( | Gia_Man_t * | p, |
| Vec_Int_t * | vIns, | ||
| Vec_Int_t * | vDivs, | ||
| Vec_Int_t * | vOuts, | ||
| Vec_Wrd_t * | vSims ) |
Definition at line 3349 of file giaSimBase.c.


| Vec_Int_t * Gia_ManRelDeriveSimple | ( | Gia_Man_t * | p, |
| Vec_Wrd_t * | vSims, | ||
| Vec_Int_t * | vIns, | ||
| Vec_Int_t * | vOuts ) |
Definition at line 3195 of file giaSimBase.c.

| void Gia_ManRelDeriveSims | ( | Gia_Man_t * | p, |
| Vec_Int_t * | vIns, | ||
| Vec_Int_t * | vDivs, | ||
| Vec_Int_t * | vOuts, | ||
| Vec_Wrd_t * | vSims, | ||
| Vec_Wrd_t * | vRel, | ||
| Vec_Wrd_t ** | pvSimsIn, | ||
| Vec_Wrd_t ** | pvSimsOut ) |
Definition at line 3378 of file giaSimBase.c.

| void Gia_ManRelDeriveTest | ( | Gia_Man_t * | p | ) |
Definition at line 3254 of file giaSimBase.c.

| void Gia_ManRelDeriveTest1 | ( | Gia_Man_t * | p | ) |
Definition at line 3597 of file giaSimBase.c.

| void Gia_ManRelDeriveTest2 | ( | Gia_Man_t * | p | ) |
Definition at line 3086 of file giaSimBase.c.

Definition at line 3162 of file giaSimBase.c.


| Vec_Int_t * Gia_ManRelInitDivs1 | ( | ) |
Definition at line 3524 of file giaSimBase.c.

| Vec_Int_t * Gia_ManRelInitIns | ( | ) |
Function*************************************************************
Synopsis []
Description []
SideEffects []
SeeAlso []
Definition at line 3115 of file giaSimBase.c.

| Vec_Int_t * Gia_ManRelInitIns1 | ( | ) |
Function*************************************************************
Synopsis []
Description []
SideEffects []
SeeAlso []
Definition at line 3515 of file giaSimBase.c.

Definition at line 3133 of file giaSimBase.c.


| Vec_Int_t * Gia_ManRelInitObjs | ( | ) |
Definition at line 3059 of file giaSimBase.c.

| Vec_Int_t * Gia_ManRelInitOuts | ( | ) |
Definition at line 3126 of file giaSimBase.c.

| Vec_Int_t * Gia_ManRelInitOuts1 | ( | ) |
Definition at line 3533 of file giaSimBase.c.

Definition at line 3314 of file giaSimBase.c.


Function*************************************************************
Synopsis []
Description []
SideEffects []
SeeAlso []
Definition at line 3289 of file giaSimBase.c.


Definition at line 2982 of file giaSimBase.c.
Definition at line 3010 of file giaSimBase.c.

| void Gia_ManRelSolve | ( | Gia_Man_t * | p, |
| Vec_Wrd_t * | vSims, | ||
| Vec_Int_t * | vIns, | ||
| Vec_Int_t * | vOuts, | ||
| Vec_Int_t * | vRel, | ||
| Vec_Int_t * | vDivs ) |
Definition at line 3215 of file giaSimBase.c.


Function*************************************************************
Synopsis []
Description []
SideEffects []
SeeAlso []
Definition at line 2891 of file giaSimBase.c.

Definition at line 2570 of file giaSimBase.c.


Function*************************************************************
Synopsis [Serialization.]
Description []
SideEffects []
SeeAlso []
Definition at line 2558 of file giaSimBase.c.

| void Gia_ManSimArrayTest | ( | Vec_Wrd_t * | vSimsPi | ) |
Definition at line 2605 of file giaSimBase.c.

Definition at line 668 of file giaSimBase.c.


| int Gia_ManSimBitPackOne | ( | int | nWords, |
| Vec_Wrd_t * | vSimsIn, | ||
| Vec_Wrd_t * | vSimsCare, | ||
| int | iPat, | ||
| int * | pLits, | ||
| int | nLits ) |
Definition at line 640 of file giaSimBase.c.

Function*************************************************************
Synopsis []
Description []
SideEffects []
SeeAlso []
Definition at line 620 of file giaSimBase.c.

| void Gia_ManSimGen | ( | Gia_Man_t * | pGia | ) |
Function*************************************************************
Synopsis [Trying compiled simulation.]
Description []
SideEffects []
SeeAlso []
Definition at line 2443 of file giaSimBase.c.
| void Gia_ManSimPatAssignInputs | ( | Gia_Man_t * | p, |
| int | nWords, | ||
| Vec_Wrd_t * | vSims, | ||
| Vec_Wrd_t * | vSimsIn ) |
FUNCTION DEFINITIONS ///.
Function*************************************************************
Synopsis []
Description []
SideEffects []
SeeAlso []
Definition at line 85 of file giaSimBase.c.


| void Gia_ManSimPatAssignInputs2 | ( | Gia_Man_t * | p, |
| int | nWords, | ||
| Vec_Wrd_t * | vSims, | ||
| Vec_Wrd_t * | vSimsIn ) |
Function*************************************************************
Synopsis []
Description []
SideEffects []
SeeAlso []
Definition at line 523 of file giaSimBase.c.

Definition at line 727 of file giaSimBase.c.


| int Gia_ManSimPatHashPatterns | ( | Gia_Man_t * | p, |
| int | nWords, | ||
| Vec_Wrd_t * | vSims, | ||
| int * | pnC0, | ||
| int * | pnC1 ) |
Function*************************************************************
Synopsis []
Description []
SideEffects []
SeeAlso []
Definition at line 706 of file giaSimBase.c.

Definition at line 264 of file giaSimBase.c.
Definition at line 125 of file giaSimBase.c.


Definition at line 561 of file giaSimBase.c.


Definition at line 233 of file giaSimBase.c.


| void Gia_ManSimPatSimCTest | ( | Gia_Man_t * | pGia | ) |
Definition at line 246 of file giaSimBase.c.

Definition at line 181 of file giaSimBase.c.


| void Gia_ManSimPatSimInTest | ( | Gia_Man_t * | pGia | ) |
Definition at line 203 of file giaSimBase.c.

| void Gia_ManSimPatSimMiter | ( | Gia_Man_t * | p, |
| Vec_Wrd_t * | vSims, | ||
| Vec_Wrd_t * | vSims2, | ||
| word * | pSims, | ||
| int | nWords ) |
Definition at line 138 of file giaSimBase.c.


Definition at line 3332 of file giaSimBase.c.

| Vec_Int_t * Gia_ManSimPatStart | ( | int | nItems | ) |
Definition at line 1377 of file giaSimBase.c.

| void Gia_ManSimPatValuesDerive | ( | Gia_Man_t * | p, |
| int | nWords, | ||
| Vec_Wrd_t * | vSims, | ||
| Vec_Wrd_t * | vValues ) |
Function*************************************************************
Synopsis []
Description []
SideEffects []
SeeAlso []
Definition at line 586 of file giaSimBase.c.

| void Gia_ManSimPatWrite | ( | char * | pFileName, |
| Vec_Wrd_t * | vSimsIn, | ||
| int | nWords ) |
Definition at line 274 of file giaSimBase.c.
| void Gia_ManSimProfile | ( | Gia_Man_t * | pGia | ) |
Function*************************************************************
Synopsis []
Description []
SideEffects []
SeeAlso []
Definition at line 764 of file giaSimBase.c.

Definition at line 1154 of file giaSimBase.c.


| void Gia_ManSimRelAssignInputs | ( | Gia_Man_t * | p, |
| int | nWords, | ||
| Vec_Wrd_t * | vSims, | ||
| int | nWordsIn, | ||
| Vec_Wrd_t * | vSimsIn ) |
Function*************************************************************
Synopsis []
Description []
SideEffects []
SeeAlso []
Definition at line 1105 of file giaSimBase.c.


Function*************************************************************
Synopsis []
Description []
SideEffects []
SeeAlso []
Definition at line 1196 of file giaSimBase.c.

| int Gia_ManSimRelCollectOutputs | ( | Gia_Man_t * | p, |
| int | nWords, | ||
| Vec_Wrd_t * | vSims, | ||
| int | nWordsOut, | ||
| Vec_Wrd_t * | vSimsOut, | ||
| Vec_Wrd_t * | vRel ) |
Definition at line 1136 of file giaSimBase.c.


| int Gia_ManSimRelCompare | ( | Gia_Man_t * | p, |
| int | nWords, | ||
| Vec_Wrd_t * | vSims, | ||
| int | nWordsOut, | ||
| Vec_Wrd_t * | vSimsOut, | ||
| int | iPat, | ||
| int | iMint ) |
Definition at line 1115 of file giaSimBase.c.

Definition at line 1233 of file giaSimBase.c.

Definition at line 1257 of file giaSimBase.c.

Function*************************************************************
Synopsis []
Description []
SideEffects []
SeeAlso []
Definition at line 1326 of file giaSimBase.c.

| void Gia_ManSimRelTest | ( | Gia_Man_t * | p | ) |
Definition at line 1386 of file giaSimBase.c.

| int Gia_ManSimRsb | ( | Gia_Man_t * | pGia, |
| int | nCands, | ||
| int | fVerbose ) |
Definition at line 1074 of file giaSimBase.c.

| void Gia_ManSimTest | ( | Gia_Man_t * | pGia | ) |
Function*************************************************************
Synopsis [Trying vectorized simulation.]
Description []
SideEffects []
SeeAlso []
Definition at line 2405 of file giaSimBase.c.

| int Gia_ManSimTwo | ( | Gia_Man_t * | p0, |
| Gia_Man_t * | p1, | ||
| int | nWords, | ||
| int | nRounds, | ||
| int | TimeLimit, | ||
| int | fVerbose ) |
Function*************************************************************
Synopsis [Trying vectorized simulation.]
Description []
SideEffects []
SeeAlso []
Definition at line 2504 of file giaSimBase.c.

Function*************************************************************
Synopsis []
Description []
SideEffects []
SeeAlso []
Definition at line 2787 of file giaSimBase.c.

| Vec_Int_t * Gia_ObjSimCands | ( | Gia_SimRsbMan_t * | p, |
| int | iObj, | ||
| int | nCands ) |
Definition at line 1010 of file giaSimBase.c.


| void Gia_ObjSimCollect | ( | Gia_SimRsbMan_t * | p | ) |
Function*************************************************************
Synopsis []
Description []
SideEffects []
SeeAlso []
Definition at line 993 of file giaSimBase.c.

| int Gia_ObjSimRsb | ( | Gia_SimRsbMan_t * | p, |
| int | iObj, | ||
| int | nCands, | ||
| int | fVerbose, | ||
| int * | pnBufs, | ||
| int * | pnInvs ) |
Function*************************************************************
Synopsis []
Description []
SideEffects []
SeeAlso []
Definition at line 1042 of file giaSimBase.c.


| Gia_RsbMan_t * Gia_RsbAlloc | ( | Gia_Man_t * | pGia, |
| word * | pOffSet, | ||
| word * | pOnSet, | ||
| Vec_Wrd_t * | vSims, | ||
| int | nWords, | ||
| Vec_Wrd_t * | vSimsT, | ||
| int | nWordsT, | ||
| Vec_Int_t * | vCands ) |
Definition at line 1734 of file giaSimBase.c.


| int Gia_RsbCollectValid | ( | Gia_RsbMan_t * | p | ) |
Definition at line 1962 of file giaSimBase.c.

| int Gia_RsbCost | ( | Gia_RsbMan_t * | p | ) |
Definition at line 1795 of file giaSimBase.c.

| void Gia_RsbFindMints | ( | Gia_RsbMan_t * | p, |
| int * | pMint0, | ||
| int * | pMint1 ) |
Definition at line 1916 of file giaSimBase.c.


| int Gia_RsbFindNode | ( | Gia_RsbMan_t * | p | ) |
Definition at line 1929 of file giaSimBase.c.


| int Gia_RsbFindNodeToRemove | ( | Gia_RsbMan_t * | p, |
| int * | pMinCost ) |
Definition at line 1899 of file giaSimBase.c.


| void Gia_RsbFree | ( | Gia_RsbMan_t * | p | ) |
| void Gia_RsbPrint | ( | Gia_RsbMan_t * | p | ) |
Definition at line 1802 of file giaSimBase.c.

| int Gia_RsbRemovalCost | ( | Gia_RsbMan_t * | p, |
| int | Index ) |
Definition at line 1879 of file giaSimBase.c.

| Vec_Int_t * Gia_RsbSetFind | ( | word * | pOffSet, |
| word * | pOnSet, | ||
| Vec_Wrd_t * | vSims, | ||
| int | nWords, | ||
| Vec_Wrd_t * | vSimsT, | ||
| int | nWordsT, | ||
| Vec_Int_t * | vCands ) |
Definition at line 1999 of file giaSimBase.c.

| Vec_Int_t * Gia_RsbSolve | ( | Gia_RsbMan_t * | p | ) |
Definition at line 1974 of file giaSimBase.c.


| void Gia_RsbUpdateAdd | ( | Gia_RsbMan_t * | p, |
| int | iObj ) |
Definition at line 1819 of file giaSimBase.c.

| void Gia_RsbUpdateRemove | ( | Gia_RsbMan_t * | p, |
| int | Index ) |
Definition at line 1845 of file giaSimBase.c.

Function*************************************************************
Synopsis []
Description []
SideEffects []
SeeAlso []
Definition at line 1412 of file giaSimBase.c.

| Gia_SimAbsMan_t * Gia_SimAbsAlloc | ( | Gia_Man_t * | pGia, |
| word * | pOffSet, | ||
| word * | pOnSet, | ||
| Vec_Wrd_t * | vSims, | ||
| int | nWords, | ||
| Vec_Int_t * | vResub, | ||
| int | fVerbose ) |
Definition at line 1425 of file giaSimBase.c.


| void Gia_SimAbsCheckSolution | ( | Gia_SimAbsMan_t * | p | ) |
Function*************************************************************
Synopsis []
Description []
SideEffects []
SeeAlso []
Definition at line 1464 of file giaSimBase.c.
Definition at line 1648 of file giaSimBase.c.

| void Gia_SimAbsFree | ( | Gia_SimAbsMan_t * | p | ) |
| void Gia_SimAbsInit | ( | Gia_SimAbsMan_t * | p | ) |
Definition at line 1656 of file giaSimBase.c.


| Vec_Int_t * Gia_SimAbsPerformOne | ( | Gia_Man_t * | pGia, |
| word * | pOffSet, | ||
| word * | pOnSet, | ||
| Vec_Wrd_t * | vSimsCands, | ||
| int | nWords, | ||
| int | fVerbose ) |
Function*************************************************************
Synopsis []
Description []
SideEffects []
SeeAlso []
Definition at line 1686 of file giaSimBase.c.

| int Gia_SimAbsRefine | ( | Gia_SimAbsMan_t * | p | ) |
Definition at line 1609 of file giaSimBase.c.

| void Gia_SimAbsSolve | ( | Gia_SimAbsMan_t * | p | ) |
Definition at line 1520 of file giaSimBase.c.

Definition at line 2295 of file giaSimBase.c.

Function*************************************************************
Synopsis [Improving quality of simulation patterns.]
Description []
SideEffects []
SeeAlso []
Definition at line 2237 of file giaSimBase.c.


Definition at line 2105 of file giaSimBase.c.

Definition at line 2084 of file giaSimBase.c.


Definition at line 2259 of file giaSimBase.c.


Function*************************************************************
Synopsis [Improving quality of simulation patterns.]
Description []
SideEffects []
SeeAlso []
Definition at line 2019 of file giaSimBase.c.


| int Gia_SimQualityPatternsMax | ( | Gia_Man_t * | p, |
| Vec_Int_t * | vPat, | ||
| int | Iter, | ||
| int | fVerbose, | ||
| Vec_Int_t * | vStats ) |
Definition at line 2118 of file giaSimBase.c.


| void Gia_SimQualityTest | ( | Gia_Man_t * | p | ) |
Definition at line 2064 of file giaSimBase.c.

| Gia_SimRsbMan_t * Gia_SimRsbAlloc | ( | Gia_Man_t * | pGia | ) |
Function*************************************************************
Synopsis []
Description []
SideEffects []
SeeAlso []
Definition at line 821 of file giaSimBase.c.


| word * Gia_SimRsbCareSet | ( | Gia_SimRsbMan_t * | p, |
| int | iObj, | ||
| Vec_Int_t * | vTfo ) |
Definition at line 959 of file giaSimBase.c.

| void Gia_SimRsbFree | ( | Gia_SimRsbMan_t * | p | ) |
Definition at line 839 of file giaSimBase.c.


| word * Gia_SimRsbFunc | ( | Gia_SimRsbMan_t * | p, |
| int | iObj, | ||
| Vec_Int_t * | vFanins, | ||
| int | fOnSet ) |
Function*************************************************************
Synopsis []
Description []
SideEffects []
SeeAlso []
Definition at line 900 of file giaSimBase.c.

| int Gia_SimRsbResubVerify | ( | Gia_SimRsbMan_t * | p, |
| int | iObj, | ||
| Vec_Int_t * | vFanins ) |
Definition at line 921 of file giaSimBase.c.

| Vec_Int_t * Gia_SimRsbTfo | ( | Gia_SimRsbMan_t * | p, |
| int | iObj, | ||
| int | iFanout ) |
Definition at line 876 of file giaSimBase.c.


Function*************************************************************
Synopsis []
Description []
SideEffects []
SeeAlso []
Definition at line 865 of file giaSimBase.c.

