summaryrefslogtreecommitdiffstats
path: root/src/map/if
diff options
context:
space:
mode:
Diffstat (limited to 'src/map/if')
-rw-r--r--src/map/if/if.h1
-rw-r--r--src/map/if/ifCore.c33
2 files changed, 34 insertions, 0 deletions
diff --git a/src/map/if/if.h b/src/map/if/if.h
index a2312667..5e0dd1b7 100644
--- a/src/map/if/if.h
+++ b/src/map/if/if.h
@@ -480,6 +480,7 @@ static inline float If_CutLutDelay( If_LibLut_t * p, int Size, int iPin )
////////////////////////////////////////////////////////////////////////
/*=== ifCore.c ===========================================================*/
+extern void If_ManSetDefaultPars( If_Par_t * pPars );
extern int If_ManPerformMapping( If_Man_t * p );
extern int If_ManPerformMappingComb( If_Man_t * p );
extern void If_ManComputeSwitching( If_Man_t * p );
diff --git a/src/map/if/ifCore.c b/src/map/if/ifCore.c
index 1f2d2ae3..b7eb7bc0 100644
--- a/src/map/if/ifCore.c
+++ b/src/map/if/ifCore.c
@@ -44,6 +44,39 @@ extern abctime s_MappingTime;
SeeAlso []
***********************************************************************/
+void If_ManSetDefaultPars( If_Par_t * pPars )
+{
+ memset( pPars, 0, sizeof(If_Par_t) );
+ pPars->nLutSize = -1;
+ pPars->nCutsMax = 8;
+ pPars->nFlowIters = 1;
+ pPars->nAreaIters = 2;
+ pPars->DelayTarget = -1;
+ pPars->Epsilon = (float)0.005;
+ pPars->fPreprocess = 1;
+ pPars->fArea = 0;
+ pPars->fFancy = 0;
+ pPars->fExpRed = 1;
+ pPars->fLatchPaths = 0;
+ pPars->fEdge = 1;
+ pPars->fPower = 0;
+ pPars->fCutMin = 0;
+ pPars->fBidec = 0;
+ pPars->fVerbose = 0;
+}
+
+
+/**Function*************************************************************
+
+ Synopsis []
+
+ Description []
+
+ SideEffects []
+
+ SeeAlso []
+
+***********************************************************************/
int If_ManPerformMapping( If_Man_t * p )
{
p->pPars->fAreaOnly = p->pPars->fArea; // temporary