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
77b83074
Commit
77b83074
authored
May 20, 2012
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changing 'if' to allow for delay optimization on sequential paths only.
parent
c6af9094
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
8 deletions
+9
-8
src/map/if/if.h
+7
-5
src/map/if/ifUtil.c
+2
-3
No files found.
src/map/if/if.h
View file @
77b83074
...
@@ -129,8 +129,10 @@ struct If_Par_t_
...
@@ -129,8 +129,10 @@ struct If_Par_t_
int
fUseCnfs
;
// use local CNFs as a cost function
int
fUseCnfs
;
// use local CNFs as a cost function
int
fUseMv
;
// use local MV-SOPs as a cost function
int
fUseMv
;
// use local MV-SOPs as a cost function
int
fUseAdders
;
// timing model for adders
int
fUseAdders
;
// timing model for adders
int
nLatchesCi
;
// the number of latches in seq mapping
int
nLatchesCi
;
// the number of latches among the CIs
int
nLatchesCo
;
// the number of latches in seq mapping
int
nLatchesCo
;
// the number of latches among the COs
int
nLatchesCiBox
;
// the number of white box outputs among the CIs
int
nLatchesCoBox
;
// the number of white box inputs among the COs
int
fLiftLeaves
;
// shift the leaves for seq mapping
int
fLiftLeaves
;
// shift the leaves for seq mapping
int
fUseCoAttrs
;
// use CO attributes
int
fUseCoAttrs
;
// use CO attributes
If_Lib_t
*
pLutLib
;
// the LUT library
If_Lib_t
*
pLutLib
;
// the LUT library
...
@@ -381,15 +383,15 @@ static inline void If_AndClear( If_And_t * pNode ) { *
...
@@ -381,15 +383,15 @@ static inline void If_AndClear( If_And_t * pNode ) { *
Vec_PtrForEachEntry( If_Obj_t *, p->vCos, pObj, i )
Vec_PtrForEachEntry( If_Obj_t *, p->vCos, pObj, i )
// iterator over the primary inputs
// iterator over the primary inputs
#define If_ManForEachPi( p, pObj, i ) \
#define If_ManForEachPi( p, pObj, i ) \
Vec_PtrForEachEntryStop( If_Obj_t *, p->vCis, pObj, i, If_ManCiNum(p) - p->pPars->nLatchesCi )
Vec_PtrForEachEntryStop( If_Obj_t *, p->vCis, pObj, i, If_ManCiNum(p) - p->pPars->nLatchesCi
- p->pPars->nLatchesCiBox
)
// iterator over the primary outputs
// iterator over the primary outputs
#define If_ManForEachPo( p, pObj, i ) \
#define If_ManForEachPo( p, pObj, i ) \
Vec_PtrForEachEntrySt
op( If_Obj_t *, p->vCos, pObj, i
, If_ManCoNum(p) - p->pPars->nLatchesCo )
Vec_PtrForEachEntrySt
artStop( If_Obj_t *, p->vCos, pObj, i, p->pPars->nLatchesCoBox
, If_ManCoNum(p) - p->pPars->nLatchesCo )
// iterator over the latches
// iterator over the latches
#define If_ManForEachLatchInput( p, pObj, i ) \
#define If_ManForEachLatchInput( p, pObj, i ) \
Vec_PtrForEachEntryStart( If_Obj_t *, p->vCos, pObj, i, If_ManCoNum(p) - p->pPars->nLatchesCo )
Vec_PtrForEachEntryStart( If_Obj_t *, p->vCos, pObj, i, If_ManCoNum(p) - p->pPars->nLatchesCo )
#define If_ManForEachLatchOutput( p, pObj, i ) \
#define If_ManForEachLatchOutput( p, pObj, i ) \
Vec_PtrForEachEntryStart
( If_Obj_t *, p->vCis, pObj, i, If_ManCiNum(p) - p->pPars->nLatchesCi
)
Vec_PtrForEachEntryStart
Stop( If_Obj_t *, p->vCis, pObj, i, If_ManCiNum(p) - p->pPars->nLatchesCi - p->pPars->nLatchesCiBox, If_ManCiNum(p) - p->pPars->nLatchesCiBox
)
// iterator over all objects in topological order
// iterator over all objects in topological order
#define If_ManForEachObj( p, pObj, i ) \
#define If_ManForEachObj( p, pObj, i ) \
Vec_PtrForEachEntry( If_Obj_t *, p->vObjs, pObj, i )
Vec_PtrForEachEntry( If_Obj_t *, p->vObjs, pObj, i )
...
...
src/map/if/ifUtil.c
View file @
77b83074
...
@@ -279,11 +279,10 @@ void If_ManComputeRequired( If_Man_t * p )
...
@@ -279,11 +279,10 @@ void If_ManComputeRequired( If_Man_t * p )
}
}
else
if
(
p
->
pPars
->
fLatchPaths
)
else
if
(
p
->
pPars
->
fLatchPaths
)
{
{
assert
(
0
);
If_ManForEachPo
(
p
,
pObj
,
i
)
If_ManForEachPo
(
p
,
pObj
,
i
)
Tim_ManSetCoRequired
(
p
->
pManTim
,
pObj
->
IdPio
,
IF_FLOAT_LARGE
);
Tim_ManSetCoRequired
(
p
->
pManTim
,
i
,
IF_FLOAT_LARGE
);
If_ManForEachLatchInput
(
p
,
pObj
,
i
)
If_ManForEachLatchInput
(
p
,
pObj
,
i
)
Tim_ManSetCoRequired
(
p
->
pManTim
,
pObj
->
IdPio
,
p
->
RequiredGlo
);
Tim_ManSetCoRequired
(
p
->
pManTim
,
i
,
p
->
RequiredGlo
);
}
}
else
else
{
{
...
...
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