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
5f97f5cf
Commit
5f97f5cf
authored
Sep 28, 2013
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
New logic sharing extraction.
parent
61ee156b
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
4 deletions
+13
-4
src/aig/gia/gia.h
+1
-1
src/aig/gia/giaBalance.c
+0
-0
src/aig/gia/giaHash.c
+4
-0
src/base/abci/abc.c
+8
-3
No files found.
src/aig/gia/gia.h
View file @
5f97f5cf
...
...
@@ -931,7 +931,7 @@ extern Vec_Str_t * Gia_AigerWriteIntoMemoryStrPart( Gia_Man_t * p, Vec_I
extern
void
Gia_AigerWriteSimple
(
Gia_Man_t
*
pInit
,
char
*
pFileName
);
/*=== giaBalance.c ===========================================================*/
extern
Gia_Man_t
*
Gia_ManBalance
(
Gia_Man_t
*
p
,
int
fSimpleAnd
,
int
fVerbose
);
extern
Gia_Man_t
*
Gia_ManMultiExtract
(
Gia_Man_t
*
p
,
int
fSimpleAnd
,
int
nNewNodesMax
,
int
fVerbose
);
extern
Gia_Man_t
*
Gia_ManMultiExtract
(
Gia_Man_t
*
p
,
int
fSimpleAnd
,
int
nNewNodesMax
,
int
fVerbose
,
int
fVeryVerbose
);
/*=== giaBidec.c ===========================================================*/
extern
unsigned
*
Gia_ManConvertAigToTruth
(
Gia_Man_t
*
p
,
Gia_Obj_t
*
pRoot
,
Vec_Int_t
*
vLeaves
,
Vec_Int_t
*
vTruth
,
Vec_Int_t
*
vVisited
);
extern
Gia_Man_t
*
Gia_ManPerformBidec
(
Gia_Man_t
*
p
,
int
fVerbose
);
...
...
src/aig/gia/giaBalance.c
View file @
5f97f5cf
This diff is collapsed.
Click to expand it.
src/aig/gia/giaHash.c
View file @
5f97f5cf
...
...
@@ -527,6 +527,10 @@ int Gia_ManHashMuxReal( Gia_Man_t * p, int iLitC, int iLit1, int iLit0 )
assert
(
iLit0
>
1
&&
iLit1
>
1
&&
iLitC
>
1
);
if
(
iLit0
==
iLit1
)
return
iLit0
;
if
(
iLitC
==
iLit0
||
iLitC
==
Abc_LitNot
(
iLit1
)
)
return
Gia_ManHashAnd
(
p
,
iLit0
,
iLit1
);
if
(
iLitC
==
iLit1
||
iLitC
==
Abc_LitNot
(
iLit0
)
)
return
Gia_ManHashOr
(
p
,
iLit0
,
iLit1
);
if
(
Abc_Lit2Var
(
iLit0
)
==
Abc_Lit2Var
(
iLit1
)
)
return
Gia_ManHashXorReal
(
p
,
iLitC
,
iLit0
);
if
(
iLit0
>
iLit1
)
...
...
src/base/abci/abc.c
View file @
5f97f5cf
...
...
@@ -27415,8 +27415,9 @@ int Abc_CommandAbc9Balance( Abc_Frame_t * pAbc, int argc, char ** argv )
int
fSimpleAnd
=
0
;
int
fKeepLevel
=
0
;
int
c
,
fVerbose
=
1
;
int
fVeryVerbose
=
0
;
Extra_UtilGetoptReset
();
while
(
(
c
=
Extra_UtilGetopt
(
argc
,
argv
,
"Nealvh"
)
)
!=
EOF
)
while
(
(
c
=
Extra_UtilGetopt
(
argc
,
argv
,
"Nealv
w
h"
)
)
!=
EOF
)
{
switch
(
c
)
{
...
...
@@ -27443,6 +27444,9 @@ int Abc_CommandAbc9Balance( Abc_Frame_t * pAbc, int argc, char ** argv )
case
'v'
:
fVerbose
^=
1
;
break
;
case
'w'
:
fVeryVerbose
^=
1
;
break
;
case
'h'
:
goto
usage
;
default:
...
...
@@ -27460,20 +27464,21 @@ int Abc_CommandAbc9Balance( Abc_Frame_t * pAbc, int argc, char ** argv )
return
1
;
}
if
(
fMultiExt
)
pTemp
=
Gia_ManMultiExtract
(
pAbc
->
pGia
,
fSimpleAnd
,
nNewNodesMax
,
fVerbose
);
pTemp
=
Gia_ManMultiExtract
(
pAbc
->
pGia
,
fSimpleAnd
,
nNewNodesMax
,
fVerbose
,
fVeryVerbose
);
else
pTemp
=
Gia_ManBalance
(
pAbc
->
pGia
,
fSimpleAnd
,
fVerbose
);
Abc_FrameUpdateGia
(
pAbc
,
pTemp
);
return
0
;
usage:
Abc_Print
(
-
2
,
"usage: &b [-N num] [-ealvh]
\n
"
);
Abc_Print
(
-
2
,
"usage: &b [-N num] [-ealv
w
h]
\n
"
);
Abc_Print
(
-
2
,
"
\t
performs AIG balancing to reduce delay
\n
"
);
Abc_Print
(
-
2
,
"
\t
-N num : the max fanout count to skip a divisor [default = %d]
\n
"
,
nNewNodesMax
);
Abc_Print
(
-
2
,
"
\t
-e : toggle extacting shared logic while balancing [default = %s]
\n
"
,
fMultiExt
?
"yes"
:
"no"
);
Abc_Print
(
-
2
,
"
\t
-a : toggle using AND instead of AND/XOR/MUX [default = %s]
\n
"
,
fSimpleAnd
?
"yes"
:
"no"
);
Abc_Print
(
-
2
,
"
\t
-l : toggle level update during shrinking [default = %s]
\n
"
,
fKeepLevel
?
"yes"
:
"no"
);
Abc_Print
(
-
2
,
"
\t
-v : toggle printing verbose information [default = %s]
\n
"
,
fVerbose
?
"yes"
:
"no"
);
Abc_Print
(
-
2
,
"
\t
-w : toggle printing additional information [default = %s]
\n
"
,
fVeryVerbose
?
"yes"
:
"no"
);
Abc_Print
(
-
2
,
"
\t
-h : print the command usage
\n
"
);
return
1
;
}
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