summaryrefslogtreecommitdiffstats
path: root/src/sat/bmc/bmc.h
diff options
context:
space:
mode:
authorAlan Mishchenko <alanmi@berkeley.edu>2017-12-06 15:09:11 -0800
committerAlan Mishchenko <alanmi@berkeley.edu>2017-12-06 15:09:11 -0800
commitc7b65a15d386ed1ad89707e20dcc2d31237c8e60 (patch)
tree145843c1de5e486db0e740031cb5fd81cadea060 /src/sat/bmc/bmc.h
parent93b96fc35c50123eb48b04d212394036dd8a8109 (diff)
downloadabc-c7b65a15d386ed1ad89707e20dcc2d31237c8e60.tar.gz
abc-c7b65a15d386ed1ad89707e20dcc2d31237c8e60.tar.bz2
abc-c7b65a15d386ed1ad89707e20dcc2d31237c8e60.zip
Adding parameter structure to 'twoexact' and 'lutexact'.
Diffstat (limited to 'src/sat/bmc/bmc.h')
-rw-r--r--src/sat/bmc/bmc.h30
1 files changed, 28 insertions, 2 deletions
diff --git a/src/sat/bmc/bmc.h b/src/sat/bmc/bmc.h
index 51f207e6..5b914741 100644
--- a/src/sat/bmc/bmc.h
+++ b/src/sat/bmc/bmc.h
@@ -36,13 +36,39 @@
ABC_NAMESPACE_HEADER_START
//#define USE_NODE_ORDER 1
-//#define USE_FIRST_SPECIAL 1
-//#define USE_LESS_VARS 1
////////////////////////////////////////////////////////////////////////
/// BASIC TYPES ///
////////////////////////////////////////////////////////////////////////
+
+// exact synthesis parameters
+
+typedef struct Bmc_EsPar_t_ Bmc_EsPar_t;
+struct Bmc_EsPar_t_
+{
+ int nVars;
+ int nNodes;
+ int nLutSize;
+ int fGlucose;
+ int fOnlyAnd;
+ int fFewerVars;
+ int fVerbose;
+ char * pTtStr;
+};
+
+static inline void Bmc_EsParSetDefault( Bmc_EsPar_t * pPars )
+{
+ pPars->nVars = 5; // when first GC happens (4096) (degree of 2)
+ pPars->nNodes = 4; // when each next GC happens (5)
+ pPars->nLutSize = 3; // log difference compared to unique table
+ pPars->fGlucose = 0; // minimum gain when reodering is not performed
+ pPars->fOnlyAnd = 0; // minimum gain when reodering is not performed
+ pPars->fFewerVars = 0; // minimum gain when reodering is not performed
+ pPars->fVerbose = 1; // verbose output
+}
+
+
// unrolling manager
typedef struct Unr_Man_t_ Unr_Man_t;