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
11bab8ca
Commit
11bab8ca
authored
Apr 03, 2014
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improvements to technology mapping.
parent
d82be1fd
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
2 deletions
+7
-2
src/map/if/ifDec16.c
+6
-1
src/map/if/ifMap.c
+1
-1
No files found.
src/map/if/ifDec16.c
View file @
11bab8ca
...
@@ -2212,10 +2212,15 @@ int If_TtMemCutNum2() { return Vec_MemEntryNum(s_vTtMem2); }
...
@@ -2212,10 +2212,15 @@ int If_TtMemCutNum2() { return Vec_MemEntryNum(s_vTtMem2); }
SeeAlso []
SeeAlso []
***********************************************************************/
***********************************************************************/
int
If_CutPerformCheck16
(
If_Man_t
*
p
,
unsigned
*
pTruth
,
int
nVars
,
int
nLeaves
,
char
*
pStr
)
int
If_CutPerformCheck16
(
If_Man_t
*
p
,
unsigned
*
pTruth
0
,
int
nVars
,
int
nLeaves
,
char
*
pStr
)
{
{
unsigned
pTruth
[
IF_MAX_FUNC_LUTSIZE
>
5
?
1
<<
(
IF_MAX_FUNC_LUTSIZE
-
5
)
:
1
];
If_Grp_t
G1
=
{
0
};
//, G3 = {0};
If_Grp_t
G1
=
{
0
};
//, G3 = {0};
int
i
,
nLutLeaf
,
nLutLeaf2
,
nLutRoot
,
Length
;
int
i
,
nLutLeaf
,
nLutLeaf2
,
nLutRoot
,
Length
;
// stretch the truth table
assert
(
nVars
>=
6
);
memcpy
(
pTruth
,
pTruth0
,
sizeof
(
word
)
*
Abc_TtWordNum
(
nVars
)
);
Abc_TtStretch6
(
(
word
*
)
pTruth
,
nLeaves
,
p
->
pPars
->
nLutSize
);
#ifdef IF_TRY_NEW
#ifdef IF_TRY_NEW
{
{
...
...
src/map/if/ifMap.c
View file @
11bab8ca
...
@@ -239,7 +239,7 @@ void If_ObjPerformMappingAnd( If_Man_t * p, If_Obj_t * pObj, int Mode, int fPrep
...
@@ -239,7 +239,7 @@ void If_ObjPerformMappingAnd( If_Man_t * p, If_Obj_t * pObj, int Mode, int fPrep
if
(
p
->
pPars
->
fUseDsd
)
if
(
p
->
pPars
->
fUseDsd
)
pCut
->
fUseless
=
If_DsdManCheckDec
(
p
->
pIfDsdMan
,
pCut
->
iCutDsd
);
pCut
->
fUseless
=
If_DsdManCheckDec
(
p
->
pIfDsdMan
,
pCut
->
iCutDsd
);
else
else
pCut
->
fUseless
=
!
p
->
pPars
->
pFuncCell
(
p
,
If_CutTruth
(
p
,
pCut
),
pCut
->
nLeaves
,
pCut
->
nLeaves
,
p
->
pPars
->
pLutStruct
);
pCut
->
fUseless
=
!
p
->
pPars
->
pFuncCell
(
p
,
If_CutTruth
(
p
,
pCut
),
Abc_MaxInt
(
6
,
pCut
->
nLeaves
)
,
pCut
->
nLeaves
,
p
->
pPars
->
pLutStruct
);
p
->
nCutsUselessAll
+=
pCut
->
fUseless
;
p
->
nCutsUselessAll
+=
pCut
->
fUseless
;
p
->
nCutsUseless
[
pCut
->
nLeaves
]
+=
pCut
->
fUseless
;
p
->
nCutsUseless
[
pCut
->
nLeaves
]
+=
pCut
->
fUseless
;
p
->
nCutsCountAll
++
;
p
->
nCutsCountAll
++
;
...
...
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