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
933b7496
Commit
933b7496
authored
Jun 28, 2014
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changes and improvements to different packages.
parent
a68ec38d
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
76 additions
and
7 deletions
+76
-7
src/aig/gia/giaBalance2.c
+1
-1
src/aig/gia/giaStr.c
+58
-0
src/aig/gia/module.make
+1
-0
src/base/abci/abc.c
+16
-6
No files found.
src/aig/gia/giaBalance2.c
View file @
933b7496
...
...
@@ -934,7 +934,7 @@ static inline Gia_Man_t * Gia_ManBalanceInt( Gia_Man_t * p, int nLutSize, int nC
Gia_ManBalance_rec
(
pNew
,
p
,
Gia_ObjFanin0
(
pObj
)
);
Gia_ManForEachCo
(
p
,
pObj
,
i
)
pObj
->
Value
=
Gia_ManAppendCo
(
pNew
,
Gia_ObjFanin0Copy
(
pObj
)
);
if
(
fVerbose
)
//
if ( fVerbose )
{
int
nLevelMax
=
0
;
Gia_ManForEachCo
(
pNew
,
pObj
,
i
)
...
...
src/aig/gia/giaStr.c
0 → 100644
View file @
933b7496
/**CFile****************************************************************
FileName [giaStr.c]
SystemName [ABC: Logic synthesis and verification system.]
PackageName [Scalable AIG package.]
Synopsis [Cut computation.]
Author [Alan Mishchenko]
Affiliation [UC Berkeley]
Date [Ver. 1.0. Started - June 20, 2005.]
Revision [$Id: giaStr.c,v 1.00 2005/06/20 00:00:00 alanmi Exp $]
***********************************************************************/
#include "gia.h"
ABC_NAMESPACE_IMPL_START
////////////////////////////////////////////////////////////////////////
/// DECLARATIONS ///
////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////
/// FUNCTION DEFINITIONS ///
////////////////////////////////////////////////////////////////////////
/**Function*************************************************************
Synopsis []
Description []
SideEffects []
SeeAlso []
***********************************************************************/
Gia_Man_t
*
Str_NormalizeTest
(
Gia_Man_t
*
p
,
int
nLutSize
,
int
fUseMuxes
,
int
fVerbose
)
{
return
Gia_ManDup
(
p
);
}
////////////////////////////////////////////////////////////////////////
/// END OF FILE ///
////////////////////////////////////////////////////////////////////////
ABC_NAMESPACE_IMPL_END
src/aig/gia/module.make
View file @
933b7496
...
...
@@ -54,6 +54,7 @@ SRC += src/aig/gia/giaAig.c \
src/aig/gia/giaSort.c
\
src/aig/gia/giaSpeedup.c
\
src/aig/gia/giaStg.c
\
src/aig/gia/giaStr.c
\
src/aig/gia/giaSupMin.c
\
src/aig/gia/giaSweep.c
\
src/aig/gia/giaSweeper.c
\
...
...
src/base/abci/abc.c
View file @
933b7496
...
...
@@ -27838,13 +27838,16 @@ usage:
int
Abc_CommandAbc9BalanceLut
(
Abc_Frame_t
*
pAbc
,
int
argc
,
char
**
argv
)
{
extern
Gia_Man_t
*
Gia_ManBalanceLut
(
Gia_Man_t
*
p
,
int
nLutSize
,
int
nCutNum
,
int
fVerbose
);
extern
Gia_Man_t
*
Str_NormalizeTest
(
Gia_Man_t
*
p
,
int
nLutSize
,
int
fUseMuxes
,
int
fVerbose
);
Gia_Man_t
*
pTemp
=
NULL
;
int
fUseOld
=
0
;
int
nLutSize
=
6
;
int
nCutNum
=
8
;
int
fUseMuxes
=
0
;
int
c
,
fVerbose
=
0
;
int
fVeryVerbose
=
0
;
Extra_UtilGetoptReset
();
while
(
(
c
=
Extra_UtilGetopt
(
argc
,
argv
,
"KCvwh"
)
)
!=
EOF
)
while
(
(
c
=
Extra_UtilGetopt
(
argc
,
argv
,
"KC
am
vwh"
)
)
!=
EOF
)
{
switch
(
c
)
{
...
...
@@ -27870,6 +27873,12 @@ int Abc_CommandAbc9BalanceLut( Abc_Frame_t * pAbc, int argc, char ** argv )
if
(
nCutNum
<
0
)
goto
usage
;
break
;
case
'a'
:
fUseOld
^=
1
;
break
;
case
'm'
:
fUseMuxes
^=
1
;
break
;
case
'v'
:
fVerbose
^=
1
;
break
;
...
...
@@ -27887,15 +27896,19 @@ int Abc_CommandAbc9BalanceLut( Abc_Frame_t * pAbc, int argc, char ** argv )
Abc_Print
(
-
1
,
"Abc_CommandAbc9BalanceLut(): There is no AIG.
\n
"
);
return
1
;
}
pTemp
=
Gia_ManBalanceLut
(
pAbc
->
pGia
,
nLutSize
,
nCutNum
,
fVerbose
);
if
(
fUseOld
)
pTemp
=
Gia_ManBalanceLut
(
pAbc
->
pGia
,
nLutSize
,
nCutNum
,
fVerbose
);
else
pTemp
=
Str_NormalizeTest
(
pAbc
->
pGia
,
nLutSize
,
fUseMuxes
,
fVerbose
);
Abc_FrameUpdateGia
(
pAbc
,
pTemp
);
return
0
;
usage:
Abc_Print
(
-
2
,
"usage: &blut [-KC num] [-vh]
\n
"
);
Abc_Print
(
-
2
,
"usage: &blut [-KC num] [-
m
vh]
\n
"
);
Abc_Print
(
-
2
,
"
\t
performs AIG balancing for the given LUT size
\n
"
);
Abc_Print
(
-
2
,
"
\t
-K num : LUT size for the mapping (2 <= K <= %d) [default = %d]
\n
"
,
6
,
nLutSize
);
Abc_Print
(
-
2
,
"
\t
-C num : the max number of priority cuts (1 <= C <= %d) [default = %d]
\n
"
,
8
,
nCutNum
);
Abc_Print
(
-
2
,
"
\t
-m : toggle performing MUX restructuring [default = %s]
\n
"
,
fUseMuxes
?
"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
"
);
...
...
@@ -35937,7 +35950,6 @@ int Abc_CommandAbc9Test( Abc_Frame_t * pAbc, int argc, char ** argv )
// extern void Gia_ParTest( Gia_Man_t * p, int nWords, int nProcs );
// extern void Gia_ManTisTest( Gia_Man_t * pInit );
extern
void
Gia_Iso3Test
(
Gia_Man_t
*
p
);
// extern Gia_Man_t * Str_NormalizeTest( Gia_Man_t * p );
Extra_UtilGetoptReset
();
while
(
(
c
=
Extra_UtilGetopt
(
argc
,
argv
,
"WPFsvh"
)
)
!=
EOF
)
...
...
@@ -36042,8 +36054,6 @@ int Abc_CommandAbc9Test( Abc_Frame_t * pAbc, int argc, char ** argv )
// Gia_ManCheckFalseTest( pAbc->pGia, nFrames );
// Gia_ParTest( pAbc->pGia, nWords, nProcs );
Gia_Iso3Test
(
pAbc
->
pGia
);
// pTemp = Str_NormalizeTest( pAbc->pGia );
// Abc_FrameUpdateGia( pAbc, pTemp );
// printf( "\nThis command is currently disabled.\n\n" );
return
0
;
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