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
c6814a5c
Commit
c6814a5c
authored
Jul 02, 2014
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Experiment with SOP balancing.
parent
7ff2bce0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
1 deletions
+20
-1
src/aig/gia/giaIf.c
+20
-1
No files found.
src/aig/gia/giaIf.c
View file @
c6814a5c
...
...
@@ -714,6 +714,18 @@ int Gia_ManBuildFromMini( Gia_Man_t * pNew, If_Man_t * pIfMan, If_Cut_t * pCut,
SeeAlso []
***********************************************************************/
int
Gia_ManFromIfAig_rec
(
Gia_Man_t
*
pNew
,
If_Man_t
*
pIfMan
,
If_Obj_t
*
pIfObj
)
{
int
iLit0
,
iLit1
;
if
(
pIfObj
->
iCopy
)
return
pIfObj
->
iCopy
;
iLit0
=
Gia_ManFromIfAig_rec
(
pNew
,
pIfMan
,
pIfObj
->
pFanin0
);
iLit1
=
Gia_ManFromIfAig_rec
(
pNew
,
pIfMan
,
pIfObj
->
pFanin1
);
iLit0
=
Abc_LitNotCond
(
iLit0
,
pIfObj
->
fCompl0
);
iLit1
=
Abc_LitNotCond
(
iLit1
,
pIfObj
->
fCompl1
);
pIfObj
->
iCopy
=
Gia_ManHashAnd
(
pNew
,
iLit0
,
iLit1
);
return
pIfObj
->
iCopy
;
}
Gia_Man_t
*
Gia_ManFromIfAig
(
If_Man_t
*
pIfMan
)
{
int
fHash
=
0
;
...
...
@@ -731,7 +743,8 @@ Gia_Man_t * Gia_ManFromIfAig( If_Man_t * pIfMan )
// iterate through nodes used in the mapping
vAig
=
Vec_IntAlloc
(
1
<<
16
);
vLeaves
=
Vec_IntAlloc
(
16
);
If_ManCleanCutData
(
pIfMan
);
// If_ManForEachObj( pIfMan, pIfObj, i )
// pIfObj->iCopy = 0;
If_ManForEachObj
(
pIfMan
,
pIfObj
,
i
)
{
if
(
pIfObj
->
nRefs
==
0
&&
!
If_ObjIsTerm
(
pIfObj
)
)
...
...
@@ -739,6 +752,12 @@ Gia_Man_t * Gia_ManFromIfAig( If_Man_t * pIfMan )
if
(
If_ObjIsAnd
(
pIfObj
)
)
{
pCutBest
=
If_ObjCutBest
(
pIfObj
);
// if the cut does not offer delay improvement
// if ( (int)pIfObj->Level <= (int)pCutBest->Delay )
// {
// Gia_ManFromIfAig_rec( pNew, pIfMan, pIfObj );
// continue;
// }
// collect leaves of the best cut
Vec_IntClear
(
vLeaves
);
If_CutForEachLeaf
(
pIfMan
,
pCutBest
,
pIfLeaf
,
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