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
90529df0
Commit
90529df0
authored
Oct 29, 2012
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Tentatively integrated new DSD.
parent
d94c8d3f
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
2 deletions
+23
-2
src/base/abci/abc.c
+1
-0
src/base/abci/abcDec.c
+21
-1
src/opt/dau/dauDsd.c
+1
-1
No files found.
src/base/abci/abc.c
View file @
90529df0
...
...
@@ -4838,6 +4838,7 @@ usage:
Abc_Print
(
-
2
,
"
\t
1: algebraic factoring applied to ISOP
\n
"
);
Abc_Print
(
-
2
,
"
\t
2: bi-decomposition with cofactoring
\n
"
);
Abc_Print
(
-
2
,
"
\t
3: disjoint-support decomposition with cofactoring
\n
"
);
Abc_Print
(
-
2
,
"
\t
4: updated disjoint-support decomposition with cofactoring
\n
"
);
Abc_Print
(
-
2
,
"
\t
-N <num> : the number of support variables (binary files only) [default = unused]
\n
"
);
Abc_Print
(
-
2
,
"
\t
-v : toggle verbose printout [default = %s]
\n
"
,
fVerbose
?
"yes"
:
"no"
);
Abc_Print
(
-
2
,
"
\t
-h : print the command usage
\n
"
);
...
...
src/base/abci/abcDec.c
View file @
90529df0
...
...
@@ -473,6 +473,8 @@ void Abc_TruthDecPerform( Abc_TtStore_t * p, int DecType, int fVerbose )
pAlgoName
=
"bi-decomp"
;
else
if
(
DecType
==
3
)
pAlgoName
=
"DSD"
;
else
if
(
DecType
==
4
)
pAlgoName
=
"fast DSD"
;
if
(
pAlgoName
)
printf
(
"Applying %-10s to %8d func%s of %2d vars... "
,
...
...
@@ -537,6 +539,24 @@ void Abc_TruthDecPerform( Abc_TtStore_t * p, int DecType, int fVerbose )
Kit_DsdNtkFree
(
pNtk
);
}
}
else
if
(
DecType
==
4
)
{
extern
void
Dau_DsdTestOne
(
word
t
,
int
i
);
if
(
p
->
nVars
!=
6
)
{
printf
(
"Currently only works for 6 variables.
\n
"
);
return
;
}
// perform disjoint-support decomposition and count AIG nodes
// (non-DSD blocks are decomposed into 2:1 MUXes, each counting as 3 AIG nodes)
assert
(
p
->
nVars
==
6
);
for
(
i
=
0
;
i
<
p
->
nFuncs
;
i
++
)
{
if
(
fVerbose
)
printf
(
"%7d : "
,
i
);
Dau_DsdTestOne
(
*
p
->
pFuncs
[
i
],
i
);
}
}
else
assert
(
0
);
printf
(
"AIG nodes =%9d "
,
nNodes
);
...
...
@@ -587,7 +607,7 @@ int Abc_DecTest( char * pFileName, int DecType, int nVarNum, int fVerbose )
printf
(
"Using truth tables from file
\"
%s
\"
...
\n
"
,
pFileName
);
if
(
DecType
==
0
)
{
if
(
nVarNum
<
0
)
Abc_TtStoreTest
(
pFileName
);
}
else
if
(
DecType
>=
1
&&
DecType
<=
3
)
else
if
(
DecType
>=
1
&&
DecType
<=
4
)
Abc_TruthDecTest
(
pFileName
,
DecType
,
nVarNum
,
fVerbose
);
else
printf
(
"Unknown decomposition type value (%d).
\n
"
,
DecType
);
...
...
src/opt/dau/dauDsd.c
View file @
90529df0
...
...
@@ -443,7 +443,7 @@ void Dau_DsdTestOne( word t, int i )
{
word
t2
;
char
*
p
=
Dau_DsdPerform
(
t
);
//
return;
return
;
t2
=
Dau_DsdToTruth
(
p
);
if
(
t
!=
t2
)
{
...
...
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