mirror of
https://github.com/YosysHQ/abc.git
synced 2026-09-03 08:25:20 +02:00
Version abc80130
This commit is contained in:
@@ -30,7 +30,7 @@ static Map_Node_t * Map_TableLookup( Map_Man_t * p, Map_Node_t * p1, Map_Node
|
||||
static inline unsigned Map_HashKey2( Map_Node_t * p0, Map_Node_t * p1, int TableSize ) { return ((unsigned)(p0) + (unsigned)(p1) * 12582917) % TableSize; }
|
||||
|
||||
////////////////////////////////////////////////////////////////////////
|
||||
/// FUNCTION DEFINITIONS ///
|
||||
/// FUNCTION DEFITIONS ///
|
||||
////////////////////////////////////////////////////////////////////////
|
||||
|
||||
/**Function*************************************************************
|
||||
@@ -183,7 +183,7 @@ Map_Man_t * Map_ManCreate( int nInputs, int nOutputs, int fVerbose )
|
||||
int i;
|
||||
|
||||
// derive the supergate library
|
||||
if ( Abc_FrameReadLibSuper() == NULL )
|
||||
if ( Abc_FrameReadLibSuper(Abc_FrameGetGlobalFrame()) == NULL )
|
||||
{
|
||||
printf( "The supergate library is not specified. Use \"read_library\" or \"read_super\".\n" );
|
||||
return NULL;
|
||||
@@ -192,7 +192,7 @@ Map_Man_t * Map_ManCreate( int nInputs, int nOutputs, int fVerbose )
|
||||
// start the manager
|
||||
p = ALLOC( Map_Man_t, 1 );
|
||||
memset( p, 0, sizeof(Map_Man_t) );
|
||||
p->pSuperLib = Abc_FrameReadLibSuper();
|
||||
p->pSuperLib = Abc_FrameReadLibSuper(Abc_FrameGetGlobalFrame());
|
||||
p->nVarsMax = p->pSuperLib->nVarsMax;
|
||||
p->fVerbose = fVerbose;
|
||||
p->fEpsilon = (float)0.001;
|
||||
@@ -261,8 +261,8 @@ void Map_ManFree( Map_Man_t * p )
|
||||
if ( p->uCanons ) free( p->uCanons );
|
||||
if ( p->uPhases ) free( p->uPhases );
|
||||
if ( p->pCounters ) free( p->pCounters );
|
||||
Extra_MmFixedStop( p->mmNodes );
|
||||
Extra_MmFixedStop( p->mmCuts );
|
||||
Extra_MmFixedStop( p->mmNodes, 0 );
|
||||
Extra_MmFixedStop( p->mmCuts, 0 );
|
||||
FREE( p->pInputArrivals );
|
||||
FREE( p->pInputs );
|
||||
FREE( p->pOutputs );
|
||||
@@ -314,7 +314,7 @@ void Map_ManPrintTimeStats( Map_Man_t * p )
|
||||
void Map_ManPrintStatsToFile( char * pName, float Area, float Delay, int Time )
|
||||
{
|
||||
FILE * pTable;
|
||||
pTable = fopen( "map_stats.txt", "a+" );
|
||||
pTable = fopen( "stats.txt", "a+" );
|
||||
fprintf( pTable, "%s ", pName );
|
||||
fprintf( pTable, "%4.2f ", Area );
|
||||
fprintf( pTable, "%4.2f ", Delay );
|
||||
|
||||
Reference in New Issue
Block a user