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 ------------------------------------------
43 #define FRAME_HEIGHT 32
44 
46 #define FRAME_WIDTH 32
47 
48 #define FRAME_INTERVAL (1000/30)
49 
52 #define PACK_SIZE 1024
53 
55 #define BUF_LEN 65540
56 
58 #define WRITE_OUTPUT_FILE
59 
61 // #define SHOW_WINDOWS
62 
64 #define TB_SIM_CFP_VITIS
65 
67 // #define INPUT_FROM_CAMERA
68 
70 #define INPUT_TYPE_HOST CV_8UC1
71 
73 #define NET_TYPE udp
74 
78 #define DEBUG_LEVEL dbgLevelNone
79 
80 //------------------- AUTOMATICALLY DEFINED OR AUXILILIARY OPTIONS -------------------------------
81 
82 #define FRAME_TOTAL FRAME_HEIGHT * FRAME_WIDTH //* 3
83 #define WARP_TRANSFORM_TOTAL FRAME_TOTAL + 8 * 2 + 5 * 8 // 8 bytes x 2 commands, and the tx matrix
84 
86 #define TOT_TRANSFERS CEIL(WARP_TRANSFORM_TOTAL, PACK_SIZE)
87 
88 #define tcp 0
89 #define udp 1
90 
91 #define PY_WRAP_WARPTRANSFORM_NUMPI 0
92 #define PY_WRAP_WARPTRANSFORM_FILENAME 1
93