Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
abc
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
abc
Commits
e5d83352
Commit
e5d83352
authored
Dec 05, 2017
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Experiments with AIG-based simulation.
parent
1743979b
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
2 deletions
+18
-2
src/aig/gia/gia.h
+14
-2
src/aig/gia/giaCSat.c
+4
-0
src/aig/gia/giaSim.c
+0
-0
No files found.
src/aig/gia/gia.h
View file @
e5d83352
...
...
@@ -203,6 +203,8 @@ struct Gia_Man_t_
int
fBuiltInSim
;
int
iPatsPi
;
int
nSimWords
;
int
iPastPiMax
;
int
nSimWordsMax
;
Vec_Wrd_t
*
vSims
;
Vec_Wrd_t
*
vSimsPi
;
Vec_Int_t
*
vClassOld
;
...
...
@@ -692,7 +694,12 @@ static inline int Gia_ManAppendAnd( Gia_Man_t * p, int iLit0, int iLit1 )
pObj
->
fPhase
=
(
Gia_ObjPhase
(
pFan0
)
^
Gia_ObjFaninC0
(
pObj
))
&
(
Gia_ObjPhase
(
pFan1
)
^
Gia_ObjFaninC1
(
pObj
));
}
if
(
p
->
fBuiltInSim
)
{
Gia_Obj_t
*
pFan0
=
Gia_ObjFanin0
(
pObj
);
Gia_Obj_t
*
pFan1
=
Gia_ObjFanin1
(
pObj
);
pObj
->
fPhase
=
(
Gia_ObjPhase
(
pFan0
)
^
Gia_ObjFaninC0
(
pObj
))
&
(
Gia_ObjPhase
(
pFan1
)
^
Gia_ObjFaninC1
(
pObj
));
Gia_ManBuiltInSimPerform
(
p
,
Gia_ObjId
(
p
,
pObj
)
);
}
if
(
p
->
vSuppWords
)
Gia_ManQuantSetSuppAnd
(
p
,
pObj
);
return
Gia_ObjId
(
p
,
pObj
)
<<
1
;
...
...
@@ -1208,6 +1215,8 @@ extern Cbs_Man_t * Cbs_ManAlloc( Gia_Man_t * pGia );
extern
void
Cbs_ManStop
(
Cbs_Man_t
*
p
);
extern
int
Cbs_ManSolve
(
Cbs_Man_t
*
p
,
Gia_Obj_t
*
pObj
,
Gia_Obj_t
*
pObj2
);
extern
Vec_Int_t
*
Cbs_ManSolveMiterNc
(
Gia_Man_t
*
pGia
,
int
nConfs
,
Vec_Str_t
**
pvStatus
,
int
fVerbose
);
extern
void
Cbs_ManSetConflictNum
(
Cbs_Man_t
*
p
,
int
Num
);
extern
Vec_Int_t
*
Cbs_ReadModel
(
Cbs_Man_t
*
p
);
/*=== giaCTas.c ============================================================*/
extern
Vec_Int_t
*
Tas_ManSolveMiterNc
(
Gia_Man_t
*
pGia
,
int
nConfs
,
Vec_Str_t
**
pvStatus
,
int
fVerbose
);
/*=== giaCof.c =============================================================*/
...
...
@@ -1504,8 +1513,11 @@ extern void Gia_ManSimInfoTransfer( Gia_ManSim_t * p );
extern
void
Gia_ManSimulateRound
(
Gia_ManSim_t
*
p
);
extern
void
Gia_ManBuiltInSimStart
(
Gia_Man_t
*
p
,
int
nWords
,
int
nObjs
);
extern
void
Gia_ManBuiltInSimPerform
(
Gia_Man_t
*
p
,
int
iObj
);
extern
int
Gia_ManBuiltInSimCheck
(
Gia_Man_t
*
p
,
int
iLit0
,
int
iLit1
);
extern
int
Gia_ManObjCheckOverlap
(
Gia_Man_t
*
p
,
int
iLit0
,
int
iLit1
,
Vec_Int_t
*
vObjs
);
extern
int
Gia_ManBuiltInSimCheckOver
(
Gia_Man_t
*
p
,
int
iLit0
,
int
iLit1
);
extern
int
Gia_ManBuiltInSimCheckEqual
(
Gia_Man_t
*
p
,
int
iLit0
,
int
iLit1
);
extern
void
Gia_ManBuiltInSimResimulateCone
(
Gia_Man_t
*
p
,
int
iLit0
,
int
iLit1
);
extern
void
Gia_ManBuiltInSimResimulate
(
Gia_Man_t
*
p
);
extern
int
Gia_ManBuiltInSimAddPat
(
Gia_Man_t
*
p
,
Vec_Int_t
*
vPat
);
/*=== giaSpeedup.c ============================================================*/
extern
float
Gia_ManDelayTraceLut
(
Gia_Man_t
*
p
);
extern
float
Gia_ManDelayTraceLutPrint
(
Gia_Man_t
*
p
,
int
fVerbose
);
...
...
src/aig/gia/giaCSat.c
View file @
e5d83352
...
...
@@ -134,6 +134,10 @@ void Cbs_SetDefaultParams( Cbs_Par_t * pPars )
pPars
->
fUseMaxFF
=
0
;
// use node with the largest fanin fanout
pPars
->
fVerbose
=
1
;
// print detailed statistics
}
void
Cbs_ManSetConflictNum
(
Cbs_Man_t
*
p
,
int
Num
)
{
p
->
Pars
.
nBTLimit
=
Num
;
}
/**Function*************************************************************
...
...
src/aig/gia/giaSim.c
View file @
e5d83352
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment