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
787dbb94
Commit
787dbb94
authored
Sep 26, 2021
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Two rare corner-case bugs in &if mapper.
parent
baf2a650
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
src/base/abci/abcIf.c
+5
-1
src/map/if/ifMap.c
+1
-1
No files found.
src/base/abci/abcIf.c
View file @
787dbb94
...
...
@@ -230,9 +230,13 @@ If_Man_t * Abc_NtkToIf( Abc_Ntk_t * pNtk, If_Par_t * pPars )
Abc_AigConst1
(
pNtk
)
->
pCopy
=
(
Abc_Obj_t
*
)
If_ManConst1
(
pIfMan
);
Abc_NtkForEachCi
(
pNtk
,
pNode
,
i
)
{
pNode
->
pCopy
=
(
Abc_Obj_t
*
)
If_ManCreateCi
(
pIfMan
);
If_Obj_t
*
pIfObj
=
If_ManCreateCi
(
pIfMan
);
pNode
->
pCopy
=
(
Abc_Obj_t
*
)
pIfObj
;
// transfer logic level information
Abc_ObjIfCopy
(
pNode
)
->
Level
=
pNode
->
Level
;
// mark the largest level
if
(
pIfMan
->
nLevelMax
<
(
int
)
pIfObj
->
Level
)
pIfMan
->
nLevelMax
=
(
int
)
pIfObj
->
Level
;
}
// load the AIG into the mapper
...
...
src/map/if/ifMap.c
View file @
787dbb94
...
...
@@ -225,7 +225,7 @@ void If_ObjPerformMappingAnd( If_Man_t * p, If_Obj_t * pObj, int Mode, int fPrep
if
(
p
->
pPars
->
fPower
)
pCut
->
Power
=
(
Mode
==
2
)
?
If_CutPowerDerefed
(
p
,
pCut
,
pObj
)
:
If_CutPowerFlow
(
p
,
pCut
,
pObj
);
// save the best cut from the previous iteration
if
(
!
fPreprocess
)
if
(
!
fPreprocess
||
pCut
->
nLeaves
<=
1
)
If_CutCopy
(
p
,
pCutSet
->
ppCuts
[
pCutSet
->
nCuts
++
],
pCut
);
}
...
...
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