summaryrefslogtreecommitdiffstats
path: root/src/map/mapper/mapper.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/mapper.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/mapper.c')
-rw-r--r--src/map/mapper/mapper.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/map/mapper/mapper.c b/src/map/mapper/mapper.c
index 17102cec..020ee9f5 100644
--- a/src/map/mapper/mapper.c
+++ b/src/map/mapper/mapper.c
@@ -142,8 +142,14 @@ int Map_CommandReadLibrary( Abc_Frame_t * pAbc, int argc, char **argv )
}
fclose( pFile );
+ if ( Abc_FrameReadLibGen() == NULL )
+ {
+ fprintf( pErr, "Genlib library should be read in first..\n" );
+ return 1;
+ }
+
// set the new network
- pLib = Map_SuperLibCreate( NULL, FileName, ExcludeFile, fAlgorithm, fVerbose );
+ pLib = Map_SuperLibCreate( (Mio_Library_t *)Abc_FrameReadLibGen(), NULL, FileName, ExcludeFile, fAlgorithm, fVerbose );
if ( pLib == NULL )
{
fprintf( pErr, "Reading supergate library has failed.\n" );