From 7d3976a76353b4a89588925285e80ea33efa0797 Mon Sep 17 00:00:00 2001 From: Alan Mishchenko Date: Tue, 17 Sep 2013 13:16:20 -0700 Subject: Unifying standard cell library representations. --- src/map/scl/sclLibScl.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/map/scl/sclLibScl.c') diff --git a/src/map/scl/sclLibScl.c b/src/map/scl/sclLibScl.c index b08105cb..8f726d1e 100644 --- a/src/map/scl/sclLibScl.c +++ b/src/map/scl/sclLibScl.c @@ -122,7 +122,7 @@ static void Abc_SclReadLibrary( Vec_Str_t * vOut, int * pPos, SC_Lib * p ) for ( i = Vec_StrGetI(vOut, pPos); i != 0; i-- ) { SC_Cell * pCell = Abc_SclCellAlloc(); - pCell->Id = Vec_PtrSize(p->vCells); + pCell->Id = SC_LibCellNum(p); Vec_PtrPush( p->vCells, pCell ); pCell->pName = Vec_StrGetS(vOut, pPos); @@ -530,7 +530,7 @@ static void Abc_SclWriteLibraryText( FILE * s, SC_Lib * p ) SC_Pin * pPin; int n_valid_cells; int i, j, k; - fprintf( s, "/* This Liberty file was generated by ABC on %s. */\n", Extra_TimeStamp() ); + fprintf( s, "/* This Liberty file was generated by ABC on %s */\n", Extra_TimeStamp() ); fprintf( s, "/* The original unabridged library came from file \"%s\".*/\n\n", p->pFileName ); // fprintf( s, "%d", ABC_SCL_CUR_VERSION ); @@ -569,7 +569,7 @@ static void Abc_SclWriteLibraryText( FILE * s, SC_Lib * p ) { fprintf( s, " wire_load_selection(\"%s\") {\n", pWLS->pName ); for ( j = 0; j < Vec_FltSize(pWLS->vAreaFrom); j++) - fprintf( s, " wire_load_from_area( %f, %f, \"%s\" );\n", + fprintf( s, " wire_load_from_area( %f, %f, %s );\n", Vec_FltEntry(pWLS->vAreaFrom, j), Vec_FltEntry(pWLS->vAreaTo, j), (char *)Vec_PtrEntry(pWLS->vWireLoadModel, j) ); -- cgit v1.2.3