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
14606c47
Commit
14606c47
authored
Sep 12, 2013
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improvements to the new technology mapper.
parent
0a346a36
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
133 additions
and
17 deletions
+133
-17
src/aig/gia/gia.h
+1
-0
src/aig/gia/giaJf.c
+80
-15
src/base/abci/abc.c
+6
-2
src/misc/util/utilTruth.h
+46
-0
No files found.
src/aig/gia/gia.h
View file @
14606c47
...
...
@@ -244,6 +244,7 @@ struct Jf_Par_t_
int
fAreaOnly
;
int
fCoarsen
;
int
fCutMin
;
int
fUseTts
;
int
fVerbose
;
int
fVeryVerbose
;
int
nLutSizeMax
;
...
...
src/aig/gia/giaJf.c
View file @
14606c47
This diff is collapsed.
Click to expand it.
src/base/abci/abc.c
View file @
14606c47
...
...
@@ -29847,7 +29847,7 @@ int Abc_CommandAbc9Jf( Abc_Frame_t * pAbc, int argc, char ** argv )
int
c
;
Jf_ManSetDefaultPars
(
pPars
);
Extra_UtilGetoptReset
();
while
(
(
c
=
Extra_UtilGetopt
(
argc
,
argv
,
"KCRDacmvwh"
)
)
!=
EOF
)
while
(
(
c
=
Extra_UtilGetopt
(
argc
,
argv
,
"KCRDacm
t
vwh"
)
)
!=
EOF
)
{
switch
(
c
)
{
...
...
@@ -29910,6 +29910,9 @@ int Abc_CommandAbc9Jf( Abc_Frame_t * pAbc, int argc, char ** argv )
case
'm'
:
pPars
->
fCutMin
^=
1
;
break
;
case
't'
:
pPars
->
fUseTts
^=
1
;
break
;
case
'v'
:
pPars
->
fVerbose
^=
1
;
break
;
...
...
@@ -29948,7 +29951,7 @@ usage:
sprintf
(
Buffer
,
"best possible"
);
else
sprintf
(
Buffer
,
"%d"
,
pPars
->
DelayTarget
);
Abc_Print
(
-
2
,
"usage: &jf [-KCRD num] [-acvwh]
\n
"
);
Abc_Print
(
-
2
,
"usage: &jf [-KCRD num] [-ac
mt
vwh]
\n
"
);
Abc_Print
(
-
2
,
"
\t
performs technology mapping of the network
\n
"
);
Abc_Print
(
-
2
,
"
\t
-K num : LUT size for the mapping (2 <= K <= %d) [default = %d]
\n
"
,
pPars
->
nLutSizeMax
,
pPars
->
nLutSize
);
Abc_Print
(
-
2
,
"
\t
-C num : the max number of priority cuts (1 <= C <= %d) [default = %d]
\n
"
,
pPars
->
nCutNumMax
,
pPars
->
nCutNum
);
...
...
@@ -29957,6 +29960,7 @@ usage:
Abc_Print
(
-
2
,
"
\t
-a : toggles area-oriented mapping [default = %s]
\n
"
,
pPars
->
fAreaOnly
?
"yes"
:
"no"
);
Abc_Print
(
-
2
,
"
\t
-c : toggles coarsening the subject graph [default = %s]
\n
"
,
pPars
->
fCoarsen
?
"yes"
:
"no"
);
Abc_Print
(
-
2
,
"
\t
-m : toggles cut minimization [default = %s]
\n
"
,
pPars
->
fCutMin
?
"yes"
:
"no"
);
Abc_Print
(
-
2
,
"
\t
-t : toggles truth tables for minimization [default = %s]
\n
"
,
pPars
->
fUseTts
?
"yes"
:
"no"
);
Abc_Print
(
-
2
,
"
\t
-v : toggles verbose output [default = %s]
\n
"
,
pPars
->
fVerbose
?
"yes"
:
"no"
);
Abc_Print
(
-
2
,
"
\t
-w : toggles very verbose output [default = %s]
\n
"
,
pPars
->
fVeryVerbose
?
"yes"
:
"no"
);
Abc_Print
(
-
2
,
"
\t
-h : prints the command usage
\n
"
);
src/misc/util/utilTruth.h
View file @
14606c47
...
...
@@ -1111,6 +1111,52 @@ static inline int Abc_TtMinimumBase( word * t, int * pSupp, int nVarsAll, int *
/**Function*************************************************************
Synopsis [Cut minimization.]
Description []
SideEffects []
SeeAlso []
***********************************************************************/
static
inline
int
Abc_TtMinBase
(
word
*
pTruth
,
int
*
pVars
,
int
nVars
)
{
int
i
,
k
;
for
(
i
=
k
=
0
;
i
<
nVars
;
i
++
)
{
if
(
!
Abc_TtHasVar
(
pTruth
,
nVars
,
i
)
)
continue
;
if
(
k
<
i
)
{
pVars
[
k
]
=
pVars
[
i
];
Abc_TtSwapVars
(
pTruth
,
nVars
,
k
,
i
);
}
k
++
;
}
if
(
k
==
nVars
)
return
k
;
assert
(
k
<
nVars
);
// assert( k == Abc_TtSupportSize(pTruth, nVars) );
return
k
;
}
static
inline
void
Abc_TtStretch
(
word
*
pTruth0
,
int
nVars
,
int
*
pCut0
,
int
nCutSize0
,
int
*
pCut
,
int
nCutSize
)
{
int
i
,
k
;
for
(
i
=
nCutSize
-
1
,
k
=
nCutSize0
-
1
;
i
>=
0
&&
k
>=
0
;
i
--
)
{
if
(
pCut
[
i
]
>
pCut0
[
k
]
)
continue
;
assert
(
pCut
[
i
]
==
pCut0
[
k
]
);
if
(
k
<
i
)
Abc_TtSwapVars
(
pTruth0
,
nVars
,
k
,
i
);
k
--
;
}
assert
(
k
==
-
1
);
}
/**Function*************************************************************
Synopsis [Implemeting given NPN config.]
Description []
...
...
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