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
1b82a387
Commit
1b82a387
authored
Sep 11, 2018
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Expriments with functions (supporting symmetries).
parent
1e35ed87
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
7 deletions
+9
-7
src/base/abci/abc.c
+9
-5
src/base/abci/abcNpn.c
+0
-2
src/opt/dau/dauNpn.c
+0
-0
No files found.
src/base/abci/abc.c
View file @
1b82a387
...
@@ -23012,10 +23012,10 @@ usage:
...
@@ -23012,10 +23012,10 @@ usage:
***********************************************************************/
***********************************************************************/
int
Abc_CommandFunEnum
(
Abc_Frame_t
*
pAbc
,
int
argc
,
char
**
argv
)
int
Abc_CommandFunEnum
(
Abc_Frame_t
*
pAbc
,
int
argc
,
char
**
argv
)
{
{
extern
void
Dau_FunctionEnum
(
int
nInputs
,
int
nVars
,
int
nNodeMax
,
int
fUseTwo
,
int
fVerbose
);
extern
void
Dau_FunctionEnum
(
int
nInputs
,
int
nVars
,
int
nNodeMax
,
int
fUseTwo
,
int
f
Reduce
,
int
f
Verbose
);
int
c
,
nInputs
=
4
,
nVars
=
4
,
nNodeMax
=
32
,
fUseTwo
=
0
,
fVerbose
=
0
;
int
c
,
nInputs
=
4
,
nVars
=
4
,
nNodeMax
=
32
,
fUseTwo
=
0
,
f
Reduce
=
0
,
f
Verbose
=
0
;
Extra_UtilGetoptReset
();
Extra_UtilGetoptReset
();
while
(
(
c
=
Extra_UtilGetopt
(
argc
,
argv
,
"SIMtvh"
)
)
!=
EOF
)
while
(
(
c
=
Extra_UtilGetopt
(
argc
,
argv
,
"SIMt
r
vh"
)
)
!=
EOF
)
{
{
switch
(
c
)
switch
(
c
)
{
{
...
@@ -23055,6 +23055,9 @@ int Abc_CommandFunEnum( Abc_Frame_t * pAbc, int argc, char ** argv )
...
@@ -23055,6 +23055,9 @@ int Abc_CommandFunEnum( Abc_Frame_t * pAbc, int argc, char ** argv )
case
't'
:
case
't'
:
fUseTwo
^=
1
;
fUseTwo
^=
1
;
break
;
break
;
case
'r'
:
fReduce
^=
1
;
break
;
case
'v'
:
case
'v'
:
fVerbose
^=
1
;
fVerbose
^=
1
;
break
;
break
;
...
@@ -23076,16 +23079,17 @@ int Abc_CommandFunEnum( Abc_Frame_t * pAbc, int argc, char ** argv )
...
@@ -23076,16 +23079,17 @@ int Abc_CommandFunEnum( Abc_Frame_t * pAbc, int argc, char ** argv )
goto
usage
;
goto
usage
;
}
}
Dau_FunctionEnum
(
nInputs
,
nVars
,
nNodeMax
,
fUseTwo
,
fVerbose
);
Dau_FunctionEnum
(
nInputs
,
nVars
,
nNodeMax
,
fUseTwo
,
f
Reduce
,
f
Verbose
);
return
0
;
return
0
;
usage:
usage:
Abc_Print
(
-
2
,
"usage: funenum [-SIM num] [-tvh]
\n
"
);
Abc_Print
(
-
2
,
"usage: funenum [-SIM num] [-t
r
vh]
\n
"
);
Abc_Print
(
-
2
,
"
\t
enumerates minimum 2-input-gate implementations
\n
"
);
Abc_Print
(
-
2
,
"
\t
enumerates minimum 2-input-gate implementations
\n
"
);
Abc_Print
(
-
2
,
"
\t
-S num : the maximum intermediate support size [default = %d]
\n
"
,
nInputs
);
Abc_Print
(
-
2
,
"
\t
-S num : the maximum intermediate support size [default = %d]
\n
"
,
nInputs
);
Abc_Print
(
-
2
,
"
\t
-I num : the number of inputs of Boolean functions [default = %d]
\n
"
,
nVars
);
Abc_Print
(
-
2
,
"
\t
-I num : the number of inputs of Boolean functions [default = %d]
\n
"
,
nVars
);
Abc_Print
(
-
2
,
"
\t
-M num : the maximum number of 2-input gates [default = %d]
\n
"
,
nNodeMax
);
Abc_Print
(
-
2
,
"
\t
-M num : the maximum number of 2-input gates [default = %d]
\n
"
,
nNodeMax
);
Abc_Print
(
-
2
,
"
\t
-t : toggle adding combination of two gates [default = %s]
\n
"
,
fUseTwo
?
"yes"
:
"no"
);
Abc_Print
(
-
2
,
"
\t
-t : toggle adding combination of two gates [default = %s]
\n
"
,
fUseTwo
?
"yes"
:
"no"
);
Abc_Print
(
-
2
,
"
\t
-r : toggle reducing the last level [default = %s]
\n
"
,
fReduce
?
"yes"
:
"no"
);
Abc_Print
(
-
2
,
"
\t
-v : toggle verbose output [default = %s]
\n
"
,
fVerbose
?
"yes"
:
"no"
);
Abc_Print
(
-
2
,
"
\t
-v : toggle verbose output [default = %s]
\n
"
,
fVerbose
?
"yes"
:
"no"
);
Abc_Print
(
-
2
,
"
\t
-h : print the command usage
\n
"
);
Abc_Print
(
-
2
,
"
\t
-h : print the command usage
\n
"
);
return
1
;
return
1
;
src/base/abci/abcNpn.c
View file @
1b82a387
...
@@ -314,8 +314,6 @@ void Abc_TruthNpnPerform( Abc_TtStore_t * p, int NpnType, int fVerbose )
...
@@ -314,8 +314,6 @@ void Abc_TruthNpnPerform( Abc_TtStore_t * p, int NpnType, int fVerbose )
typedef
unsigned
(
*
TtCanonicizeFunc
)(
Abc_TtHieMan_t
*
p
,
word
*
pTruth
,
int
nVars
,
char
*
pCanonPerm
,
int
flag
);
typedef
unsigned
(
*
TtCanonicizeFunc
)(
Abc_TtHieMan_t
*
p
,
word
*
pTruth
,
int
nVars
,
char
*
pCanonPerm
,
int
flag
);
unsigned
Abc_TtCanonicizeWrap
(
TtCanonicizeFunc
func
,
Abc_TtHieMan_t
*
p
,
word
*
pTruth
,
int
nVars
,
char
*
pCanonPerm
,
int
flag
);
unsigned
Abc_TtCanonicizeWrap
(
TtCanonicizeFunc
func
,
Abc_TtHieMan_t
*
p
,
word
*
pTruth
,
int
nVars
,
char
*
pCanonPerm
,
int
flag
);
unsigned
Abc_TtCanonicizeAda
(
Abc_TtHieMan_t
*
p
,
word
*
pTruth
,
int
nVars
,
char
*
pCanonPerm
,
int
iThres
);
unsigned
Abc_TtCanonicizeAda
(
Abc_TtHieMan_t
*
p
,
word
*
pTruth
,
int
nVars
,
char
*
pCanonPerm
,
int
iThres
);
Abc_TtHieMan_t
*
Abc_TtHieManStart
(
int
nVars
,
int
nLevels
);
void
Abc_TtHieManStop
(
Abc_TtHieMan_t
*
p
);
int
fHigh
=
1
,
iEnumThres
=
25
;
int
fHigh
=
1
,
iEnumThres
=
25
;
Abc_TtHieMan_t
*
pMan
=
Abc_TtHieManStart
(
p
->
nVars
,
5
);
Abc_TtHieMan_t
*
pMan
=
Abc_TtHieManStart
(
p
->
nVars
,
5
);
...
...
src/opt/dau/dauNpn.c
View file @
1b82a387
This diff is collapsed.
Click to expand it.
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