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
9621ae94
Commit
9621ae94
authored
Sep 02, 2012
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added switch &srm -A <file> for dumping SRM into a user-specified file.
parent
ba597f67
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
3 deletions
+14
-3
src/base/abci/abc.c
+14
-3
No files found.
src/base/abci/abc.c
View file @
9621ae94
...
@@ -25990,6 +25990,7 @@ usage:
...
@@ -25990,6 +25990,7 @@ usage:
***********************************************************************/
***********************************************************************/
int
Abc_CommandAbc9Srm
(
Abc_Frame_t
*
pAbc
,
int
argc
,
char
**
argv
)
int
Abc_CommandAbc9Srm
(
Abc_Frame_t
*
pAbc
,
int
argc
,
char
**
argv
)
{
{
char
*
pFileNameIn
=
NULL
;
char
pFileName
[
10
]
=
"gsrm.aig"
,
pFileName2
[
10
]
=
"gsyn.aig"
;
char
pFileName
[
10
]
=
"gsrm.aig"
,
pFileName2
[
10
]
=
"gsyn.aig"
;
Gia_Man_t
*
pTemp
,
*
pAux
;
Gia_Man_t
*
pTemp
,
*
pAux
;
int
c
,
fVerbose
=
0
;
int
c
,
fVerbose
=
0
;
...
@@ -25998,10 +25999,19 @@ int Abc_CommandAbc9Srm( Abc_Frame_t * pAbc, int argc, char ** argv )
...
@@ -25998,10 +25999,19 @@ int Abc_CommandAbc9Srm( Abc_Frame_t * pAbc, int argc, char ** argv )
int
fSkipSome
=
0
;
int
fSkipSome
=
0
;
int
fDualOut
=
0
;
int
fDualOut
=
0
;
Extra_UtilGetoptReset
();
Extra_UtilGetoptReset
();
while
(
(
c
=
Extra_UtilGetopt
(
argc
,
argv
,
"drsfvh"
)
)
!=
EOF
)
while
(
(
c
=
Extra_UtilGetopt
(
argc
,
argv
,
"
A
drsfvh"
)
)
!=
EOF
)
{
{
switch
(
c
)
switch
(
c
)
{
{
case
'A'
:
if
(
globalUtilOptind
>=
argc
)
{
Abc_Print
(
-
1
,
"Command line switch
\"
-A
\"
should be followed by a file name.
\n
"
);
goto
usage
;
}
pFileNameIn
=
argv
[
globalUtilOptind
];
globalUtilOptind
++
;
break
;
case
'd'
:
case
'd'
:
fDualOut
^=
1
;
fDualOut
^=
1
;
break
;
break
;
...
@@ -26038,7 +26048,7 @@ int Abc_CommandAbc9Srm( Abc_Frame_t * pAbc, int argc, char ** argv )
...
@@ -26038,7 +26048,7 @@ int Abc_CommandAbc9Srm( Abc_Frame_t * pAbc, int argc, char ** argv )
pTemp
=
Gia_ManSeqStructSweep
(
pAux
=
pTemp
,
1
,
1
,
0
);
pTemp
=
Gia_ManSeqStructSweep
(
pAux
=
pTemp
,
1
,
1
,
0
);
Gia_ManStop
(
pAux
);
Gia_ManStop
(
pAux
);
}
}
Gia_WriteAiger
(
pTemp
,
pFileName
,
0
,
0
);
Gia_WriteAiger
(
pTemp
,
pFileName
In
?
pFileNameIn
:
pFileName
,
0
,
0
);
Abc_Print
(
1
,
"Speculatively reduced model was written into file
\"
%s
\"
.
\n
"
,
pFileName
);
Abc_Print
(
1
,
"Speculatively reduced model was written into file
\"
%s
\"
.
\n
"
,
pFileName
);
Gia_ManPrintStatsShort
(
pTemp
);
Gia_ManPrintStatsShort
(
pTemp
);
Gia_ManStop
(
pTemp
);
Gia_ManStop
(
pTemp
);
...
@@ -26060,8 +26070,9 @@ int Abc_CommandAbc9Srm( Abc_Frame_t * pAbc, int argc, char ** argv )
...
@@ -26060,8 +26070,9 @@ int Abc_CommandAbc9Srm( Abc_Frame_t * pAbc, int argc, char ** argv )
return
0
;
return
0
;
usage:
usage:
Abc_Print
(
-
2
,
"usage: &srm [-drsfvh]
\n
"
);
Abc_Print
(
-
2
,
"usage: &srm [-
A file] [-
drsfvh]
\n
"
);
Abc_Print
(
-
2
,
"
\t
writes speculatively reduced model into file
\"
%s
\"\n
"
,
pFileName
);
Abc_Print
(
-
2
,
"
\t
writes speculatively reduced model into file
\"
%s
\"\n
"
,
pFileName
);
Abc_Print
(
-
2
,
"
\t
-A file : file name for dumping speculative-reduced model [default =
\"
gsrm.aig
\"
]
\n
"
);
Abc_Print
(
-
2
,
"
\t
-d : toggle creating dual-output miter [default = %s]
\n
"
,
fDualOut
?
"yes"
:
"no"
);
Abc_Print
(
-
2
,
"
\t
-d : toggle creating dual-output miter [default = %s]
\n
"
,
fDualOut
?
"yes"
:
"no"
);
Abc_Print
(
-
2
,
"
\t
-r : toggle writing reduced network for synthesis [default = %s]
\n
"
,
fSynthesis
?
"yes"
:
"no"
);
Abc_Print
(
-
2
,
"
\t
-r : toggle writing reduced network for synthesis [default = %s]
\n
"
,
fSynthesis
?
"yes"
:
"no"
);
Abc_Print
(
-
2
,
"
\t
-s : toggle using speculation at the internal nodes [default = %s]
\n
"
,
fSpeculate
?
"yes"
:
"no"
);
Abc_Print
(
-
2
,
"
\t
-s : toggle using speculation at the internal nodes [default = %s]
\n
"
,
fSpeculate
?
"yes"
:
"no"
);
...
...
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