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
1f0e5533
Commit
1f0e5533
authored
Jan 15, 2012
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Several small bug fixes in the mapper.
parent
60a84f73
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
4 deletions
+7
-4
src/base/abci/abcRec.c
+1
-1
src/map/if/if.h
+2
-2
src/map/if/ifMap.c
+4
-1
No files found.
src/base/abci/abcRec.c
View file @
1f0e5533
...
...
@@ -2243,8 +2243,8 @@ int If_CutDelayRecCost(If_Man_t* p, If_Cut_t* pCut)
if
(
!
Kit_TruthIsEqualWithPhase
(
pTruthRec
,
pInOut
,
nLeaves
)
)
{
assert
(
0
);
return
-
1
;
s_pMan
->
nIfMapError
++
;
return
-
1
;
}
// mark as user cut.
pCut
->
fUser
=
1
;
...
...
src/map/if/if.h
View file @
1f0e5533
...
...
@@ -51,7 +51,7 @@ ABC_NAMESPACE_HEADER_START
// a very large number
#define IF_INFINITY 100000000
// the largest possible user cut cost
#define IF_COST_MAX
((1<<14
)-1)
#define IF_COST_MAX
8191 // ((1<<13
)-1)
// object types
typedef
enum
{
...
...
@@ -216,7 +216,7 @@ struct If_Cut_t_
float
Power
;
// the power flow
float
Delay
;
// delay of the cut
unsigned
uSign
;
// cut signature
unsigned
Cost
:
13
;
// the user's cost of the cut
unsigned
Cost
:
13
;
// the user's cost of the cut
(related to IF_COST_MAX)
unsigned
fCompl
:
1
;
// the complemented attribute
unsigned
fUser
:
1
;
// using the user's area and delay
unsigned
fUseless
:
1
;
// using the user's area and delay
...
...
src/map/if/ifMap.c
View file @
1f0e5533
...
...
@@ -180,6 +180,7 @@ void If_ObjPerformMappingAnd( If_Man_t * p, If_Obj_t * pObj, int Mode, int fPrep
If_ObjForEachCut
(
pObj
->
pFanin0
,
pCut0
,
i
)
If_ObjForEachCut
(
pObj
->
pFanin1
,
pCut1
,
k
)
{
// get the next free cut
assert
(
pCutSet
->
nCuts
<=
pCutSet
->
nCutsMax
);
pCut
=
pCutSet
->
ppCuts
[
pCutSet
->
nCuts
];
...
...
@@ -227,11 +228,13 @@ void If_ObjPerformMappingAnd( If_Man_t * p, If_Obj_t * pObj, int Mode, int fPrep
/// pCut->Delay = If_CutDelayLutStruct( p, pCut, p->pPars->pLutStruct, p->pPars->WireDelay );
// else if ( p->pPars->fDelayOpt )
if
(
p
->
pPars
->
fUserRecLib
)
pCut
->
Delay
=
If_CutDelayRecCost
(
p
,
pCut
);
pCut
->
Delay
=
If_CutDelayRecCost
(
p
,
pCut
);
else
if
(
p
->
pPars
->
fDelayOpt
)
pCut
->
Delay
=
If_CutDelaySopCost
(
p
,
pCut
);
else
pCut
->
Delay
=
If_CutDelay
(
p
,
pObj
,
pCut
);
if
(
pCut
->
Cost
==
IF_COST_MAX
)
continue
;
// Abc_Print( 1, "%.2f ", pCut->Delay );
if
(
Mode
&&
pCut
->
Delay
>
pObj
->
Required
+
p
->
fEpsilon
)
continue
;
...
...
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