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
d05f83b2
Commit
d05f83b2
authored
Apr 06, 2014
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improvement in SOP balancing.
parent
2a399042
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
8 deletions
+12
-8
src/aig/gia/giaIf.c
+11
-6
src/map/if/ifDelay.c
+1
-2
No files found.
src/aig/gia/giaIf.c
View file @
d05f83b2
...
...
@@ -681,7 +681,7 @@ int Gia_ManNodeIfSopToGia( Gia_Man_t * pNew, If_Man_t * p, If_Cut_t * pCut, Vec_
SeeAlso []
***********************************************************************/
int
Gia_ManBuildFromMini
(
Gia_Man_t
*
pNew
,
Vec_Int_t
*
vLeaves
,
Vec_Int_t
*
vAig
,
int
fHash
)
int
Gia_ManBuildFromMini
Int
(
Gia_Man_t
*
pNew
,
Vec_Int_t
*
vLeaves
,
Vec_Int_t
*
vAig
,
int
fHash
)
{
assert
(
Vec_IntSize
(
vAig
)
>
0
);
assert
(
Vec_IntEntryLast
(
vAig
)
<
2
);
...
...
@@ -719,6 +719,14 @@ int Gia_ManBuildFromMini( Gia_Man_t * pNew, Vec_Int_t * vLeaves, Vec_Int_t * vAi
return
iLit
;
}
}
int
Gia_ManBuildFromMini
(
Gia_Man_t
*
pNew
,
If_Man_t
*
pIfMan
,
If_Cut_t
*
pCut
,
Vec_Int_t
*
vLeaves
,
Vec_Int_t
*
vAig
,
int
fHash
,
int
fUseDsd
)
{
if
(
fUseDsd
)
If_DsdCutBalanceAig
(
pIfMan
,
pCut
,
vAig
);
else
If_CutDelaySopArray3
(
pIfMan
,
pCut
,
vAig
);
return
Gia_ManBuildFromMiniInt
(
pNew
,
vLeaves
,
vAig
,
fHash
);
}
/**Function*************************************************************
...
...
@@ -762,12 +770,9 @@ Gia_Man_t * Gia_ManFromIfAig( If_Man_t * pIfMan )
Vec_IntPush
(
vLeaves
,
pIfLeaf
->
iCopy
);
// get the functionality
if
(
pIfMan
->
pPars
->
fDelayOpt
)
pIfObj
->
iCopy
=
Gia_Man
NodeIfSopToGia
(
pNew
,
pIfMan
,
pCutBest
,
vLeaves
,
fHash
);
pIfObj
->
iCopy
=
Gia_Man
BuildFromMini
(
pNew
,
pIfMan
,
pCutBest
,
vLeaves
,
vAig
,
fHash
,
0
);
else
if
(
pIfMan
->
pPars
->
fDsdBalance
)
{
If_DsdCutBalanceAig
(
pIfMan
,
pCutBest
,
vAig
);
pIfObj
->
iCopy
=
Gia_ManBuildFromMini
(
pNew
,
vLeaves
,
vAig
,
fHash
);
}
pIfObj
->
iCopy
=
Gia_ManBuildFromMini
(
pNew
,
pIfMan
,
pCutBest
,
vLeaves
,
vAig
,
fHash
,
1
);
else
if
(
pIfMan
->
pPars
->
fUserRecLib
)
pIfObj
->
iCopy
=
Abc_RecToGia3
(
pNew
,
pIfMan
,
pCutBest
,
vLeaves
,
fHash
);
else
assert
(
0
);
...
...
src/map/if/ifDelay.c
View file @
d05f83b2
...
...
@@ -466,8 +466,7 @@ int If_CutPinDelaysSopArray3IntInt( Vec_Int_t * vCover, int * pTimes, int nSuppA
Vec_IntForEachEntry
(
vCover
,
Entry
,
i
)
{
nCounterAnd
=
0
;
// for ( k = 0; k < nSuppAll; k++ )
for
(
k
=
nSuppAll
-
1
;
k
>=
0
;
k
--
)
for
(
k
=
0
;
k
<
nSuppAll
;
k
++
)
{
Literal
=
3
&
(
Entry
>>
(
k
<<
1
));
if
(
Literal
==
1
||
Literal
==
2
)
// neg or pos literal
...
...
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