ABC: A System for Sequential Synthesis and Verification
 
Loading...
Searching...
No Matches
simSymSim.c File Reference
#include "base/abc/abc.h"
#include "sim.h"
Include dependency graph for simSymSim.c:

Go to the source code of this file.

Functions

void Sim_SymmsSimulate (Sym_Man_t *p, unsigned *pPat, Vec_Ptr_t *vMatrsNonSym)
 FUNCTION DEFINITIONS ///.
 

Function Documentation

◆ Sim_SymmsSimulate()

void Sim_SymmsSimulate ( Sym_Man_t * p,
unsigned * pPat,
Vec_Ptr_t * vMatrsNonSym )

FUNCTION DEFINITIONS ///.

Function*************************************************************

Synopsis [Detects non-symmetric pairs using one pattern.]

Description []

SideEffects []

SeeAlso []

Definition at line 49 of file simSymSim.c.

50{
51 Abc_Obj_t * pNode;
52 int i, nPairsTotal, nPairsSym, nPairsNonSym;
53 abctime clk;
54
55 // create the simulation matrix
56 Sim_SymmsCreateSquare( p, pPat );
57 // simulate each node in the DFS order
58clk = Abc_Clock();
59 Vec_PtrForEachEntry( Abc_Obj_t *, p->vNodes, pNode, i )
60 {
61// if ( Abc_NodeIsConst(pNode) )
62// continue;
63 Sim_UtilSimulateNodeOne( pNode, p->vSim, p->nSimWords, 0 );
64 }
65p->timeSim += Abc_Clock() - clk;
66 // collect info into the CO matrices
67clk = Abc_Clock();
68 Abc_NtkForEachCo( p->pNtk, pNode, i )
69 {
70 pNode = Abc_ObjFanin0(pNode);
71// if ( Abc_ObjIsCi(pNode) || Abc_AigNodeIsConst(pNode) )
72// continue;
73 nPairsTotal = Vec_IntEntry(p->vPairsTotal, i);
74 nPairsSym = Vec_IntEntry(p->vPairsSym, i);
75 nPairsNonSym = Vec_IntEntry(p->vPairsNonSym,i);
76 assert( nPairsTotal >= nPairsSym + nPairsNonSym );
77 if ( nPairsTotal == nPairsSym + nPairsNonSym )
78 continue;
79 Sim_SymmsDeriveInfo( p, pPat, pNode, vMatrsNonSym, i );
80 }
81p->timeMatr += Abc_Clock() - clk;
82}
struct Abc_Obj_t_ Abc_Obj_t
Definition abc.h:116
#define Abc_NtkForEachCo(pNtk, pCo, i)
Definition abc.h:522
ABC_INT64_T abctime
Definition abc_global.h:332
Cube * p
Definition exorList.c:222
void Sim_UtilSimulateNodeOne(Abc_Obj_t *pNode, Vec_Ptr_t *vSimInfo, int nSimWords, int nOffset)
Definition simUtils.c:303
#define assert(ex)
Definition util_old.h:213
#define Vec_PtrForEachEntry(Type, vVec, pEntry, i)
MACRO DEFINITIONS ///.
Definition vecPtr.h:55
Here is the call graph for this function:
Here is the caller graph for this function: