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
b63e3ee4
Commit
b63e3ee4
authored
Sep 15, 2017
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Experiment with mapping.
parent
50bed57c
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
140 additions
and
1 deletions
+140
-1
abclib.dsp
+4
-0
src/aig/gia/giaIiff.c
+55
-0
src/aig/gia/module.make
+1
-0
src/base/abci/abc.c
+80
-1
No files found.
abclib.dsp
View file @
b63e3ee4
...
...
@@ -4759,6 +4759,10 @@ SOURCE=.\src\aig\gia\giaIff.c
# End Source File
# Begin Source File
SOURCE=.\src\aig\gia\giaIiff.c
# End Source File
# Begin Source File
SOURCE=.\src\aig\gia\giaIso.c
# End Source File
# Begin Source File
...
...
src/aig/gia/giaIiff.c
0 → 100644
View file @
b63e3ee4
/**CFile****************************************************************
FileName [giaIiff.c]
SystemName [ABC: Logic synthesis and verification system.]
PackageName [Scalable AIG package.]
Synopsis [Boolean matching.]
Author [Alan Mishchenko]
Affiliation [UC Berkeley]
Date [Ver. 1.0. Started - June 20, 2005.]
Revision [$Id: giaIiff.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 []
***********************************************************************/
void
Gia_ManIiffTest
(
Gia_Man_t
*
pGia
,
int
nLutSize
,
int
nNumCuts
,
int
fUseGates
,
int
fUseCells
,
int
fVerbose
)
{
}
////////////////////////////////////////////////////////////////////////
/// END OF FILE ///
////////////////////////////////////////////////////////////////////////
ABC_NAMESPACE_IMPL_END
src/aig/gia/module.make
View file @
b63e3ee4
...
...
@@ -35,6 +35,7 @@ SRC += src/aig/gia/giaAig.c \
src/aig/gia/giaHash.c
\
src/aig/gia/giaIf.c
\
src/aig/gia/giaIff.c
\
src/aig/gia/giaIiff.c
\
src/aig/gia/giaIso.c
\
src/aig/gia/giaIso2.c
\
src/aig/gia/giaIso3.c
\
...
...
src/base/abci/abc.c
View file @
b63e3ee4
...
...
@@ -442,6 +442,7 @@ static int Abc_CommandAbc9Flow2 ( Abc_Frame_t * pAbc, int argc, cha
static
int
Abc_CommandAbc9Flow3
(
Abc_Frame_t
*
pAbc
,
int
argc
,
char
**
argv
);
static
int
Abc_CommandAbc9If
(
Abc_Frame_t
*
pAbc
,
int
argc
,
char
**
argv
);
static
int
Abc_CommandAbc9Iff
(
Abc_Frame_t
*
pAbc
,
int
argc
,
char
**
argv
);
static
int
Abc_CommandAbc9Iiff
(
Abc_Frame_t
*
pAbc
,
int
argc
,
char
**
argv
);
static
int
Abc_CommandAbc9If2
(
Abc_Frame_t
*
pAbc
,
int
argc
,
char
**
argv
);
static
int
Abc_CommandAbc9Jf
(
Abc_Frame_t
*
pAbc
,
int
argc
,
char
**
argv
);
static
int
Abc_CommandAbc9Kf
(
Abc_Frame_t
*
pAbc
,
int
argc
,
char
**
argv
);
...
...
@@ -1105,6 +1106,7 @@ void Abc_Init( Abc_Frame_t * pAbc )
Cmd_CommandAdd
(
pAbc
,
"ABC9"
,
"&flow3"
,
Abc_CommandAbc9Flow3
,
0
);
Cmd_CommandAdd
(
pAbc
,
"ABC9"
,
"&if"
,
Abc_CommandAbc9If
,
0
);
Cmd_CommandAdd
(
pAbc
,
"ABC9"
,
"&iff"
,
Abc_CommandAbc9Iff
,
0
);
Cmd_CommandAdd
(
pAbc
,
"ABC9"
,
"&iiff"
,
Abc_CommandAbc9Iiff
,
0
);
Cmd_CommandAdd
(
pAbc
,
"ABC9"
,
"&if2"
,
Abc_CommandAbc9If2
,
0
);
Cmd_CommandAdd
(
pAbc
,
"ABC9"
,
"&jf"
,
Abc_CommandAbc9Jf
,
0
);
Cmd_CommandAdd
(
pAbc
,
"ABC9"
,
"&kf"
,
Abc_CommandAbc9Kf
,
0
);
...
...
@@ -35577,6 +35579,84 @@ usage:
SeeAlso []
***********************************************************************/
int
Abc_CommandAbc9Iiff
(
Abc_Frame_t
*
pAbc
,
int
argc
,
char
**
argv
)
{
extern
void
Gia_ManIiffTest
(
Gia_Man_t
*
pGia
,
int
nLutSize
,
int
nNumCuts
,
int
fUseGates
,
int
fUseCells
,
int
fVerbose
);
int
nLutSize
=
8
;
int
nNumCuts
=
12
;
int
fUseGates
=
0
;
int
fUseCells
=
0
;
int
c
,
fVerbose
=
0
;
Extra_UtilGetoptReset
();
while
(
(
c
=
Extra_UtilGetopt
(
argc
,
argv
,
"KCgcvh"
)
)
!=
EOF
)
{
switch
(
c
)
{
case
'K'
:
if
(
globalUtilOptind
>=
argc
)
{
Abc_Print
(
-
1
,
"Command line switch
\"
-K
\"
should be followed by a positive integer.
\n
"
);
goto
usage
;
}
nLutSize
=
atoi
(
argv
[
globalUtilOptind
]);
globalUtilOptind
++
;
break
;
case
'C'
:
if
(
globalUtilOptind
>=
argc
)
{
Abc_Print
(
-
1
,
"Command line switch
\"
-C
\"
should be followed by a positive integer.
\n
"
);
goto
usage
;
}
nNumCuts
=
atoi
(
argv
[
globalUtilOptind
]);
globalUtilOptind
++
;
break
;
case
'g'
:
fUseGates
^=
1
;
break
;
case
'c'
:
fUseCells
^=
1
;
break
;
case
'v'
:
fVerbose
^=
1
;
break
;
case
'h'
:
goto
usage
;
default:
goto
usage
;
}
}
if
(
pAbc
->
pGia
==
NULL
)
{
Abc_Print
(
-
1
,
"Abc_CommandAbc9Iiff(): There is no AIG to map.
\n
"
);
return
1
;
}
Gia_ManIiffTest
(
pAbc
->
pGia
,
nLutSize
,
nNumCuts
,
fUseGates
,
fUseCells
,
fVerbose
);
return
0
;
usage:
Abc_Print
(
-
2
,
"usage: &iiff [-KC num] [-gcvh]
\n
"
);
Abc_Print
(
-
2
,
"
\t
performs techology mapping
\n
"
);
Abc_Print
(
-
2
,
"
\t
-K num : the maximum LUT size [default = %d]
\n
"
,
nLutSize
);
Abc_Print
(
-
2
,
"
\t
-C num : the maximum cut count [default = %d]
\n
"
,
nNumCuts
);
Abc_Print
(
-
2
,
"
\t
-g : toggle using gates [default = %s]
\n
"
,
fUseGates
?
"yes"
:
"no"
);
Abc_Print
(
-
2
,
"
\t
-c : toggle using cells [default = %s]
\n
"
,
fUseCells
?
"yes"
:
"no"
);
Abc_Print
(
-
2
,
"
\t
-v : toggle verbose output [default = %s]
\n
"
,
fVerbose
?
"yes"
:
"no"
);
Abc_Print
(
-
2
,
"
\t
-h : print the command usage
\n
"
);
return
1
;
}
/**Function*************************************************************
Synopsis []
Description []
SideEffects []
SeeAlso []
***********************************************************************/
int
Abc_CommandAbc9If2
(
Abc_Frame_t
*
pAbc
,
int
argc
,
char
**
argv
)
{
extern
Abc_Ntk_t
*
Mpm_ManCellMapping
(
Gia_Man_t
*
p
,
Mpm_Par_t
*
pPars
,
void
*
pMio
);
...
...
@@ -35746,7 +35826,6 @@ usage:
return
1
;
}
/**Function*************************************************************
Synopsis []
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