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
f16012bc
Commit
f16012bc
authored
Jan 29, 2019
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adding new switch to simulation.
parent
0699c43a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
5 deletions
+18
-5
src/base/abci/abc.c
+17
-4
src/misc/extra/extraUtilCfs.c
+1
-1
No files found.
src/base/abci/abc.c
View file @
f16012bc
...
...
@@ -45559,17 +45559,29 @@ usage:
***********************************************************************/
int
Abc_CommandAbc9Cfs
(
Abc_Frame_t
*
pAbc
,
int
argc
,
char
**
argv
)
{
extern
void
Extra_CommandCfs
(
Gia_Man_t
*
pGia
,
int
Limit
,
int
Reps
,
int
UnseenUse
,
int
RareUse
,
int
fVerbose
);
extern
void
Extra_CommandCfs
(
Gia_Man_t
*
pGia
,
int
Multi
,
int
Limit
,
int
Reps
,
int
UnseenUse
,
int
RareUse
,
int
fVerbose
);
int
Multi
=
0
;
int
Limit
=
0
;
int
Reps
=
1
;
int
UnseenUse
=
2
;
int
RareUse
=
2
;
int
c
,
fVerbose
=
0
;
Extra_UtilGetoptReset
();
while
(
(
c
=
Extra_UtilGetopt
(
argc
,
argv
,
"LNURvh"
)
)
!=
EOF
)
while
(
(
c
=
Extra_UtilGetopt
(
argc
,
argv
,
"
M
LNURvh"
)
)
!=
EOF
)
{
switch
(
c
)
{
case
'M'
:
if
(
globalUtilOptind
>=
argc
)
{
Abc_Print
(
-
1
,
"Command line switch
\"
-M
\"
should be followed by an integer.
\n
"
);
goto
usage
;
}
Multi
=
atoi
(
argv
[
globalUtilOptind
]);
globalUtilOptind
++
;
if
(
Multi
<
0
)
goto
usage
;
break
;
case
'L'
:
if
(
globalUtilOptind
>=
argc
)
{
...
...
@@ -45628,12 +45640,13 @@ int Abc_CommandAbc9Cfs( Abc_Frame_t * pAbc, int argc, char ** argv )
Abc_Print
(
-
1
,
"Abc_CommandAbc9Cfs(): There is no AIG.
\n
"
);
return
1
;
}
Extra_CommandCfs
(
pAbc
->
pGia
,
Limit
,
Reps
,
UnseenUse
,
RareUse
,
fVerbose
);
Extra_CommandCfs
(
pAbc
->
pGia
,
Multi
,
Limit
,
Reps
,
UnseenUse
,
RareUse
,
fVerbose
);
return
0
;
usage:
Abc_Print
(
-
2
,
"usage: &cfs [-LNURvh]
\n
"
);
Abc_Print
(
-
2
,
"usage: &cfs [-
M
LNURvh]
\n
"
);
Abc_Print
(
-
2
,
"
\t
performs simulation
\n
"
);
Abc_Print
(
-
2
,
"
\t
-M num : the multiplier type (1=array, 2=booth) [default = %d]
\n
"
,
Multi
);
Abc_Print
(
-
2
,
"
\t
-L num : the limit on the number of occurrences [default = %d]
\n
"
,
Limit
);
Abc_Print
(
-
2
,
"
\t
-N num : the number of repetions of each pattern [default = %d]
\n
"
,
Reps
);
Abc_Print
(
-
2
,
"
\t
-U num : what to do with unseen patterns [default = %d]
\n
"
,
UnseenUse
);
src/misc/extra/extraUtilCfs.c
View file @
f16012bc
...
...
@@ -48,7 +48,7 @@ ABC_NAMESPACE_IMPL_START
SeeAlso []
***********************************************************************/
void
Extra_CommandCfs
(
Gia_Man_t
*
pGia
,
int
Limit
,
int
Reps
,
int
UnseenUse
,
int
RareUse
,
int
fVerbose
)
void
Extra_CommandCfs
(
Gia_Man_t
*
pGia
,
int
Multi
,
int
Limit
,
int
Reps
,
int
UnseenUse
,
int
RareUse
,
int
fVerbose
)
{
}
...
...
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