abc-master
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
fsimCore.c
Go to the documentation of this file.
1 /**CFile****************************************************************
2 
3  FileName [fsimCore.c]
4 
5  SystemName [ABC: Logic synthesis and verification system.]
6 
7  PackageName [Fast sequential AIG simulator.]
8 
9  Synopsis [Core procedures.]
10 
11  Author [Alan Mishchenko]
12 
13  Affiliation [UC Berkeley]
14 
15  Date [Ver. 1.0. Started - June 20, 2005.]
16 
17  Revision [$Id: fsimCore.c,v 1.00 2005/06/20 00:00:00 alanmi Exp $]
18 
19 ***********************************************************************/
20 
21 #include "fsimInt.h"
22 
24 
25 
26 ////////////////////////////////////////////////////////////////////////
27 /// DECLARATIONS ///
28 ////////////////////////////////////////////////////////////////////////
29 
30 ////////////////////////////////////////////////////////////////////////
31 /// FUNCTION DEFINITIONS ///
32 ////////////////////////////////////////////////////////////////////////
33 
34 /**Function*************************************************************
35 
36  Synopsis [This procedure sets default parameters.]
37 
38  Description []
39 
40  SideEffects []
41 
42  SeeAlso []
43 
44 ***********************************************************************/
46 {
47  memset( p, 0, sizeof(Fsim_ParSim_t) );
48  // user-controlled parameters
49  p->nWords = 8; // the number of machine words
50  p->nIters = 32; // the number of timeframes
51  p->TimeLimit = 60; // time limit in seconds
52  p->fCheckMiter = 0; // check if miter outputs are non-zero
53  p->fVerbose = 1; // enables verbose output
54  // internal parameters
55  p->fCompressAig = 0; // compresses internal data
56 }
57 
58 /**Function*************************************************************
59 
60  Synopsis [This procedure sets default parameters.]
61 
62  Description []
63 
64  SideEffects []
65 
66  SeeAlso []
67 
68 ***********************************************************************/
70 {
71  memset( p, 0, sizeof(Fsim_ParSwitch_t) );
72  // user-controlled parameters
73  p->nWords = 1; // the number of machine words
74  p->nIters = 48; // the number of timeframes
75  p->nPref = 16; // the number of first timeframes to skip
76  p->nRandPiNum = 0; // PI trans prob (0=1/2; 1=1/4; 2=1/8, etc)
77  p->fProbOne = 1; // collect probability of one
78  p->fProbTrans = 1; // collect probatility of switching
79  p->fVerbose = 1; // enables verbose output
80 }
81 
82 ////////////////////////////////////////////////////////////////////////
83 /// END OF FILE ///
84 ////////////////////////////////////////////////////////////////////////
85 
86 
88 
char * memset()
void Fsim_ManSetDefaultParamsSwitch(Fsim_ParSwitch_t *p)
Definition: fsimCore.c:69
static Llb_Mgr_t * p
Definition: llb3Image.c:950
int nIters
Definition: fsim.h:50
int fCheckMiter
Definition: fsim.h:52
int TimeLimit
Definition: fsim.h:51
int fCompressAig
Definition: fsim.h:55
int fVerbose
Definition: fsim.h:53
int fProbTrans
Definition: fsim.h:68
#define ABC_NAMESPACE_IMPL_END
Definition: abc_global.h:108
int nRandPiNum
Definition: fsim.h:66
#define ABC_NAMESPACE_IMPL_START
Definition: abc_global.h:107
ABC_NAMESPACE_IMPL_START void Fsim_ManSetDefaultParamsSim(Fsim_ParSim_t *p)
DECLARATIONS ///.
Definition: fsimCore.c:45
int nWords
Definition: fsim.h:49
int fProbOne
Definition: fsim.h:67
int fVerbose
Definition: fsim.h:69