diff options
author | Alan Mishchenko <alanmi@berkeley.edu> | 2013-11-21 12:01:14 -0800 |
---|---|---|
committer | Alan Mishchenko <alanmi@berkeley.edu> | 2013-11-21 12:01:14 -0800 |
commit | 962ad3b0b106accb74bd9160951d4ca65533073b (patch) | |
tree | 95e70f622e7b55b5aa584f9d5b4fa357b7504920 /src/map/scl | |
parent | b21447b6dfecf39b2cfcfdd028a9c1c6a13a9e07 (diff) | |
download | abc-962ad3b0b106accb74bd9160951d4ca65533073b.tar.gz abc-962ad3b0b106accb74bd9160951d4ca65533073b.tar.bz2 abc-962ad3b0b106accb74bd9160951d4ca65533073b.zip |
Fixing several simple bugs in library handling.
Diffstat (limited to 'src/map/scl')
-rw-r--r-- | src/map/scl/sclBufSize.c | 1 | ||||
-rw-r--r-- | src/map/scl/sclLibUtil.c | 2 | ||||
-rw-r--r-- | src/map/scl/sclSize.c | 1 |
3 files changed, 3 insertions, 1 deletions
diff --git a/src/map/scl/sclBufSize.c b/src/map/scl/sclBufSize.c index 45819626..96b00af1 100644 --- a/src/map/scl/sclBufSize.c +++ b/src/map/scl/sclBufSize.c @@ -88,6 +88,7 @@ Bus_Man_t * Bus_ManStart( Abc_Ntk_t * pNtk, SC_Lib * pLib, SC_BusPars * pPars ) if ( pNtk->pWLoadUsed == NULL ) { p->pWLoadUsed = Abc_SclFindWireLoadModel( pLib, Abc_SclGetTotalArea(pNtk) ); + if ( p->pWLoadUsed ) pNtk->pWLoadUsed = Abc_UtilStrsav( p->pWLoadUsed->pName ); } else diff --git a/src/map/scl/sclLibUtil.c b/src/map/scl/sclLibUtil.c index fb7cbd3a..c078e4e3 100644 --- a/src/map/scl/sclLibUtil.c +++ b/src/map/scl/sclLibUtil.c @@ -272,7 +272,7 @@ SC_WireLoad * Abc_SclFindWireLoadModel( SC_Lib * p, float Area ) pWLoadUsed = p->default_wire_load; else { - Abc_Print( 0, "No wire model given.\n" ); +// Abc_Print( 0, "No wire model given.\n" ); return NULL; } return Abc_SclFetchWireLoadModel( p, pWLoadUsed ); diff --git a/src/map/scl/sclSize.c b/src/map/scl/sclSize.c index d5710af8..e06adc22 100644 --- a/src/map/scl/sclSize.c +++ b/src/map/scl/sclSize.c @@ -615,6 +615,7 @@ SC_Man * Abc_SclManStart( SC_Lib * pLib, Abc_Ntk_t * pNtk, int fUseWireLoads, in if ( pNtk->pWLoadUsed == NULL ) { p->pWLoadUsed = Abc_SclFindWireLoadModel( pLib, Abc_SclGetTotalArea(p->pNtk) ); + if ( p->pWLoadUsed ) pNtk->pWLoadUsed = Abc_UtilStrsav( p->pWLoadUsed->pName ); } else |