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
93e5631c
Commit
93e5631c
authored
Sep 23, 2014
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Debugging the bit-blaster.
parent
3f6c08df
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
1 deletions
+15
-1
src/base/wlc/wlcBlast.c
+15
-1
No files found.
src/base/wlc/wlcBlast.c
View file @
93e5631c
...
...
@@ -70,6 +70,16 @@ int * Wlc_VecLoadFanins( Vec_Int_t * vOut, int * pFanins, int nFanins, int nTota
Vec_IntPush
(
vOut
,
i
<
nFanins
?
pFanins
[
i
]
:
Fill
);
return
Vec_IntArray
(
vOut
);
}
int
Wlc_BlastGetConst
(
int
*
pNum
,
int
nNum
)
{
int
i
,
Res
=
0
;
for
(
i
=
0
;
i
<
nNum
;
i
++
)
if
(
pNum
[
i
]
==
1
)
Res
|=
(
1
<<
i
);
else
if
(
pNum
[
i
]
!=
0
)
return
-
1
;
return
Res
;
}
/**Function*************************************************************
...
...
@@ -137,7 +147,11 @@ void Wlc_BlastRotateLeft( Gia_Man_t * pNew, int * pNum, int nNum, int * pShift,
assert
(
nShift
<=
32
);
for
(
i
=
0
;
i
<
nShift
;
i
++
,
pRes
=
Wlc_VecCopy
(
vRes
,
pTemp
,
nNum
)
)
for
(
j
=
0
;
j
<
nNum
;
j
++
)
pTemp
[
j
]
=
Gia_ManHashMux
(
pNew
,
pShift
[
i
],
pRes
[((
unsigned
)(
nNum
-
(
1
<<
i
)
+
j
))
%
nNum
],
pRes
[
j
]
);
{
int
move
=
(
j
>=
(
1
<<
i
))
?
(
j
-
(
1
<<
i
))
%
nNum
:
(
nNum
-
(((
1
<<
i
)
-
j
)
%
nNum
))
%
nNum
;
pTemp
[
j
]
=
Gia_ManHashMux
(
pNew
,
pShift
[
i
],
pRes
[
move
],
pRes
[
j
]
);
// pTemp[j] = Gia_ManHashMux( pNew, pShift[i], pRes[((unsigned)(nNum-(1<<i)+j))%nNum], pRes[j] );
}
ABC_FREE
(
pTemp
);
}
int
Wlc_BlastReduction
(
Gia_Man_t
*
pNew
,
int
*
pFans
,
int
nFans
,
int
Type
)
...
...
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