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
37703eaa
Commit
37703eaa
authored
Apr 26, 2014
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Exploration of functions.
parent
857688b9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
6 deletions
+8
-6
src/base/abci/abc.c
+3
-3
src/misc/extra/extraUtilEnum.c
+5
-3
No files found.
src/base/abci/abc.c
View file @
37703eaa
...
...
@@ -10321,7 +10321,7 @@ int Abc_CommandTest( Abc_Frame_t * pAbc, int argc, char ** argv )
int
nCutMax
=
1
;
int
nLeafMax
=
10
;
int
nDivMax
=
50
;
int
nDecMax
=
3
;
int
nDecMax
=
20
;
int
fNewAlgo
=
0
;
int
fNewOrder
=
0
;
int
fVerbose
=
0
;
...
...
@@ -10461,8 +10461,8 @@ int Abc_CommandTest( Abc_Frame_t * pAbc, int argc, char ** argv )
}
*/
{
extern
void
Abc_EnumerateFunctions
();
Abc_EnumerateFunctions
();
extern
void
Abc_EnumerateFunctions
(
int
nVars
);
Abc_EnumerateFunctions
(
nDecMax
);
}
if
(
pNtk
)
{
src/misc/extra/extraUtilEnum.c
View file @
37703eaa
...
...
@@ -249,7 +249,7 @@ static inline void Abc_DataXorBit( word * p, word i ) { p[(i)>>6] ^= (1<<((i) &
SeeAlso []
***********************************************************************/
void
Abc_EnumerateFunctions
()
void
Abc_EnumerateFunctions
(
int
nDecMax
)
{
int
nVars
;
int
nMints
;
...
...
@@ -258,7 +258,7 @@ void Abc_EnumerateFunctions()
unsigned
pMints
[
100
]
=
{
0
};
unsigned
pFuncs
[
100
]
=
{
0
};
unsigned
Truth
;
int
FuncDone
[
100
]
=
{
0
};
int
FuncDone
[
100
]
=
{
0
}
,
nFuncDone
=
0
;
int
GateCount
[
100
]
=
{
0
};
int
i
,
k
,
n
,
a
,
b
,
v
;
abctime
clk
=
Abc_Clock
();
...
...
@@ -289,7 +289,7 @@ void Abc_EnumerateFunctions()
GateCount
[
0
]
=
0
;
GateCount
[
1
]
=
nVars
;
assert
(
Vec_IntSize
(
vTruths
)
==
nVars
);
for
(
n
=
0
;
n
<
10
;
n
++
)
for
(
n
=
0
;
n
<
nDecMax
&&
nFuncDone
<
nFuncs
;
n
++
)
{
for
(
a
=
0
;
a
<=
n
;
a
++
)
for
(
b
=
a
;
b
<=
n
;
b
++
)
...
...
@@ -316,6 +316,7 @@ void Abc_EnumerateFunctions()
printf
(
"Found function %d with %d gates: "
,
v
,
n
+
1
);
Abc_EnumPrint
(
vGates
,
Vec_IntSize
(
vTruths
)
-
1
,
nVars
);
FuncDone
[
v
]
=
1
;
nFuncDone
++
;
}
}
Truth
=
Vec_IntEntry
(
vTruths
,
i
)
|
Vec_IntEntry
(
vTruths
,
k
);
...
...
@@ -334,6 +335,7 @@ void Abc_EnumerateFunctions()
printf
(
"Found function %d with %d gates: "
,
v
,
n
+
1
);
Abc_EnumPrint
(
vGates
,
Vec_IntSize
(
vTruths
)
-
1
,
nVars
);
FuncDone
[
v
]
=
1
;
nFuncDone
++
;
}
}
}
...
...
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