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
94b26fe5
Commit
94b26fe5
authored
Jun 25, 2013
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improving CEC (command 'dcec') by integrating XOR balancing.
parent
b255c769
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
38 additions
and
3 deletions
+38
-3
src/base/abci/abc.c
+3
-3
src/proof/fra/fraCec.c
+35
-0
No files found.
src/base/abci/abc.c
View file @
94b26fe5
...
...
@@ -19731,10 +19731,10 @@ int Abc_CommandDCec( Abc_Frame_t * pAbc, int argc, char ** argv )
return
1
;
}
if
(
Abc_NtkLatchNum
(
pNtk1
)
||
Abc_NtkLatchNum
(
pNtk2
)
)
if
(
(
pNtk1
&&
Abc_NtkLatchNum
(
pNtk1
))
||
(
pNtk2
&&
Abc_NtkLatchNum
(
pNtk2
)
)
)
{
if
(
fDelete1
)
Abc_NtkDelete
(
pNtk1
);
if
(
fDelete2
)
Abc_NtkDelete
(
pNtk2
);
if
(
pNtk1
&&
fDelete1
)
Abc_NtkDelete
(
pNtk1
);
if
(
pNtk2
&&
fDelete2
)
Abc_NtkDelete
(
pNtk2
);
Abc_Print
(
-
1
,
"Currently this command only works for networks without latches. Run
\"
comb
\"
.
\n
"
);
return
1
;
}
src/proof/fra/fraCec.c
View file @
94b26fe5
...
...
@@ -274,6 +274,28 @@ int Fra_FraigSat( Aig_Man_t * pMan, ABC_INT64_T nConfLimit, ABC_INT64_T nInsLimi
/**Function*************************************************************
Synopsis [Recognizes what nodes are inputs of the EXOR.]
Description []
SideEffects []
SeeAlso []
***********************************************************************/
int
Aig_ManCountXors
(
Aig_Man_t
*
p
)
{
Aig_Obj_t
*
pObj
,
*
pFan0
,
*
pFan1
;
int
i
,
Counter
=
0
;
Aig_ManForEachNode
(
p
,
pObj
,
i
)
if
(
Aig_ObjIsMuxType
(
pObj
)
&&
Aig_ObjRecognizeExor
(
pObj
,
&
pFan0
,
&
pFan1
)
)
Counter
++
;
return
Counter
;
}
/**Function*************************************************************
Synopsis []
Description []
...
...
@@ -338,6 +360,19 @@ ABC_PRT( "Time", Abc_Clock() - clk );
for
(
i
=
0
;
i
<
6
;
i
++
)
{
//printf( "Running fraiging with %d BTnode and %d BTmiter.\n", pParams->nBTLimitNode, pParams->nBTLimitMiter );
// try XOR balancing
if
(
Aig_ManCountXors
(
pAig
)
*
30
>
Aig_ManNodeNum
(
pAig
)
+
300
)
{
clk
=
Abc_Clock
();
pAig
=
Dar_ManBalanceXor
(
pTemp
=
pAig
,
1
,
0
,
0
);
Aig_ManStop
(
pTemp
);
if
(
fVerbose
)
{
printf
(
"Balance-X: Nodes = %6d. "
,
Aig_ManNodeNum
(
pAig
)
);
ABC_PRT
(
"Time"
,
Abc_Clock
()
-
clk
);
}
}
// run fraiging
clk
=
Abc_Clock
();
pAig
=
Fra_FraigPerform
(
pTemp
=
pAig
,
pParams
);
...
...
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