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
35f90a77
Commit
35f90a77
authored
Mar 08, 2011
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Mffc-based structural decomposition of the network and bug fixes in reordering package.
parent
24f0da14
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
21 additions
and
8 deletions
+21
-8
abclib.dsp
+8
-0
src/base/abci/abcCascade.c
+7
-3
src/base/abci/abcMffc.c
+0
-0
src/bdd/reo/reoCore.c
+2
-2
src/bdd/reo/reoProfile.c
+2
-2
src/bdd/reo/reoUnits.c
+2
-1
No files found.
abclib.dsp
View file @
35f90a77
...
@@ -307,6 +307,10 @@ SOURCE=.\src\base\abci\abcMerge.c
...
@@ -307,6 +307,10 @@ SOURCE=.\src\base\abci\abcMerge.c
# End Source File
# End Source File
# Begin Source File
# Begin Source File
SOURCE=.\src\base\abci\abcMffc.c
# End Source File
# Begin Source File
SOURCE=.\src\base\abci\abcMini.c
SOURCE=.\src\base\abci\abcMini.c
# End Source File
# End Source File
# Begin Source File
# Begin Source File
...
@@ -3563,6 +3567,10 @@ SOURCE=.\src\aig\int\int.h
...
@@ -3563,6 +3567,10 @@ SOURCE=.\src\aig\int\int.h
# End Source File
# End Source File
# Begin Source File
# Begin Source File
SOURCE=.\src\aig\int\intCheck.c
# End Source File
# Begin Source File
SOURCE=.\src\aig\int\intContain.c
SOURCE=.\src\aig\int\intContain.c
# End Source File
# End Source File
# Begin Source File
# Begin Source File
...
...
src/base/abci/abcCascade.c
View file @
35f90a77
...
@@ -126,9 +126,9 @@ DdNode * Abc_NtkBddToAdd( DdManager * dd, DdNode * bFunc, int nOuts )
...
@@ -126,9 +126,9 @@ DdNode * Abc_NtkBddToAdd( DdManager * dd, DdNode * bFunc, int nOuts )
stmm_table
*
tTable
;
stmm_table
*
tTable
;
stmm_generator
*
gen
;
stmm_generator
*
gen
;
tTable
=
stmm_init_table
(
st_ptrcmp
,
st_ptrhash
);
tTable
=
stmm_init_table
(
st_ptrcmp
,
st_ptrhash
);
aFunc
=
Abc_NtkBddToAdd_rec
(
dd
,
Cudd_Regular
(
bFunc
),
nOuts
,
tTable
,
Cudd_IsComplement
(
bFunc
)
);
Cudd_Ref
(
aFunc
);
aFunc
=
Abc_NtkBddToAdd_rec
(
dd
,
Cudd_Regular
(
bFunc
),
nOuts
,
tTable
,
Cudd_IsComplement
(
bFunc
)
);
stmm_foreach_item
(
tTable
,
gen
,
(
char
**
)
&
bTemp
,
(
char
**
)
&
aTemp
)
stmm_foreach_item
(
tTable
,
gen
,
(
char
**
)
&
bTemp
,
(
char
**
)
&
aTemp
)
Cudd_RecursiveDeref
(
dd
,
a
Func
);
Cudd_RecursiveDeref
(
dd
,
a
Temp
);
stmm_free_table
(
tTable
);
stmm_free_table
(
tTable
);
Cudd_Deref
(
aFunc
);
Cudd_Deref
(
aFunc
);
return
aFunc
;
return
aFunc
;
...
@@ -189,10 +189,12 @@ void Abc_NtkBddDecTry( reo_man * pReo, DdManager * dd, DdNode ** pFuncs, int nOu
...
@@ -189,10 +189,12 @@ void Abc_NtkBddDecTry( reo_man * pReo, DdManager * dd, DdNode ** pFuncs, int nOu
//Abc_NodeShowBddOne( dd, aFunc );
//Abc_NodeShowBddOne( dd, aFunc );
// perform reordering for BDD width
// perform reordering for BDD width
aFuncNew
=
Extra_Reorder
(
pReo
,
dd
,
aFunc
,
NULL
);
Cudd_Ref
(
aFuncNew
);
aFuncNew
=
Extra_Reorder
(
pReo
,
dd
,
aFunc
,
NULL
);
Cudd_Ref
(
aFuncNew
);
printf
(
"Before = %d. After = %d.
\n
"
,
Cudd_DagSize
(
aFunc
),
Cudd_DagSize
(
aFuncNew
)
);
//Abc_NodeShowBddOne( dd, aFuncNew );
Cudd_RecursiveDeref
(
dd
,
aFuncNew
);
Cudd_RecursiveDeref
(
dd
,
aFuncNew
);
Cudd_RecursiveDeref
(
dd
,
aFunc
);
Cudd_RecursiveDeref
(
dd
,
aFunc
);
// print the result
// print the result
reoProfileWidthPrint
(
pReo
);
//
reoProfileWidthPrint( pReo );
}
}
/**Function*************************************************************
/**Function*************************************************************
...
@@ -268,6 +270,8 @@ void Abc_NtkBddDec( Abc_Ntk_t * pNtk, int fVerbose )
...
@@ -268,6 +270,8 @@ void Abc_NtkBddDec( Abc_Ntk_t * pNtk, int fVerbose )
pReo
=
Extra_ReorderInit
(
Abc_NtkCiNum
(
pNtk
),
1000
);
pReo
=
Extra_ReorderInit
(
Abc_NtkCiNum
(
pNtk
),
1000
);
Extra_ReorderSetMinimizationType
(
pReo
,
REO_MINIMIZE_WIDTH
);
Extra_ReorderSetMinimizationType
(
pReo
,
REO_MINIMIZE_WIDTH
);
// Extra_ReorderSetVerification( pReo, 1 );
Extra_ReorderSetVerbosity
(
pReo
,
1
);
Abc_NtkBddDecInt
(
pReo
,
dd
,
pFuncs
,
Abc_NtkCoNum
(
pNtk
)
);
Abc_NtkBddDecInt
(
pReo
,
dd
,
pFuncs
,
Abc_NtkCoNum
(
pNtk
)
);
Extra_ReorderQuit
(
pReo
);
Extra_ReorderQuit
(
pReo
);
...
...
src/base/abci/abcMffc.c
0 → 100644
View file @
35f90a77
This diff is collapsed.
Click to expand it.
src/bdd/reo/reoCore.c
View file @
35f90a77
...
@@ -122,7 +122,7 @@ void reoReorderArray( reo_man * p, DdManager * dd, DdNode * Funcs[], DdNode * Fu
...
@@ -122,7 +122,7 @@ void reoReorderArray( reo_man * p, DdManager * dd, DdNode * Funcs[], DdNode * Fu
if
(
p
->
fVerbose
)
if
(
p
->
fVerbose
)
{
{
printf
(
"INITIAL:
"
);
printf
(
"INITIAL:
\n
"
);
if
(
p
->
fMinWidth
)
if
(
p
->
fMinWidth
)
reoProfileWidthPrint
(
p
);
reoProfileWidthPrint
(
p
);
else
if
(
p
->
fMinApl
)
else
if
(
p
->
fMinApl
)
...
@@ -141,7 +141,7 @@ void reoReorderArray( reo_man * p, DdManager * dd, DdNode * Funcs[], DdNode * Fu
...
@@ -141,7 +141,7 @@ void reoReorderArray( reo_man * p, DdManager * dd, DdNode * Funcs[], DdNode * Fu
// print statistics after each iteration
// print statistics after each iteration
if
(
p
->
fVerbose
)
if
(
p
->
fVerbose
)
{
{
printf
(
"ITER #%d:
"
,
i
+
1
);
printf
(
"ITER #%d:
\n
"
,
i
+
1
);
if
(
p
->
fMinWidth
)
if
(
p
->
fMinWidth
)
reoProfileWidthPrint
(
p
);
reoProfileWidthPrint
(
p
);
else
if
(
p
->
fMinApl
)
else
if
(
p
->
fMinApl
)
...
...
src/bdd/reo/reoProfile.c
View file @
35f90a77
...
@@ -200,7 +200,7 @@ void reoProfileWidthStart( reo_man * p )
...
@@ -200,7 +200,7 @@ void reoProfileWidthStart( reo_man * p )
p
->
pPlanes
[
v
].
statsWidth
=
p
->
pPlanes
[
v
-
1
].
statsWidth
+
pWidthStart
[
v
]
-
pWidthStop
[
v
];
p
->
pPlanes
[
v
].
statsWidth
=
p
->
pPlanes
[
v
-
1
].
statsWidth
+
pWidthStart
[
v
]
-
pWidthStop
[
v
];
p
->
pPlanes
[
v
].
statsCost
=
p
->
pPlanes
[
v
].
statsWidth
;
p
->
pPlanes
[
v
].
statsCost
=
p
->
pPlanes
[
v
].
statsWidth
;
p
->
nWidthCur
+=
p
->
pPlanes
[
v
].
statsWidth
;
p
->
nWidthCur
+=
p
->
pPlanes
[
v
].
statsWidth
;
// printf( "Level %2d: Width = %5d. Correct = %d.\n", v, Temp
, p->pPlanes[v].statsWidth );
printf
(
"Level %2d: Width = %5d.
\n
"
,
v
,
p
->
pPlanes
[
v
].
statsWidth
);
}
}
p
->
nWidthBeg
=
p
->
nWidthCur
;
p
->
nWidthBeg
=
p
->
nWidthCur
;
ABC_FREE
(
pWidthStart
);
ABC_FREE
(
pWidthStart
);
...
@@ -328,7 +328,7 @@ void reoProfileWidthPrint( reo_man * p )
...
@@ -328,7 +328,7 @@ void reoProfileWidthPrint( reo_man * p )
TotalWidth
=
0
;
TotalWidth
=
0
;
for
(
i
=
0
;
i
<=
p
->
nSupp
;
i
++
)
for
(
i
=
0
;
i
<=
p
->
nSupp
;
i
++
)
{
{
// printf( "Level = %2d. Width = %3d.\n", i, p->pProfile[i]
);
printf
(
"Level = %2d. Width = %3d.
\n
"
,
i
,
p
->
pPlanes
[
i
].
statsWidth
);
if
(
WidthMax
<
p
->
pPlanes
[
i
].
statsWidth
)
if
(
WidthMax
<
p
->
pPlanes
[
i
].
statsWidth
)
WidthMax
=
p
->
pPlanes
[
i
].
statsWidth
;
WidthMax
=
p
->
pPlanes
[
i
].
statsWidth
;
TotalWidth
+=
p
->
pPlanes
[
i
].
statsWidth
;
TotalWidth
+=
p
->
pPlanes
[
i
].
statsWidth
;
...
...
src/bdd/reo/reoUnits.c
View file @
35f90a77
...
@@ -97,7 +97,8 @@ void reoUnitsRecycleUnitList( reo_man * p, reo_plane * pPlane )
...
@@ -97,7 +97,8 @@ void reoUnitsRecycleUnitList( reo_man * p, reo_plane * pPlane )
pTail
=
pUnit
;
pTail
=
pUnit
;
pTail
->
Next
=
p
->
pUnitFreeList
;
pTail
->
Next
=
p
->
pUnitFreeList
;
p
->
pUnitFreeList
=
pPlane
->
pHead
;
p
->
pUnitFreeList
=
pPlane
->
pHead
;
memset
(
pPlane
,
0
,
sizeof
(
reo_plane
)
);
// memset( pPlane, 0, sizeof(reo_plane) );
pPlane
->
pHead
=
NULL
;
}
}
/**Function*************************************************************
/**Function*************************************************************
...
...
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