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
2bc14356
Commit
2bc14356
authored
Sep 06, 2015
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
More tuning in &nf.
parent
34fa6add
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
src/aig/gia/giaNf.c
+7
-5
No files found.
src/aig/gia/giaNf.c
View file @
2bc14356
...
...
@@ -1396,7 +1396,7 @@ void Nf_ManSetOutputRequireds( Nf_Man_t * p, int fPropCompl )
{
Gia_Obj_t
*
pObj
;
word
Required
=
0
;
int
i
,
nLits
=
2
*
Gia_ManObjNum
(
p
->
pGia
);
int
i
,
iObj
,
fCompl
,
nLits
=
2
*
Gia_ManObjNum
(
p
->
pGia
);
Vec_WrdFill
(
&
p
->
vRequired
,
nLits
,
NF_INFINITY
);
// compute delay
p
->
pPars
->
WordMapDelay
=
0
;
...
...
@@ -1419,7 +1419,9 @@ void Nf_ManSetOutputRequireds( Nf_Man_t * p, int fPropCompl )
// set required times
Gia_ManForEachCo
(
p
->
pGia
,
pObj
,
i
)
{
Required
=
Nf_ObjMatchD
(
p
,
Gia_ObjFaninId0p
(
p
->
pGia
,
pObj
),
Gia_ObjFaninC0
(
pObj
)
)
->
D
;
iObj
=
Gia_ObjFaninId0p
(
p
->
pGia
,
pObj
);
fCompl
=
Gia_ObjFaninC0
(
pObj
);
Required
=
Nf_ObjMatchD
(
p
,
iObj
,
fCompl
)
->
D
;
Required
=
p
->
pPars
->
fDoAverage
?
Required
*
(
100
+
p
->
pPars
->
nRelaxRatio
)
/
100
:
p
->
pPars
->
WordMapDelay
;
// if external required time can be achieved, use it
if
(
p
->
pGia
->
vOutReqs
&&
Vec_FltEntry
(
p
->
pGia
->
vOutReqs
,
i
)
>
0
&&
Required
<=
(
word
)(
MIO_NUM
*
Vec_FltEntry
(
p
->
pGia
->
vOutReqs
,
i
))
)
...
...
@@ -1428,9 +1430,9 @@ void Nf_ManSetOutputRequireds( Nf_Man_t * p, int fPropCompl )
// else if ( p->pGia->vOutReqs && Vec_FltEntry(p->pGia->vOutReqs, i) > 0 && Required > Vec_FltEntry(p->pGia->vOutReqs, i) )
// ptTime->Rise = ptTime->Fall = ptTime->Worst = Required;
// otherwise, set the global required time
Nf_ObjUpdateRequired
(
p
,
Gia_ObjFaninId0p
(
p
->
pGia
,
pObj
),
Gia_ObjFaninC0
(
pObj
)
,
Required
);
if
(
fPropCompl
&&
Nf_ObjMatchBest
(
p
,
Gia_ObjFaninId0p
(
p
->
pGia
,
pObj
),
Gia_ObjFaninC0
(
pObj
)
)
->
fCompl
)
Nf_ObjUpdateRequired
(
p
,
Gia_ObjFaninId0p
(
p
->
pGia
,
pObj
),
!
Gia_ObjFaninC0
(
pObj
)
,
Required
-
p
->
InvDelay
);
Nf_ObjUpdateRequired
(
p
,
iObj
,
fCompl
,
Required
);
if
(
fPropCompl
&&
iObj
>
0
&&
Nf_ObjMatchBest
(
p
,
iObj
,
fCompl
)
->
fCompl
)
Nf_ObjUpdateRequired
(
p
,
iObj
,
!
fCompl
,
Required
-
p
->
InvDelay
);
//Nf_ObjMapRefInc( p, Gia_ObjFaninId0p(p->pGia, pObj), Gia_ObjFaninC0(pObj));
}
}
...
...
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