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
76f2adb5
Commit
76f2adb5
authored
Apr 19, 2014
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adding color to sizing stats.
parent
ed2f0ef3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
4 deletions
+21
-4
src/aig/gia/giaMan.c
+7
-0
src/base/abci/abcPrint.c
+10
-0
src/map/scl/sclSize.c
+4
-4
No files found.
src/aig/gia/giaMan.c
View file @
76f2adb5
...
...
@@ -384,8 +384,15 @@ void Gia_ManPrintChoiceStats( Gia_Man_t * p )
void
Gia_ManPrintStats
(
Gia_Man_t
*
p
,
Gps_Par_t
*
pPars
)
{
extern
float
Gia_ManLevelAve
(
Gia_Man_t
*
p
);
#ifdef WIN32
SetConsoleTextAttribute
(
GetStdHandle
(
STD_OUTPUT_HANDLE
),
15
);
// bright
if
(
p
->
pName
)
Abc_Print
(
1
,
"%-8s : "
,
p
->
pName
);
SetConsoleTextAttribute
(
GetStdHandle
(
STD_OUTPUT_HANDLE
),
7
);
// normal
#else
if
(
p
->
pName
)
Abc_Print
(
1
,
"%s%-8s%s : "
,
"
\033
[1;37m"
,
p
->
pName
,
"
\033
[0m"
);
// bright
#endif
Abc_Print
(
1
,
"i/o =%7d/%7d"
,
Gia_ManPiNum
(
p
),
Gia_ManPoNum
(
p
)
);
if
(
Gia_ManConstrNum
(
p
)
)
Abc_Print
(
1
,
"(c=%d)"
,
Gia_ManConstrNum
(
p
)
);
...
...
src/base/abci/abcPrint.c
View file @
76f2adb5
...
...
@@ -27,6 +27,10 @@
#include "map/if/if.h"
#include "misc/extra/extraBdd.h"
#ifdef WIN32
#include <windows.h>
#endif
ABC_NAMESPACE_IMPL_START
...
...
@@ -229,7 +233,13 @@ void Abc_NtkPrintStats( Abc_Ntk_t * pNtk, int fFactored, int fSaveBest, int fDum
// if ( Abc_NtkIsStrash(pNtk) )
// Abc_AigCountNext( pNtk->pManFunc );
#ifdef WIN32
SetConsoleTextAttribute
(
GetStdHandle
(
STD_OUTPUT_HANDLE
),
15
);
// bright
Abc_Print
(
1
,
"%-13s:"
,
pNtk
->
pName
);
SetConsoleTextAttribute
(
GetStdHandle
(
STD_OUTPUT_HANDLE
),
7
);
// normal
#else
Abc_Print
(
1
,
"%s%-13s:%s"
,
"
\033
[1;37m"
,
pNtk
->
pName
,
"
\033
[0m"
);
// bright
#endif
Abc_Print
(
1
,
" i/o =%5d/%5d"
,
Abc_NtkPiNum
(
pNtk
),
Abc_NtkPoNum
(
pNtk
)
);
if
(
Abc_NtkConstrNum
(
pNtk
)
)
Abc_Print
(
1
,
"(c=%d)"
,
Abc_NtkConstrNum
(
pNtk
)
);
...
...
src/map/scl/sclSize.c
View file @
76f2adb5
...
...
@@ -162,13 +162,13 @@ void Abc_SclTimeNtkPrint( SC_Man * p, int fShowAll, int fPrintPath )
printf
(
"
\n
"
);
#else
Abc_Print
(
1
,
"WireLoad =
\"
%s
\"
"
,
p
->
pWLoadUsed
?
p
->
pWLoadUsed
->
pName
:
"none"
);
Abc_Print
(
1
,
"%sGates =%7d%s "
,
"
\033
[1;33m"
,
Abc_NtkNodeNum
(
p
->
pNtk
),
"
\033
[1;36m"
);
// yellow
Abc_Print
(
1
,
"%sGates =%7d%s "
,
"
\033
[1;33m"
,
Abc_NtkNodeNum
(
p
->
pNtk
),
"
\033
[0m"
);
// yellow
Abc_Print
(
1
,
"(%5.1f %%) "
,
100
.
0
*
Abc_SclGetBufInvCount
(
p
->
pNtk
)
/
Abc_NtkNodeNum
(
p
->
pNtk
)
);
Abc_Print
(
1
,
"%sCap =%5.1f ff%s "
,
"
\033
[1;32m"
,
p
->
EstLoadAve
,
"
\033
[1;36m"
);
// green
Abc_Print
(
1
,
"%sCap =%5.1f ff%s "
,
"
\033
[1;32m"
,
p
->
EstLoadAve
,
"
\033
[0m"
);
// green
Abc_Print
(
1
,
"(%5.1f %%) "
,
Abc_SclGetAverageSize
(
p
->
pNtk
)
);
Abc_Print
(
1
,
"%sArea =%12.2f%s "
,
"
\033
[1;36m"
,
Abc_SclGetTotalArea
(
p
->
pNtk
),
"
\033
[
1;35
m"
);
// blue
Abc_Print
(
1
,
"%sArea =%12.2f%s "
,
"
\033
[1;36m"
,
Abc_SclGetTotalArea
(
p
->
pNtk
),
"
\033
[
0
m"
);
// blue
Abc_Print
(
1
,
"(%5.1f %%) "
,
100
.
0
*
Abc_SclCountMinSize
(
p
->
pLib
,
p
->
pNtk
,
0
)
/
Abc_NtkNodeNum
(
p
->
pNtk
)
);
Abc_Print
(
1
,
"%sDelay =%9.2f ps%s "
,
"
\033
[1;35m"
,
maxDelay
,
"
\033
[1;35m"
);
// magenta
Abc_Print
(
1
,
"%sDelay =%9.2f ps%s "
,
"
\033
[1;35m"
,
maxDelay
,
"
\033
[0m"
);
// magenta
Abc_Print
(
1
,
"(%5.1f %%) "
,
100
.
0
*
Abc_SclCountNearCriticalNodes
(
p
)
/
Abc_NtkNodeNum
(
p
->
pNtk
)
);
Abc_Print
(
1
,
"
\n
"
);
#endif
...
...
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