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
f99e5cd9
Commit
f99e5cd9
authored
Apr 01, 2013
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Shrink for 6-LUTs.
parent
28f12c5f
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
5 deletions
+5
-5
src/aig/gia/gia.h
+1
-1
src/aig/gia/giaShrink.c
+2
-2
src/aig/gia/giaShrink6.c
+1
-1
src/base/abci/abc.c
+1
-1
No files found.
src/aig/gia/gia.h
View file @
f99e5cd9
...
...
@@ -979,7 +979,7 @@ extern Gia_Man_t * Gia_ManCleanupOutputs( Gia_Man_t * p, int nOutputs );
extern
Gia_Man_t
*
Gia_ManSeqCleanup
(
Gia_Man_t
*
p
);
extern
Gia_Man_t
*
Gia_ManSeqStructSweep
(
Gia_Man_t
*
p
,
int
fConst
,
int
fEquiv
,
int
fVerbose
);
/*=== giaShrink.c ===========================================================*/
extern
Gia_Man_t
*
Gia_Man
PerformMapShrink
(
Gia_Man_t
*
p
,
int
fKeepLevel
,
int
fVerbose
);
extern
Gia_Man_t
*
Gia_Man
MapShrink4
(
Gia_Man_t
*
p
,
int
fKeepLevel
,
int
fVerbose
);
extern
Gia_Man_t
*
Gia_ManMapShrink6
(
Gia_Man_t
*
p
,
int
nFanoutMax
,
int
fKeepLevel
,
int
fVerbose
);
/*=== giaSort.c ============================================================*/
extern
int
*
Gia_SortFloats
(
float
*
pArray
,
int
*
pPerm
,
int
nSize
);
...
...
src/aig/gia/giaShrink.c
View file @
f99e5cd9
...
...
@@ -46,7 +46,7 @@ extern int Dar_LibEvalBuild( Gia_Man_t * p, Vec_Int_t * vCut, unsigned uTruth,
SeeAlso []
***********************************************************************/
Gia_Man_t
*
Gia_Man
PerformMapShrink
(
Gia_Man_t
*
p
,
int
fKeepLevel
,
int
fVerbose
)
Gia_Man_t
*
Gia_Man
MapShrink4
(
Gia_Man_t
*
p
,
int
fKeepLevel
,
int
fVerbose
)
{
Vec_Int_t
*
vLeaves
,
*
vTruth
,
*
vVisited
,
*
vLeavesBest
;
Gia_Man_t
*
pNew
,
*
pTemp
;
...
...
@@ -128,7 +128,7 @@ Gia_Man_t * Gia_ManPerformMapShrink( Gia_Man_t * p, int fKeepLevel, int fVerbose
{
pNew
=
Gia_ManCleanup
(
pTemp
=
pNew
);
if
(
Gia_ManAndNum
(
pNew
)
!=
Gia_ManAndNum
(
pTemp
)
)
printf
(
"Gia_Man
PerformMapShrink
() node reduction after sweep %6d -> %6d.
\n
"
,
Gia_ManAndNum
(
pTemp
),
Gia_ManAndNum
(
pNew
)
);
printf
(
"Gia_Man
MapShrink4
() node reduction after sweep %6d -> %6d.
\n
"
,
Gia_ManAndNum
(
pTemp
),
Gia_ManAndNum
(
pNew
)
);
Gia_ManStop
(
pTemp
);
}
Gia_ManSetRegNum
(
pNew
,
Gia_ManRegNum
(
p
)
);
...
...
src/aig/gia/giaShrink6.c
View file @
f99e5cd9
...
...
@@ -475,7 +475,7 @@ Gia_Man_t * Gia_ManMapShrink6( Gia_Man_t * p, int nFanoutMax, int fKeepLevel, in
printf
(
"Performed %d resubs and %d decomps. "
,
Counter1
,
Counter2
);
printf
(
"Gain in AIG nodes = %d. "
,
Gia_ManObjNum
(
p
)
-
Gia_ManObjNum
(
pMan
->
pNew
)
);
ABC_PRT
(
"Runtime"
,
clock
()
-
clk
);
ABC_PRT
(
"Divisors"
,
timeFanout
);
//
ABC_PRT( "Divisors", timeFanout );
}
return
Shr_ManFree
(
pMan
);
}
...
...
src/base/abci/abc.c
View file @
f99e5cd9
...
...
@@ -26228,7 +26228,7 @@ int Abc_CommandAbc9Shrink( Abc_Frame_t * pAbc, int argc, char ** argv )
}
nLutSize
=
Gia_ManLutSizeMax
(
pAbc
->
pGia
);
if
(
nLutSize
<=
4
)
pTemp
=
Gia_Man
PerformMapShrink
(
pAbc
->
pGia
,
fKeepLevel
,
fVerbose
);
pTemp
=
Gia_Man
MapShrink4
(
pAbc
->
pGia
,
fKeepLevel
,
fVerbose
);
else
if
(
nLutSize
<=
6
)
pTemp
=
Gia_ManMapShrink6
(
pAbc
->
pGia
,
nFanoutMax
,
fKeepLevel
,
fVerbose
);
else
...
...
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