abc-master
Main Page
Namespaces
Data Structures
Files
File List
Globals
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
23
ABC_NAMESPACE_IMPL_START
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
***********************************************************************/
45
void
Fsim_ManSetDefaultParamsSim
(
Fsim_ParSim_t
*
p
)
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
***********************************************************************/
69
void
Fsim_ManSetDefaultParamsSwitch
(
Fsim_ParSwitch_t
*
p
)
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
87
ABC_NAMESPACE_IMPL_END
88
memset
char * memset()
Fsim_ParSwitch_t_::nWords
int nWords
Definition:
fsim.h:63
Fsim_ManSetDefaultParamsSwitch
void Fsim_ManSetDefaultParamsSwitch(Fsim_ParSwitch_t *p)
Definition:
fsimCore.c:69
p
static Llb_Mgr_t * p
Definition:
llb3Image.c:950
Fsim_ParSim_t_::nIters
int nIters
Definition:
fsim.h:50
Fsim_ParSim_t_
Definition:
fsim.h:46
Fsim_ParSwitch_t_::nIters
int nIters
Definition:
fsim.h:64
Fsim_ParSim_t_::fCheckMiter
int fCheckMiter
Definition:
fsim.h:52
fsimInt.h
Fsim_ParSim_t_::TimeLimit
int TimeLimit
Definition:
fsim.h:51
Fsim_ParSim_t_::fCompressAig
int fCompressAig
Definition:
fsim.h:55
Fsim_ParSim_t_::fVerbose
int fVerbose
Definition:
fsim.h:53
Fsim_ParSwitch_t_::fProbTrans
int fProbTrans
Definition:
fsim.h:68
ABC_NAMESPACE_IMPL_END
#define ABC_NAMESPACE_IMPL_END
Definition:
abc_global.h:108
Fsim_ParSwitch_t_::nPref
int nPref
Definition:
fsim.h:65
Fsim_ParSwitch_t_::nRandPiNum
int nRandPiNum
Definition:
fsim.h:66
ABC_NAMESPACE_IMPL_START
#define ABC_NAMESPACE_IMPL_START
Definition:
abc_global.h:107
Fsim_ParSwitch_t_
Definition:
fsim.h:60
Fsim_ManSetDefaultParamsSim
ABC_NAMESPACE_IMPL_START void Fsim_ManSetDefaultParamsSim(Fsim_ParSim_t *p)
DECLARATIONS ///.
Definition:
fsimCore.c:45
Fsim_ParSim_t_::nWords
int nWords
Definition:
fsim.h:49
Fsim_ParSwitch_t_::fProbOne
int fProbOne
Definition:
fsim.h:67
Fsim_ParSwitch_t_::fVerbose
int fVerbose
Definition:
fsim.h:69
src
opt
fsim
fsimCore.c
Generated on Thu Dec 18 2014 16:11:54 for abc-master by
1.8.6