summaryrefslogtreecommitdiffstats
path: root/src/map/scl/sclLoad.c
diff options
context:
space:
mode:
authorAlan Mishchenko <alanmi@berkeley.edu>2013-08-10 10:27:55 -0700
committerAlan Mishchenko <alanmi@berkeley.edu>2013-08-10 10:27:55 -0700
commit573d6d7ab7b24739b22ba1a2876b076c0ee09e40 (patch)
tree8b5b3fcf7356df3497aea98652a27e2f3a149bd5 /src/map/scl/sclLoad.c
parent118cb03be4b18d0b3add4be21f5c9b09b36336cd (diff)
downloadabc-573d6d7ab7b24739b22ba1a2876b076c0ee09e40.tar.gz
abc-573d6d7ab7b24739b22ba1a2876b076c0ee09e40.tar.bz2
abc-573d6d7ab7b24739b22ba1a2876b076c0ee09e40.zip
Enable wire load estimation in buffering/sizing.
Diffstat (limited to 'src/map/scl/sclLoad.c')
-rw-r--r--src/map/scl/sclLoad.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/map/scl/sclLoad.c b/src/map/scl/sclLoad.c
index fd932dd1..be130eb1 100644
--- a/src/map/scl/sclLoad.c
+++ b/src/map/scl/sclLoad.c
@@ -42,7 +42,7 @@ ABC_NAMESPACE_IMPL_START
SeeAlso []
***********************************************************************/
-Vec_Flt_t * Abc_SclFindWireCaps( SC_Man * p, SC_WireLoad * pWL )
+Vec_Flt_t * Abc_SclFindWireCaps( SC_WireLoad * pWL )
{
Vec_Flt_t * vCaps = NULL;
float EntryPrev, EntryCur;
@@ -79,14 +79,14 @@ Vec_Flt_t * Abc_SclFindWireCaps( SC_Man * p, SC_WireLoad * pWL )
SeeAlso []
***********************************************************************/
-static inline float Abc_SclFindWireLoad( SC_Man * p, Abc_Obj_t * pObj )
+float Abc_SclFindWireLoad( Vec_Flt_t * vWireCaps, Abc_Obj_t * pObj )
{
- int nFans = Abc_MinInt( Vec_FltSize(p->vWireCaps)-1, Abc_ObjFanoutNum(pObj) );
- return p->vWireCaps ? Vec_FltEntry(p->vWireCaps, nFans) : 0;
+ int nFans = Abc_MinInt( Vec_FltSize(vWireCaps)-1, Abc_ObjFanoutNum(pObj) );
+ return vWireCaps ? Vec_FltEntry(vWireCaps, nFans) : 0;
}
void Abc_SclAddWireLoad( SC_Man * p, Abc_Obj_t * pObj, int fSubtr )
{
- float Load = Abc_SclFindWireLoad( p, pObj );
+ float Load = Abc_SclFindWireLoad( p->vWireCaps, pObj );
Abc_SclObjLoad(p, pObj)->rise += fSubtr ? -Load : Load;
Abc_SclObjLoad(p, pObj)->fall += fSubtr ? -Load : Load;
}
@@ -125,7 +125,7 @@ void Abc_SclComputeLoad( SC_Man * p )
if ( p->pWLoadUsed != NULL )
{
if ( p->vWireCaps == NULL )
- p->vWireCaps = Abc_SclFindWireCaps( p, p->pWLoadUsed );
+ p->vWireCaps = Abc_SclFindWireCaps( p->pWLoadUsed );
Abc_NtkForEachNode1( p->pNtk, pObj, i )
Abc_SclAddWireLoad( p, pObj, 0 );
Abc_NtkForEachPi( p->pNtk, pObj, i )