summaryrefslogtreecommitdiffstats
path: root/src/map/mapper/mapperLib.c
diff options
context:
space:
mode:
authorAlan Mishchenko <alanmi@berkeley.edu>2013-07-24 09:54:53 -0700
committerAlan Mishchenko <alanmi@berkeley.edu>2013-07-24 09:54:53 -0700
commit00d023713b68fc554197efeb2c766b14ac3ec4bd (patch)
tree454e35712bc3fc3256dc7e8019f74bc49761d335 /src/map/mapper/mapperLib.c
parentfadcef9eb91411844bdf5d52e687cdd306c94794 (diff)
downloadabc-00d023713b68fc554197efeb2c766b14ac3ec4bd.tar.gz
abc-00d023713b68fc554197efeb2c766b14ac3ec4bd.tar.bz2
abc-00d023713b68fc554197efeb2c766b14ac3ec4bd.zip
Tuning standard-cell mapping flow.
Diffstat (limited to 'src/map/mapper/mapperLib.c')
-rw-r--r--src/map/mapper/mapperLib.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/map/mapper/mapperLib.c b/src/map/mapper/mapperLib.c
index 80c2d610..b98d1492 100644
--- a/src/map/mapper/mapperLib.c
+++ b/src/map/mapper/mapperLib.c
@@ -55,7 +55,7 @@ ABC_NAMESPACE_IMPL_START
SeeAlso []
***********************************************************************/
-Map_SuperLib_t * Map_SuperLibCreate( Vec_Str_t * vStr, char * pFileName, char * pExcludeFile, int fAlgorithm, int fVerbose )
+Map_SuperLib_t * Map_SuperLibCreate( Mio_Library_t * pGenlib, Vec_Str_t * vStr, char * pFileName, char * pExcludeFile, int fAlgorithm, int fVerbose )
{
Map_SuperLib_t * p;
abctime clk;
@@ -79,7 +79,7 @@ clk = Abc_Clock();
if ( vStr != NULL )
{
// read the supergate library from file
- int Status = Map_LibraryReadFileTreeStr( p, vStr, pFileName );
+ int Status = Map_LibraryReadFileTreeStr( p, pGenlib, vStr, pFileName );
if ( Status == 0 )
{
Map_SuperLibFree( p );
@@ -96,7 +96,7 @@ clk = Abc_Clock();
}
else if ( fAlgorithm )
{
- if ( !Map_LibraryReadTree( p, pFileName, pExcludeFile ) )
+ if ( !Map_LibraryReadTree( p, pGenlib, pFileName, pExcludeFile ) )
{
Map_SuperLibFree( p );
return NULL;
@@ -169,7 +169,7 @@ void Map_SuperLibFree( Map_SuperLib_t * p )
if ( p == NULL ) return;
if ( p->pGenlib )
{
- assert( p->pGenlib == Abc_FrameReadLibGen() );
+// assert( p->pGenlib == Abc_FrameReadLibGen() );
// Mio_LibraryDelete( p->pGenlib );
// Abc_FrameSetLibGen( NULL );
p->pGenlib = NULL;
@@ -210,7 +210,7 @@ int Map_SuperLibDeriveFromGenlib( Mio_Library_t * pLib, int fVerbose )
return 0;
// create supergate library
pFileName = Extra_FileNameGenericAppend( Mio_LibraryReadName(pLib), ".super" );
- pLibSuper = Map_SuperLibCreate( vStr, pFileName, NULL, 1, 0 );
+ pLibSuper = Map_SuperLibCreate( pLib, vStr, pFileName, NULL, 1, 0 );
Vec_StrFree( vStr );
// replace the library
Map_SuperLibFree( (Map_SuperLib_t *)Abc_FrameReadLibSuper() );