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
3708acbf
Commit
3708acbf
authored
Apr 24, 2015
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug fix in 'print_supp' (induced bugs in 'bm' and 'bm2').
parent
a78fb767
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
src/opt/sim/simSupp.c
+7
-7
No files found.
src/opt/sim/simSupp.c
View file @
3708acbf
...
...
@@ -171,7 +171,7 @@ p->timeTotal = Abc_Clock() - clk;
***********************************************************************/
int
Sim_ComputeSuppRound
(
Sim_Man_t
*
p
,
int
fUseTargets
)
{
Vec_
Int
_t
*
vTargets
;
Vec_
Ptr
_t
*
vTargets
;
int
i
,
Counter
=
0
;
abctime
clk
;
// perform one round of random simulation
...
...
@@ -181,7 +181,7 @@ p->timeSim += Abc_Clock() - clk;
// iterate through the CIs and detect COs that depend on them
for
(
i
=
p
->
iInput
;
i
<
p
->
nInputs
;
i
++
)
{
vTargets
=
(
Vec_
Int
_t
*
)
p
->
vSuppTargs
->
pArray
[
i
];
vTargets
=
(
Vec_
Ptr
_t
*
)
p
->
vSuppTargs
->
pArray
[
i
];
if
(
fUseTargets
&&
vTargets
->
nSize
==
0
)
continue
;
Counter
+=
Sim_ComputeSuppRoundNode
(
p
,
i
,
fUseTargets
);
...
...
@@ -204,7 +204,7 @@ int Sim_ComputeSuppRoundNode( Sim_Man_t * p, int iNumCi, int fUseTargets )
{
int
fVerbose
=
0
;
Sim_Pat_t
*
pPat
;
Vec_
Int
_t
*
vTargets
;
Vec_
Ptr
_t
*
vTargets
;
Vec_Vec_t
*
vNodesByLevel
;
Abc_Obj_t
*
pNodeCi
,
*
pNode
;
int
i
,
k
,
v
,
Output
,
LuckyPat
,
fType0
,
fType1
;
...
...
@@ -212,7 +212,7 @@ int Sim_ComputeSuppRoundNode( Sim_Man_t * p, int iNumCi, int fUseTargets )
int
fFirst
=
1
;
abctime
clk
;
// collect nodes by level in the TFO of the CI
// this proceduredoes not collect the CIs and COs
// this procedure
does not collect the CIs and COs
// but it increments TravId of the collected nodes and CIs/COs
clk
=
Abc_Clock
();
pNodeCi
=
Abc_NtkCi
(
p
->
pNtk
,
iNumCi
);
...
...
@@ -232,11 +232,11 @@ p->timeSim += Abc_Clock() - clk;
// set the simulation info of the affected COs
if
(
fUseTargets
)
{
vTargets
=
(
Vec_
Int
_t
*
)
p
->
vSuppTargs
->
pArray
[
iNumCi
];
vTargets
=
(
Vec_
Ptr
_t
*
)
p
->
vSuppTargs
->
pArray
[
iNumCi
];
for
(
i
=
vTargets
->
nSize
-
1
;
i
>=
0
;
i
--
)
{
// get the target output
Output
=
vTargets
->
pArray
[
i
];
Output
=
(
int
)(
ABC_PTRUINT_T
)
vTargets
->
pArray
[
i
];
// get the target node
pNode
=
Abc_ObjFanin0
(
Abc_NtkCo
(
p
->
pNtk
,
Output
)
);
// the output should be in the cone
...
...
@@ -247,7 +247,7 @@ p->timeSim += Abc_Clock() - clk;
continue
;
// otherwise, we solved a new target
Vec_
IntRemove
(
vTargets
,
Output
);
Vec_
PtrRemove
(
vTargets
,
vTargets
->
pArray
[
i
]
);
if
(
fVerbose
)
printf
(
"(%d,%d) "
,
iNumCi
,
Output
);
Counter
++
;
...
...
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