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
51db5602
Commit
51db5602
authored
May 06, 2013
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Procedures for sorting fanins of the nodes.
parent
f0288863
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
6 deletions
+15
-6
src/base/abc/abcFunc.c
+4
-0
src/base/abci/abc.c
+4
-2
src/base/abci/abcDsd.c
+7
-4
No files found.
src/base/abc/abcFunc.c
View file @
51db5602
...
...
@@ -356,6 +356,7 @@ char * Abc_ConvertBddToSop( Mem_Flex_t * pMan, DdManager * dd, DdNode * bFuncOn,
***********************************************************************/
int
Abc_NtkBddToSop
(
Abc_Ntk_t
*
pNtk
,
int
fDirect
)
{
extern
void
Abc_NtkSortSops
(
Abc_Ntk_t
*
pNtk
);
Abc_Obj_t
*
pNode
;
Mem_Flex_t
*
pManNew
;
DdManager
*
dd
=
(
DdManager
*
)
pNtk
->
pManFunc
;
...
...
@@ -406,6 +407,9 @@ int Abc_NtkBddToSop( Abc_Ntk_t * pNtk, int fDirect )
// check for remaining references in the package
Extra_StopManager
(
dd
);
// reorder fanins and cubes to make SOPs more human-readable
Abc_NtkSortSops
(
pNtk
);
return
1
;
}
...
...
src/base/abci/abc.c
View file @
51db5602
...
...
@@ -3856,7 +3856,8 @@ int Abc_CommandDisjoint( Abc_Frame_t * pAbc, int argc, char ** argv )
Abc_Print
(
-
1
,
"This command is only applicable to logic BDD networks.
\n
"
);
return
1
;
}
Abc_Print
(
1
,
"Performing recursive DSD and MUX decomposition of local functions.
\n
"
);
if
(
fVerbose
)
Abc_Print
(
1
,
"Performing recursive DSD and MUX decomposition of local functions.
\n
"
);
if
(
!
Abc_NtkDsdLocal
(
pNtk
,
fVerbose
,
fRecursive
)
)
Abc_Print
(
-
1
,
"Recursive DSD has failed.
\n
"
);
}
...
...
@@ -3867,7 +3868,8 @@ int Abc_CommandDisjoint( Abc_Frame_t * pAbc, int argc, char ** argv )
Abc_Print
(
-
1
,
"This command is only applicable to logic BDD networks (run
\"
bdd
\"
).
\n
"
);
return
1
;
}
Abc_Print
(
1
,
"Performing simple non-recursive DSD of local functions.
\n
"
);
if
(
fVerbose
)
Abc_Print
(
1
,
"Performing simple non-recursive DSD of local functions.
\n
"
);
if
(
!
Abc_NtkDsdLocal
(
pNtk
,
fVerbose
,
fRecursive
)
)
Abc_Print
(
-
1
,
"Simple DSD of local functions has failed.
\n
"
);
}
...
...
src/base/abci/abcDsd.c
View file @
51db5602
...
...
@@ -332,10 +332,13 @@ int Abc_NtkDsdLocal( Abc_Ntk_t * pNtk, int fVerbose, int fRecursive )
Abc_NodeDecompDsdAndMux
(
(
Abc_Obj_t
*
)
vNodes
->
pArray
[
i
],
vNodes
,
pManDsd
,
fRecursive
,
pCounters
);
Vec_PtrFree
(
vNodes
);
printf
(
"Number of non-decomposable functions:
\n
"
);
for
(
i
=
3
;
i
<
10
;
i
++
)
printf
(
"Inputs = %d. Functions = %6d.
\n
"
,
i
,
pCounters
[
i
]
);
printf
(
"Inputs > %d. Functions = %6d.
\n
"
,
9
,
pCounters
[
10
]
);
if
(
fVerbose
)
{
printf
(
"Number of non-decomposable functions:
\n
"
);
for
(
i
=
3
;
i
<
10
;
i
++
)
printf
(
"Inputs = %d. Functions = %6d.
\n
"
,
i
,
pCounters
[
i
]
);
printf
(
"Inputs > %d. Functions = %6d.
\n
"
,
9
,
pCounters
[
10
]
);
}
// stop the DSD manager
Dsd_ManagerStop
(
pManDsd
);
...
...
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