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
eb960a91
Commit
eb960a91
authored
Apr 19, 2014
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adding color to mapping stats.
parent
472fb39f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
3 deletions
+20
-3
src/aig/gia/giaIf.c
+3
-3
src/aig/gia/giaMan.c
+17
-0
No files found.
src/aig/gia/giaIf.c
View file @
eb960a91
...
@@ -338,7 +338,7 @@ void Gia_ManPrintMappingStats( Gia_Man_t * p, char * pDumpFile )
...
@@ -338,7 +338,7 @@ void Gia_ManPrintMappingStats( Gia_Man_t * p, char * pDumpFile )
Abc_Print
(
1
,
"lut =%7d "
,
nLuts
);
Abc_Print
(
1
,
"lut =%7d "
,
nLuts
);
SetConsoleTextAttribute
(
hConsole
,
10
);
// green
SetConsoleTextAttribute
(
hConsole
,
10
);
// green
Abc_Print
(
1
,
"edge =%8d "
,
nFanins
);
Abc_Print
(
1
,
"edge =%8d "
,
nFanins
);
SetConsoleTextAttribute
(
hConsole
,
1
1
);
// blue
SetConsoleTextAttribute
(
hConsole
,
1
2
);
// red
Abc_Print
(
1
,
"lev =%5d "
,
LevelMax
);
Abc_Print
(
1
,
"lev =%5d "
,
LevelMax
);
Abc_Print
(
1
,
"(%.2f) "
,
(
float
)
Ave
/
Gia_ManCoNum
(
p
)
);
Abc_Print
(
1
,
"(%.2f) "
,
(
float
)
Ave
/
Gia_ManCoNum
(
p
)
);
SetConsoleTextAttribute
(
hConsole
,
7
);
// normal
SetConsoleTextAttribute
(
hConsole
,
7
);
// normal
...
@@ -350,8 +350,8 @@ void Gia_ManPrintMappingStats( Gia_Man_t * p, char * pDumpFile )
...
@@ -350,8 +350,8 @@ void Gia_ManPrintMappingStats( Gia_Man_t * p, char * pDumpFile )
Abc_Print
(
1
,
"Mapping (K=%d) : "
,
nLutSize
);
Abc_Print
(
1
,
"Mapping (K=%d) : "
,
nLutSize
);
Abc_Print
(
1
,
"%slut =%7d%s "
,
"
\033
[1;33m"
,
nLuts
,
"
\033
[0m"
);
// yellow
Abc_Print
(
1
,
"%slut =%7d%s "
,
"
\033
[1;33m"
,
nLuts
,
"
\033
[0m"
);
// yellow
Abc_Print
(
1
,
"%sedge =%8d%s "
,
"
\033
[1;32m"
,
nFanins
,
"
\033
[0m"
);
// green
Abc_Print
(
1
,
"%sedge =%8d%s "
,
"
\033
[1;32m"
,
nFanins
,
"
\033
[0m"
);
// green
Abc_Print
(
1
,
"%slev =%5d%s "
,
"
\033
[1;3
6m"
,
LevelMax
,
"
\033
[0m"
);
// blue
Abc_Print
(
1
,
"%slev =%5d%s "
,
"
\033
[1;3
1m"
,
LevelMax
,
"
\033
[0m"
);
// red
Abc_Print
(
1
,
"%s(%.2f)%s "
,
"
\033
[1;3
6
m"
,
(
float
)
Ave
/
Gia_ManCoNum
(
p
),
"
\033
[0m"
);
Abc_Print
(
1
,
"%s(%.2f)%s "
,
"
\033
[1;3
1
m"
,
(
float
)
Ave
/
Gia_ManCoNum
(
p
),
"
\033
[0m"
);
Abc_Print
(
1
,
"over =%5.1f %% "
,
100
.
0
*
Gia_ManComputeOverlap
(
p
)
/
Gia_ManAndNum
(
p
)
);
Abc_Print
(
1
,
"over =%5.1f %% "
,
100
.
0
*
Gia_ManComputeOverlap
(
p
)
/
Gia_ManAndNum
(
p
)
);
Abc_Print
(
1
,
"mem =%5.2f MB"
,
4
.
0
*
(
Gia_ManObjNum
(
p
)
+
2
*
nLuts
+
nFanins
)
/
(
1
<<
20
)
);
Abc_Print
(
1
,
"mem =%5.2f MB"
,
4
.
0
*
(
Gia_ManObjNum
(
p
)
+
2
*
nLuts
+
nFanins
)
/
(
1
<<
20
)
);
Abc_Print
(
1
,
"
\n
"
);
Abc_Print
(
1
,
"
\n
"
);
...
...
src/aig/gia/giaMan.c
View file @
eb960a91
...
@@ -23,6 +23,10 @@
...
@@ -23,6 +23,10 @@
#include "proof/abs/abs.h"
#include "proof/abs/abs.h"
#include "opt/dar/dar.h"
#include "opt/dar/dar.h"
#ifdef WIN32
#include <windows.h>
#endif
ABC_NAMESPACE_IMPL_START
ABC_NAMESPACE_IMPL_START
...
@@ -387,9 +391,22 @@ void Gia_ManPrintStats( Gia_Man_t * p, Gps_Par_t * pPars )
...
@@ -387,9 +391,22 @@ void Gia_ManPrintStats( Gia_Man_t * p, Gps_Par_t * pPars )
Abc_Print
(
1
,
"(c=%d)"
,
Gia_ManConstrNum
(
p
)
);
Abc_Print
(
1
,
"(c=%d)"
,
Gia_ManConstrNum
(
p
)
);
if
(
Gia_ManRegNum
(
p
)
)
if
(
Gia_ManRegNum
(
p
)
)
Abc_Print
(
1
,
" ff =%7d"
,
Gia_ManRegNum
(
p
)
);
Abc_Print
(
1
,
" ff =%7d"
,
Gia_ManRegNum
(
p
)
);
#ifdef WIN32
{
HANDLE
hConsole
=
GetStdHandle
(
STD_OUTPUT_HANDLE
);
SetConsoleTextAttribute
(
hConsole
,
11
);
// blue
Abc_Print
(
1
,
" %s =%8d"
,
p
->
pMuxes
?
"nod"
:
"and"
,
Gia_ManAndNum
(
p
)
);
Abc_Print
(
1
,
" %s =%8d"
,
p
->
pMuxes
?
"nod"
:
"and"
,
Gia_ManAndNum
(
p
)
);
SetConsoleTextAttribute
(
hConsole
,
13
);
// magenta
Abc_Print
(
1
,
" lev =%5d"
,
Gia_ManLevelNum
(
p
)
);
Abc_Print
(
1
,
" lev =%5d"
,
Gia_ManLevelNum
(
p
)
);
Abc_Print
(
1
,
" (%.2f)"
,
Gia_ManLevelAve
(
p
)
);
Abc_Print
(
1
,
" (%.2f)"
,
Gia_ManLevelAve
(
p
)
);
SetConsoleTextAttribute
(
hConsole
,
7
);
// normal
}
#else
Abc_Print
(
1
,
" %s%s =%8d%s"
,
"
\033
[1;36m"
,
p
->
pMuxes
?
"nod"
:
"and"
,
Gia_ManAndNum
(
p
),
"
\033
[0m"
);
// blue
Abc_Print
(
1
,
" %slev =%5d%s"
,
"
\033
[1;35m"
,
Gia_ManLevelNum
(
p
),
"
\033
[0m"
);
// magenta
Abc_Print
(
1
,
" %s(%.2f)%s"
,
"
\033
[1;35m"
,
Gia_ManLevelAve
(
p
),
"
\033
[0m"
);
#endif
Vec_IntFreeP
(
&
p
->
vLevels
);
Vec_IntFreeP
(
&
p
->
vLevels
);
if
(
pPars
&&
pPars
->
fCut
)
if
(
pPars
&&
pPars
->
fCut
)
Abc_Print
(
1
,
" cut = %d(%d)"
,
Gia_ManCrossCut
(
p
,
0
),
Gia_ManCrossCut
(
p
,
1
)
);
Abc_Print
(
1
,
" cut = %d(%d)"
,
Gia_ManCrossCut
(
p
,
0
),
Gia_ManCrossCut
(
p
,
1
)
);
...
...
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