summaryrefslogtreecommitdiffstats
path: root/src/map/scl/sclLibScl.c
diff options
context:
space:
mode:
authorAlan Mishchenko <alanmi@berkeley.edu>2013-09-17 13:16:20 -0700
committerAlan Mishchenko <alanmi@berkeley.edu>2013-09-17 13:16:20 -0700
commit7d3976a76353b4a89588925285e80ea33efa0797 (patch)
tree017fa2a4eda34a7b53078ab44c55850cc4136815 /src/map/scl/sclLibScl.c
parent5df166fce17e7729b590d799da753f6ab811886b (diff)
downloadabc-7d3976a76353b4a89588925285e80ea33efa0797.tar.gz
abc-7d3976a76353b4a89588925285e80ea33efa0797.tar.bz2
abc-7d3976a76353b4a89588925285e80ea33efa0797.zip
Unifying standard cell library representations.
Diffstat (limited to 'src/map/scl/sclLibScl.c')
-rw-r--r--src/map/scl/sclLibScl.c6
1 files changed, 3 insertions, 3 deletions
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) );