Commit 962ad3b0 by Alan Mishchenko

Fixing several simple bugs in library handling.

parent b21447b6
...@@ -88,6 +88,7 @@ Bus_Man_t * Bus_ManStart( Abc_Ntk_t * pNtk, SC_Lib * pLib, SC_BusPars * pPars ) ...@@ -88,6 +88,7 @@ Bus_Man_t * Bus_ManStart( Abc_Ntk_t * pNtk, SC_Lib * pLib, SC_BusPars * pPars )
if ( pNtk->pWLoadUsed == NULL ) if ( pNtk->pWLoadUsed == NULL )
{ {
p->pWLoadUsed = Abc_SclFindWireLoadModel( pLib, Abc_SclGetTotalArea(pNtk) ); p->pWLoadUsed = Abc_SclFindWireLoadModel( pLib, Abc_SclGetTotalArea(pNtk) );
if ( p->pWLoadUsed )
pNtk->pWLoadUsed = Abc_UtilStrsav( p->pWLoadUsed->pName ); pNtk->pWLoadUsed = Abc_UtilStrsav( p->pWLoadUsed->pName );
} }
else else
......
...@@ -272,7 +272,7 @@ SC_WireLoad * Abc_SclFindWireLoadModel( SC_Lib * p, float Area ) ...@@ -272,7 +272,7 @@ SC_WireLoad * Abc_SclFindWireLoadModel( SC_Lib * p, float Area )
pWLoadUsed = p->default_wire_load; pWLoadUsed = p->default_wire_load;
else else
{ {
Abc_Print( 0, "No wire model given.\n" ); // Abc_Print( 0, "No wire model given.\n" );
return NULL; return NULL;
} }
return Abc_SclFetchWireLoadModel( p, pWLoadUsed ); return Abc_SclFetchWireLoadModel( p, pWLoadUsed );
......
...@@ -615,6 +615,7 @@ SC_Man * Abc_SclManStart( SC_Lib * pLib, Abc_Ntk_t * pNtk, int fUseWireLoads, in ...@@ -615,6 +615,7 @@ SC_Man * Abc_SclManStart( SC_Lib * pLib, Abc_Ntk_t * pNtk, int fUseWireLoads, in
if ( pNtk->pWLoadUsed == NULL ) if ( pNtk->pWLoadUsed == NULL )
{ {
p->pWLoadUsed = Abc_SclFindWireLoadModel( pLib, Abc_SclGetTotalArea(p->pNtk) ); p->pWLoadUsed = Abc_SclFindWireLoadModel( pLib, Abc_SclGetTotalArea(p->pNtk) );
if ( p->pWLoadUsed )
pNtk->pWLoadUsed = Abc_UtilStrsav( p->pWLoadUsed->pName ); pNtk->pWLoadUsed = Abc_UtilStrsav( p->pWLoadUsed->pName );
} }
else else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment