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
5c683fc1
Commit
5c683fc1
authored
Apr 14, 2012
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adding iterative refinement to 'addbuffs'.
parent
92ad58ff
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
43 additions
and
0 deletions
+43
-0
src/base/abc/abcUtil.c
+43
-0
No files found.
src/base/abc/abcUtil.c
View file @
5c683fc1
...
@@ -2203,6 +2203,49 @@ Abc_Ntk_t * Abc_NtkAddBuffs( Abc_Ntk_t * pNtkInit, int fDirect, int fReverse, in
...
@@ -2203,6 +2203,49 @@ Abc_Ntk_t * Abc_NtkAddBuffs( Abc_Ntk_t * pNtkInit, int fDirect, int fReverse, in
}
}
}
}
/**Function*************************************************************
Synopsis [Computes max delay using log(n) delay model.]
Description []
SideEffects []
SeeAlso []
***********************************************************************/
float
Abc_NtkComputeDelay
(
Abc_Ntk_t
*
pNtk
)
{
static
double
GateDelays
[
20
]
=
{
1
.
00
,
1
.
00
,
2
.
00
,
2
.
58
,
3
.
00
,
3
.
32
,
3
.
58
,
3
.
81
,
4
.
00
,
4
.
17
,
4
.
32
,
4
.
46
,
4
.
58
,
4
.
70
,
4
.
81
,
4
.
91
,
5
.
00
,
5
.
09
,
5
.
17
,
5
.
25
};
Vec_Ptr_t
*
vNodes
;
Abc_Obj_t
*
pObj
,
*
pFanin
;
float
DelayMax
,
Delays
[
15
]
=
{
0
};
int
nFaninMax
,
i
,
k
;
// calculate relative gate delays
nFaninMax
=
Abc_NtkGetFaninMax
(
pNtk
);
assert
(
nFaninMax
>
1
&&
nFaninMax
<
15
);
for
(
i
=
0
;
i
<=
nFaninMax
;
i
++
)
Delays
[
i
]
=
GateDelays
[
i
]
/
GateDelays
[
nFaninMax
];
// set max CI delay
Abc_NtkForEachCi
(
pNtk
,
pObj
,
i
)
pObj
->
dTemp
=
0
.
0
;
// compute delays for each node
vNodes
=
Abc_NtkDfs
(
pNtk
,
1
);
Vec_PtrForEachEntry
(
Abc_Obj_t
*
,
vNodes
,
pObj
,
i
)
{
pObj
->
dTemp
=
0
.
0
;
Abc_ObjForEachFanin
(
pObj
,
pFanin
,
k
)
pObj
->
dTemp
=
Abc_MaxFloat
(
pObj
->
dTemp
,
pFanin
->
dTemp
);
pObj
->
dTemp
+=
Delays
[
Abc_ObjFaninNum
(
pObj
)];
}
Vec_PtrFree
(
vNodes
);
DelayMax
=
0
.
0
;
// find max CO delay
Abc_NtkForEachCo
(
pNtk
,
pObj
,
i
)
DelayMax
=
Abc_MaxFloat
(
DelayMax
,
Abc_ObjFanin0
(
pObj
)
->
dTemp
);
return
DelayMax
;
}
/**Function*************************************************************
/**Function*************************************************************
...
...
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