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
79d5e765
Commit
79d5e765
authored
Mar 08, 2008
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Version abc80308
parent
d5495ad3
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
2 deletions
+15
-2
src/base/abci/abc.c
+15
-2
No files found.
src/base/abci/abc.c
View file @
79d5e765
...
...
@@ -445,6 +445,7 @@ int Abc_CommandPrintStats( Abc_Frame_t * pAbc, int argc, char ** argv )
int
fSaveBest
;
int
fDumpResult
;
int
fUseLutLib
;
int
fPrintTime
;
int
c
;
pNtk
=
Abc_FrameReadNtk
(
pAbc
);
...
...
@@ -456,8 +457,9 @@ int Abc_CommandPrintStats( Abc_Frame_t * pAbc, int argc, char ** argv )
fSaveBest
=
0
;
fDumpResult
=
0
;
fUseLutLib
=
0
;
fPrintTime
=
0
;
Extra_UtilGetoptReset
();
while
(
(
c
=
Extra_UtilGetopt
(
argc
,
argv
,
"fbdlh"
)
)
!=
EOF
)
while
(
(
c
=
Extra_UtilGetopt
(
argc
,
argv
,
"fbdl
t
h"
)
)
!=
EOF
)
{
switch
(
c
)
{
...
...
@@ -473,6 +475,9 @@ int Abc_CommandPrintStats( Abc_Frame_t * pAbc, int argc, char ** argv )
case
'l'
:
fUseLutLib
^=
1
;
break
;
case
't'
:
fPrintTime
^=
1
;
break
;
case
'h'
:
goto
usage
;
default:
...
...
@@ -486,15 +491,23 @@ int Abc_CommandPrintStats( Abc_Frame_t * pAbc, int argc, char ** argv )
return
1
;
}
Abc_NtkPrintStats
(
pOut
,
pNtk
,
fFactor
,
fSaveBest
,
fDumpResult
,
fUseLutLib
);
if
(
fPrintTime
)
{
pAbc
->
TimeTotal
+=
pAbc
->
TimeCommand
;
fprintf
(
pAbc
->
Out
,
"elapse: %3.2f seconds, total: %3.2f seconds
\n
"
,
pAbc
->
TimeCommand
,
pAbc
->
TimeTotal
);
pAbc
->
TimeCommand
=
0
.
0
;
}
return
0
;
usage:
fprintf
(
pErr
,
"usage: print_stats [-fbdlh]
\n
"
);
fprintf
(
pErr
,
"usage: print_stats [-fbdl
t
h]
\n
"
);
fprintf
(
pErr
,
"
\t
prints the network statistics
\n
"
);
fprintf
(
pErr
,
"
\t
-f : toggles printing the literal count in the factored forms [default = %s]
\n
"
,
fFactor
?
"yes"
:
"no"
);
fprintf
(
pErr
,
"
\t
-b : toggles saving the best logic network in
\"
best.blif
\"
[default = %s]
\n
"
,
fSaveBest
?
"yes"
:
"no"
);
fprintf
(
pErr
,
"
\t
-d : toggles dumping network into file
\"
<input_file_name>_dump.blif
\"
[default = %s]
\n
"
,
fDumpResult
?
"yes"
:
"no"
);
fprintf
(
pErr
,
"
\t
-l : toggles printing delay of LUT mapping using LUT library [default = %s]
\n
"
,
fSaveBest
?
"yes"
:
"no"
);
fprintf
(
pErr
,
"
\t
-t : toggles printing runtime statistics [default = %s]
\n
"
,
fPrintTime
?
"yes"
:
"no"
);
fprintf
(
pErr
,
"
\t
-h : print the command usage
\n
"
);
return
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