cloudFPGA (cF) API  1.0
The documentation of the source code of cloudFPGA (cF)
config.h
Go to the documentation of this file.
1 
17 
34 //------------------------------------ USEFUL MACROS --------------------------------------------
35 
37 #define CEIL(a, b) (((a) + (b-1)) / (b))
38 
39 
40 
41 //-------------------------------- USER DEFINED OPTIONS ------------------------------------------
42 
45 #define PACK_SIZE 1024
46 
48 #define BUF_LEN 65540
49 
50 /* For HOST TB uncomment this. For normal host execution keep it commented */
51 //#define TB_SIM_CFP_VITIS
52 
54 #define NET_TYPE udp
55 
57 #define DtUsed double
58 
60 #define MCM_NM 6
61 
63 #define OUTDEP 1024
64 
65 //---------------------------- AUTOMATICALLY DEFINED OPTIONS -------------------------------------
66 
68 #define TOT_TRANSFERS_IN (CEIL(INSIZE, PACK_SIZE))
69 #define TOT_TRANSFERS_OUT (CEIL(OUTSIZE, PACK_SIZE))
70 #define TOT_TRANSFERS TOT_TRANSFERS_IN + TOT_TRANSFERS_OUT
71 
72 #if DtUsed == double
73 //#define DtUsedInt long unsigned int
74 typedef long unsigned int DtUsedInt;
75 #elif DtUsed == float
76 #define DtUsedInt unsigned int
77 #endif
78 
79 #define tcp 0
80 #define udp 1
81 
82 //--------------------------------- USER DEFINED STRUCTS ------------------------------------------
83 
85 struct varin {
99 };
100 
105 };
106 
107 
long unsigned int DtUsedInt
Definition: config.h:74
#define DtUsed
Definition: config.h:57
Definition: config.h:85
double dividendYield
Definition: config.h:90
DtUsedInt seed
Definition: config.h:87
DtUsedInt maxSamples
Definition: config.h:98
double riskFreeRate
Definition: config.h:91
double volatility
Definition: config.h:89
double requiredTolerance
Definition: config.h:95
DtUsedInt loop_nm
Definition: config.h:86
double underlying
Definition: config.h:88
DtUsedInt timeSteps
Definition: config.h:97
double strike
Definition: config.h:93
DtUsedInt requiredSamples
Definition: config.h:96
DtUsedInt optionType
Definition: config.h:94
double timeLength
Definition: config.h:92
double f
Definition: config.h:103
DtUsedInt i
Definition: config.h:104