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
5158c711
Commit
5158c711
authored
Feb 14, 2015
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added switch -n to 'sop'.
parent
edf3622c
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
7 deletions
+11
-7
src/base/abc/abcFunc.c
+4
-2
src/base/abci/abc.c
+7
-5
No files found.
src/base/abc/abcFunc.c
View file @
5158c711
...
...
@@ -382,9 +382,11 @@ int Abc_NtkBddToSop( Abc_Ntk_t * pNtk, int fDirect, int nCubeLimit )
//printf( "The total number of cubes = %d.\n", nCubes );
}
if
(
fDirect
)
if
(
fDirect
==
2
)
// negative polarity only
fMode
=
0
;
else
if
(
fDirect
==
1
)
// positive polarity only
fMode
=
1
;
else
else
// both polarities
fMode
=
-
1
;
assert
(
Abc_NtkHasBdd
(
pNtk
)
);
...
...
src/base/abci/abc.c
View file @
5158c711
...
...
@@ -7889,13 +7889,12 @@ usage:
int
Abc_CommandSop
(
Abc_Frame_t
*
pAbc
,
int
argc
,
char
**
argv
)
{
Abc_Ntk_t
*
pNtk
=
Abc_FrameReadNtk
(
pAbc
);
int
fDirect
,
nCubeLimit
=
1000000
;
int
fDirect
=
0
,
nCubeLimit
=
1000000
;
int
c
;
// set defaults
fDirect
=
0
;
Extra_UtilGetoptReset
();
while
(
(
c
=
Extra_UtilGetopt
(
argc
,
argv
,
"Cdh"
)
)
!=
EOF
)
while
(
(
c
=
Extra_UtilGetopt
(
argc
,
argv
,
"Cd
n
h"
)
)
!=
EOF
)
{
switch
(
c
)
{
...
...
@@ -7911,7 +7910,10 @@ int Abc_CommandSop( Abc_Frame_t * pAbc, int argc, char ** argv )
goto
usage
;
break
;
case
'd'
:
fDirect
^=
1
;
fDirect
=
1
;
break
;
case
'n'
:
fDirect
=
2
;
break
;
case
'h'
:
goto
usage
;
...
...
@@ -7940,7 +7942,7 @@ usage:
Abc_Print
(
-
2
,
"usage: sop [-C num] [-dh]
\n
"
);
Abc_Print
(
-
2
,
"
\t
converts node functions to SOP
\n
"
);
Abc_Print
(
-
2
,
"
\t
-C num : the limit on the total cube count of all nodes [default = %d]
\n
"
,
nCubeLimit
);
Abc_Print
(
-
2
,
"
\t
-d : toggles using both phases or only positive [default = %s]
\n
"
,
fDirect
?
"direct"
:
"both"
);
Abc_Print
(
-
2
,
"
\t
-d : toggles using both phases or only positive [default = %s]
\n
"
,
fDirect
?
(
fDirect
==
1
?
"direct"
:
"negated"
)
:
"both"
);
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