summaryrefslogtreecommitdiffstats
path: root/src/map/if/ifCore.c
diff options
context:
space:
mode:
authorAlan Mishchenko <alanmi@berkeley.edu>2007-09-30 08:01:00 -0700
committerAlan Mishchenko <alanmi@berkeley.edu>2007-09-30 08:01:00 -0700
commite54d9691616b9a0326e2fdb3156bb4eeb8abfcd7 (patch)
treede3ffe87c3e17950351e3b7d97fa18318bd5ea9a /src/map/if/ifCore.c
parent7d7e60f2dc84393cd4c5db22d2eaf7b1fb1a79b2 (diff)
downloadabc-e54d9691616b9a0326e2fdb3156bb4eeb8abfcd7.tar.gz
abc-e54d9691616b9a0326e2fdb3156bb4eeb8abfcd7.tar.bz2
abc-e54d9691616b9a0326e2fdb3156bb4eeb8abfcd7.zip
Version abc70930
Diffstat (limited to 'src/map/if/ifCore.c')
-rw-r--r--src/map/if/ifCore.c146
1 files changed, 0 insertions, 146 deletions
diff --git a/src/map/if/ifCore.c b/src/map/if/ifCore.c
deleted file mode 100644
index 59ad5a1c..00000000
--- a/src/map/if/ifCore.c
+++ /dev/null
@@ -1,146 +0,0 @@
-/**CFile****************************************************************
-
- FileName [ifCore.c]
-
- SystemName [ABC: Logic synthesis and verification system.]
-
- PackageName [FPGA mapping based on priority cuts.]
-
- Synopsis [The central part of the mapper.]
-
- Author [Alan Mishchenko]
-
- Affiliation [UC Berkeley]
-
- Date [Ver. 1.0. Started - November 21, 2006.]
-
- Revision [$Id: ifCore.c,v 1.00 2006/11/21 00:00:00 alanmi Exp $]
-
-***********************************************************************/
-
-#include "if.h"
-
-////////////////////////////////////////////////////////////////////////
-/// DECLARATIONS ///
-////////////////////////////////////////////////////////////////////////
-
-extern int s_MappingTime;
-
-////////////////////////////////////////////////////////////////////////
-/// FUNCTION DEFINITIONS ///
-////////////////////////////////////////////////////////////////////////
-
-/**Function*************************************************************
-
- Synopsis []
-
- Description []
-
- SideEffects []
-
- SeeAlso []
-
-***********************************************************************/
-int If_ManPerformMapping( If_Man_t * p )
-{
- p->pPars->fAreaOnly = p->pPars->fArea; // temporary
-
- // create the CI cutsets
- If_ManSetupCiCutSets( p );
- // allocate memory for other cutsets
- If_ManSetupSetAll( p, If_ManCrossCut(p) );
-
- // try sequential mapping
- if ( p->pPars->fSeqMap )
- {
- int RetValue;
-// printf( "Currently sequential mapping is not performed.\n" );
- RetValue = If_ManPerformMappingSeq( p );
- return RetValue;
-// return 1;
- }
-
- return If_ManPerformMappingComb( p );
-}
-
-
-/**Function*************************************************************
-
- Synopsis []
-
- Description []
-
- SideEffects []
-
- SeeAlso []
-
-***********************************************************************/
-int If_ManPerformMappingComb( If_Man_t * p )
-{
- If_Obj_t * pObj;
- int clkTotal = clock();
- int i;
-
- // set arrival times and fanout estimates
- If_ManForEachCi( p, pObj, i )
- {
- If_ObjSetArrTime( pObj, p->pPars->pTimesArr[i] );
- pObj->EstRefs = (float)1.0;
- }
-
- // delay oriented mapping
- if ( p->pPars->fPreprocess && !p->pPars->fArea )
- {
- // map for delay
- If_ManPerformMappingRound( p, p->pPars->nCutsMax, 0, 1, "Delay" );
- // map for delay second option
- p->pPars->fFancy = 1;
- If_ManResetOriginalRefs( p );
- If_ManPerformMappingRound( p, p->pPars->nCutsMax, 0, 1, "Delay-2" );
- p->pPars->fFancy = 0;
- // map for area
- p->pPars->fArea = 1;
- If_ManResetOriginalRefs( p );
- If_ManPerformMappingRound( p, p->pPars->nCutsMax, 0, 1, "Area" );
- p->pPars->fArea = 0;
- }
- else
- If_ManPerformMappingRound( p, p->pPars->nCutsMax, 0, 0, "Delay" );
-
- // try to improve area by expanding and reducing the cuts
- if ( p->pPars->fExpRed && !p->pPars->fTruth )
- If_ManImproveMapping( p );
-
- // area flow oriented mapping
- for ( i = 0; i < p->pPars->nFlowIters; i++ )
- {
- If_ManPerformMappingRound( p, p->pPars->nCutsMax, 1, 0, "Flow" );
- if ( p->pPars->fExpRed && !p->pPars->fTruth )
- If_ManImproveMapping( p );
- }
-
- // area oriented mapping
- for ( i = 0; i < p->pPars->nAreaIters; i++ )
- {
- If_ManPerformMappingRound( p, p->pPars->nCutsMax, 2, 0, "Area" );
- if ( p->pPars->fExpRed && !p->pPars->fTruth )
- If_ManImproveMapping( p );
- }
-
- if ( p->pPars->fVerbose )
- {
-// printf( "Total memory = %7.2f Mb. Peak cut memory = %7.2f Mb. ",
-// 1.0 * (p->nObjBytes + 2*sizeof(void *)) * If_ManObjNum(p) / (1<<20),
-// 1.0 * p->nSetBytes * Mem_FixedReadMaxEntriesUsed(p->pMemSet) / (1<<20) );
- PRT( "Total time", clock() - clkTotal );
- }
-// printf( "Cross cut memory = %d.\n", Mem_FixedReadMaxEntriesUsed(p->pMemSet) );
- s_MappingTime = clock() - clkTotal;
- return 1;
-}
-
-////////////////////////////////////////////////////////////////////////
-/// END OF FILE ///
-////////////////////////////////////////////////////////////////////////
-
-