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
45f07795
Commit
45f07795
authored
Mar 25, 2012
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Logic sharing for multi-input gates.
parent
8ed3e40a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
src/base/abci/abcExtract.c
+4
-4
No files found.
src/base/abci/abcExtract.c
View file @
45f07795
...
...
@@ -95,7 +95,7 @@ void Abc_ShaManStop( Abc_ShaMan_t * p )
Vec_Wrd_t
*
Abc_NtkShareSuperXor
(
Abc_Obj_t
*
pObj
,
int
*
pfCompl
,
int
*
pCounter
)
{
Abc_Ntk_t
*
pNtk
=
Abc_ObjNtk
(
pObj
);
Abc_Obj_t
*
pObjC
,
*
pObj0
,
*
pObj1
,
*
pRoot
;
Abc_Obj_t
*
pObjC
,
*
pObj0
,
*
pObj1
,
*
pRoot
=
NULL
;
Vec_Wrd_t
*
vSuper
;
word
Num
,
NumNext
;
int
i
,
k
,
fCompl
=
0
;
...
...
@@ -159,7 +159,7 @@ Vec_Wrd_t * Abc_NtkShareSuperXor( Abc_Obj_t * pObj, int * pfCompl, int * pCounte
Vec_Wrd_t
*
Abc_NtkShareSuperAnd
(
Abc_Obj_t
*
pObj
,
int
*
pCounter
)
{
Abc_Ntk_t
*
pNtk
=
Abc_ObjNtk
(
pObj
);
Abc_Obj_t
*
pObj0
,
*
pObj1
,
*
pRoot
;
Abc_Obj_t
*
pObj0
,
*
pObj1
,
*
pRoot
=
NULL
;
Vec_Wrd_t
*
vSuper
;
word
Num
,
NumNext
;
int
i
,
k
;
...
...
@@ -245,7 +245,7 @@ void Abc_NtkTraverseSupersXor_rec( Abc_ShaMan_t * p, Abc_Obj_t * pObj, Vec_Ptr_t
int
k
,
fCompl
;
word
Num
;
vSuper
=
Abc_NtkShareSuperXor
(
pObj
,
&
fCompl
,
&
p
->
nFoundGates
);
if
(
Vec_WrdSize
(
vSuper
)
>=
p
->
nMultiSize
)
if
(
Vec_WrdSize
(
vSuper
)
<=
1
||
Vec_WrdSize
(
vSuper
)
>=
p
->
nMultiSize
)
{
Vec_WrdForEachEntry
(
vSuper
,
Num
,
k
)
{
...
...
@@ -285,7 +285,7 @@ void Abc_NtkTraverseSupersAnd_rec( Abc_ShaMan_t * p, Abc_Obj_t * pObj, Vec_Ptr_t
return
;
assert
(
Abc_ObjIsNode
(
pObj
)
);
vSuper
=
Abc_NtkShareSuperAnd
(
pObj
,
&
p
->
nFoundGates
);
if
(
Vec_WrdSize
(
vSuper
)
==
0
||
Vec_WrdSize
(
vSuper
)
>=
p
->
nMultiSize
)
if
(
Vec_WrdSize
(
vSuper
)
<=
1
||
Vec_WrdSize
(
vSuper
)
>=
p
->
nMultiSize
)
{
Vec_WrdForEachEntry
(
vSuper
,
Num
,
k
)
{
...
...
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