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
9e164ec5
Commit
9e164ec5
authored
Apr 24, 2022
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adding a switch to complement outputs after collapsing.
parent
7693ce6a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
3 deletions
+9
-3
src/base/wln/wlnCom.c
+9
-3
No files found.
src/base/wln/wlnCom.c
View file @
9e164ec5
...
...
@@ -335,9 +335,9 @@ int Abc_CommandCollapse( Abc_Frame_t * pAbc, int argc, char ** argv )
Gia_Man_t
*
pNew
=
NULL
;
Rtl_Lib_t
*
pLib
=
Wln_AbcGetRtl
(
pAbc
);
char
*
pTopModule
=
NULL
;
int
c
,
fVerbose
=
0
;
int
c
,
fInv
=
0
,
fVerbose
=
0
;
Extra_UtilGetoptReset
();
while
(
(
c
=
Extra_UtilGetopt
(
argc
,
argv
,
"Tvh"
)
)
!=
EOF
)
while
(
(
c
=
Extra_UtilGetopt
(
argc
,
argv
,
"T
i
vh"
)
)
!=
EOF
)
{
switch
(
c
)
{
...
...
@@ -350,6 +350,9 @@ int Abc_CommandCollapse( Abc_Frame_t * pAbc, int argc, char ** argv )
pTopModule
=
argv
[
globalUtilOptind
];
globalUtilOptind
++
;
break
;
case
'i'
:
fInv
^=
1
;
break
;
case
'v'
:
fVerbose
^=
1
;
break
;
...
...
@@ -365,12 +368,15 @@ int Abc_CommandCollapse( Abc_Frame_t * pAbc, int argc, char ** argv )
return
1
;
}
pNew
=
Rtl_LibCollapse
(
pLib
,
pTopModule
,
fVerbose
);
if
(
fInv
)
Gia_ManInvertPos
(
pNew
);
Abc_FrameUpdateGia
(
pAbc
,
pNew
);
return
0
;
usage:
Abc_Print
(
-
2
,
"usage: %%collapse [-T <module>] [-vh] <file_name>
\n
"
);
Abc_Print
(
-
2
,
"usage: %%collapse [-T <module>] [-
i
vh] <file_name>
\n
"
);
Abc_Print
(
-
2
,
"
\t
collapse hierarchical design into an AIG
\n
"
);
Abc_Print
(
-
2
,
"
\t
-T : specify the top module of the design [default = none]
\n
"
);
Abc_Print
(
-
2
,
"
\t
-i : toggle complementing miter outputs after collapsing [default = %s]
\n
"
,
fInv
?
"yes"
:
"no"
);
Abc_Print
(
-
2
,
"
\t
-v : toggle printing verbose information [default = %s]
\n
"
,
fVerbose
?
"yes"
:
"no"
);
Abc_Print
(
-
2
,
"
\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