mirror of
https://github.com/YosysHQ/abc.git
synced 2026-09-01 18:27:44 +02:00
Version abc80725
This commit is contained in:
@@ -34,7 +34,7 @@ static int Map_LibraryGetMaxSuperPi_rec( Map_Super_t * pGate );
|
||||
static unsigned Map_LibraryGetGateSupp_rec( Map_Super_t * pGate );
|
||||
|
||||
// fanout limits
|
||||
static const int s_MapFanoutLimits[10] = { 1/*0*/, 10/*1*/, 5/*2*/, 2/*3*/, 1/*4*/, 1/*5*/, 1/*6*/ };
|
||||
extern const int s_MapFanoutLimits[10] = { 1/*0*/, 10/*1*/, 5/*2*/, 2/*3*/, 1/*4*/, 1/*5*/, 1/*6*/ };
|
||||
|
||||
////////////////////////////////////////////////////////////////////////
|
||||
/// FUNCTION DEFINITIONS ///
|
||||
@@ -124,7 +124,14 @@ int Map_LibraryReadFileTree( Map_SuperLib_t * pLib, FILE * pFile, char *pFileNam
|
||||
|
||||
// get the genlib file name (base)
|
||||
pLibName = strtok( pTemp, " \t\r\n" );
|
||||
|
||||
#ifdef __linux__
|
||||
if( strchr( pLibName, '/' ) != NULL )
|
||||
pLibName = strrchr( pLibName, '/' ) + 1;
|
||||
#else
|
||||
if( strchr( pLibName, '\\' ) != NULL )
|
||||
pLibName = strrchr( pLibName, '\\' ) + 1;
|
||||
#endif
|
||||
|
||||
if ( strcmp( pLibName, "GATE" ) == 0 )
|
||||
{
|
||||
printf( "The input file \"%s\" looks like a GENLIB file and not a supergate library file.\n", pLib->pName );
|
||||
@@ -145,7 +152,7 @@ int Map_LibraryReadFileTree( Map_SuperLib_t * pLib, FILE * pFile, char *pFileNam
|
||||
if ( pStr == pLibFile )
|
||||
strcpy( pLibFile, pLibName );
|
||||
else
|
||||
sprintf( pStr, "/%s", pLibName );
|
||||
sprintf( pStr, "\\%s", pLibName );
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user