diff options
author | Alan Mishchenko <alanmi@berkeley.edu> | 2011-05-06 19:27:00 -0700 |
---|---|---|
committer | Alan Mishchenko <alanmi@berkeley.edu> | 2011-05-06 19:27:00 -0700 |
commit | a0cc621566d5218fde3d82647ff3b32b5f8c09aa (patch) | |
tree | a30d25d0dd10c7b94db7b6a9c74dc61232af71b2 /src/map/mapper | |
parent | 80d161afaa335c4289e6f7057b6657e660ed87e7 (diff) | |
download | abc-a0cc621566d5218fde3d82647ff3b32b5f8c09aa.tar.gz abc-a0cc621566d5218fde3d82647ff3b32b5f8c09aa.tar.bz2 abc-a0cc621566d5218fde3d82647ff3b32b5f8c09aa.zip |
Trying to fix a mysterious bug in reading the library files.
Diffstat (limited to 'src/map/mapper')
-rw-r--r-- | src/map/mapper/mapperLib.c | 29 |
1 files changed, 14 insertions, 15 deletions
diff --git a/src/map/mapper/mapperLib.c b/src/map/mapper/mapperLib.c index bd7f9b87..a4476bdd 100644 --- a/src/map/mapper/mapperLib.c +++ b/src/map/mapper/mapperLib.c @@ -202,7 +202,7 @@ int Map_SuperLibDeriveFromGenlib( Mio_Library_t * pLib ) pNameGeneric = Extra_FileNameGeneric( Mio_LibraryReadName(pLib) ); sprintf( FileNameSuper, "%s.super", pNameGeneric ); ABC_FREE( pNameGeneric ); - + sprintf( CommandSuper, "super -l 1 -i 5 -d 10000000 -a 10000000 -t 100 %s", FileNameGenlib ); if ( Cmd_CommandExecute( pAbc, CommandSuper ) ) { @@ -218,15 +218,17 @@ int Map_SuperLibDeriveFromGenlib( Mio_Library_t * pLib ) //#else // unlink( FileNameGenlib ); //#endif + printf( "A simple supergate library is derived from gate library \"%s\".\n", Mio_LibraryReadName(pLib) ); + fflush( stdout ); sprintf( CommandRead, "read_super %s", FileNameSuper ); if ( Cmd_CommandExecute( pAbc, CommandRead ) ) { -#ifdef WIN32 - _unlink( FileNameSuper ); -#else - unlink( FileNameSuper ); -#endif +//#ifdef WIN32 +// _unlink( FileNameSuper ); +//#else +// unlink( FileNameSuper ); +//#endif fprintf( stdout, "Cannot execute command \"%s\".\n", CommandRead ); ABC_FREE( FileNameGenlib ); ABC_FREE( FileNameSuper ); @@ -234,19 +236,16 @@ int Map_SuperLibDeriveFromGenlib( Mio_Library_t * pLib ) ABC_FREE( CommandRead ); return 0; } - -/* // don't remove the intermediate file -#ifdef WIN32 - _unlink( FileNameSuper ); -#else - unlink( FileNameSuper ); -#endif -*/ +//#ifdef WIN32 +// _unlink( FileNameSuper ); +//#else +// unlink( FileNameSuper ); +//#endif ABC_FREE( FileNameGenlib ); ABC_FREE( FileNameSuper ); ABC_FREE( CommandSuper ); ABC_FREE( CommandRead ); - return 1; + return 1; } |