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
f91f23be
Commit
f91f23be
authored
Apr 24, 2016
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adding new switch 'bdd -s' to translate SOP directly into BDD.
parent
67bfb4ba
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
3 deletions
+9
-3
src/base/abci/abc.c
+9
-3
No files found.
src/base/abci/abc.c
View file @
f91f23be
...
...
@@ -8450,18 +8450,21 @@ usage:
int
Abc_CommandBdd
(
Abc_Frame_t
*
pAbc
,
int
argc
,
char
**
argv
)
{
Abc_Ntk_t
*
pNtk
=
Abc_FrameReadNtk
(
pAbc
);
int
fReorder
=
1
;
int
fReorder
=
1
,
fBdd2Sop
=
0
;
int
c
;
// set defaults
Extra_UtilGetoptReset
();
while
(
(
c
=
Extra_UtilGetopt
(
argc
,
argv
,
"rh"
)
)
!=
EOF
)
while
(
(
c
=
Extra_UtilGetopt
(
argc
,
argv
,
"r
s
h"
)
)
!=
EOF
)
{
switch
(
c
)
{
case
'r'
:
fReorder
^=
1
;
break
;
case
's'
:
fBdd2Sop
^=
1
;
break
;
case
'h'
:
goto
usage
;
default:
...
...
@@ -8478,6 +8481,8 @@ int Abc_CommandBdd( Abc_Frame_t * pAbc, int argc, char ** argv )
Abc_Print
(
-
1
,
"Converting to BDD is possible only for logic networks.
\n
"
);
return
1
;
}
if
(
fBdd2Sop
&&
Abc_NtkHasSop
(
pNtk
)
)
return
!
Abc_NtkSopToBdd
(
pNtk
);
if
(
Abc_NtkIsBddLogic
(
pNtk
)
)
{
Abc_Print
(
-
1
,
"The logic network is already in the BDD form.
\n
"
);
...
...
@@ -8491,9 +8496,10 @@ int Abc_CommandBdd( Abc_Frame_t * pAbc, int argc, char ** argv )
return
0
;
usage:
Abc_Print
(
-
2
,
"usage: bdd [-rh]
\n
"
);
Abc_Print
(
-
2
,
"usage: bdd [-r
s
h]
\n
"
);
Abc_Print
(
-
2
,
"
\t
converts node functions to BDD
\n
"
);
Abc_Print
(
-
2
,
"
\t
-r : toggles enabling dynamic variable reordering [default = %s]
\n
"
,
fReorder
?
"yes"
:
"no"
);
Abc_Print
(
-
2
,
"
\t
-s : toggles constructing BDDs directly from SOPs [default = %s]
\n
"
,
fBdd2Sop
?
"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