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
d9b5aa49
Commit
d9b5aa49
authored
Sep 23, 2014
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Enables dumping stats into a file.
parent
3f95853f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
1 deletions
+15
-1
src/base/abci/abc.c
+1
-1
src/base/abci/abcPrint.c
+14
-0
No files found.
src/base/abci/abc.c
View file @
d9b5aa49
...
...
@@ -1211,7 +1211,7 @@ usage:
Abc_Print
(
-
2
,
"
\t
prints the network statistics
\n
"
);
Abc_Print
(
-
2
,
"
\t
-f : toggles printing the literal count in the factored forms [default = %s]
\n
"
,
fFactor
?
"yes"
:
"no"
);
Abc_Print
(
-
2
,
"
\t
-b : toggles saving the best logic network in
\"
best.blif
\"
[default = %s]
\n
"
,
fSaveBest
?
"yes"
:
"no"
);
Abc_Print
(
-
2
,
"
\t
-d : toggles dumping
network into file
\"
<input_file_name>_dump.blif
\"
[default = %s]
\n
"
,
fDumpResult
?
"yes"
:
"no"
);
Abc_Print
(
-
2
,
"
\t
-d : toggles dumping
statistics about the network into file
[default = %s]
\n
"
,
fDumpResult
?
"yes"
:
"no"
);
Abc_Print
(
-
2
,
"
\t
-l : toggles printing delay of LUT mapping using LUT library [default = %s]
\n
"
,
fSaveBest
?
"yes"
:
"no"
);
Abc_Print
(
-
2
,
"
\t
-t : toggles printing runtime statistics [default = %s]
\n
"
,
fPrintTime
?
"yes"
:
"no"
);
Abc_Print
(
-
2
,
"
\t
-m : toggles printing MUX statistics [default = %s]
\n
"
,
fPrintMuxes
?
"yes"
:
"no"
);
src/base/abci/abcPrint.c
View file @
d9b5aa49
...
...
@@ -222,6 +222,7 @@ void Abc_NtkPrintStats( Abc_Ntk_t * pNtk, int fFactored, int fSaveBest, int fDum
}
if
(
fSaveBest
)
Abc_NtkCompareAndSaveBest
(
pNtk
);
/*
if ( fDumpResult )
{
char Buffer[1000] = {0};
...
...
@@ -230,6 +231,7 @@ void Abc_NtkPrintStats( Abc_Ntk_t * pNtk, int fFactored, int fSaveBest, int fDum
Io_Write( pNtk, Buffer, IO_FILE_BLIF );
if ( pNtk->pSpec ) ABC_FREE( pNameGen );
}
*/
// if ( Abc_NtkIsStrash(pNtk) )
// Abc_AigCountNext( pNtk->pManFunc );
...
...
@@ -322,6 +324,18 @@ void Abc_NtkPrintStats( Abc_Ntk_t * pNtk, int fFactored, int fSaveBest, int fDum
Abc_Print
(
1
,
"
\n
"
);
// print the statistic into a file
if
(
fDumpResult
)
{
FILE
*
pTable
=
fopen
(
"abcstats.txt"
,
"a+"
);
fprintf
(
pTable
,
"%s "
,
pNtk
->
pName
);
fprintf
(
pTable
,
"%d "
,
Abc_NtkPiNum
(
pNtk
)
);
fprintf
(
pTable
,
"%d "
,
Abc_NtkPoNum
(
pNtk
)
);
fprintf
(
pTable
,
"%d "
,
Abc_NtkNodeNum
(
pNtk
)
);
fprintf
(
pTable
,
"%d "
,
Abc_NtkGetTotalFanins
(
pNtk
)
);
fprintf
(
pTable
,
"%d "
,
Abc_NtkLevel
(
pNtk
)
);
fprintf
(
pTable
,
"
\n
"
);
fclose
(
pTable
);
}
/*
{
FILE * pTable;
...
...
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