Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-11 23:28:03

0001 #ifndef DEFINES_H_
0002 #define DEFINES_H_
0003 
0004 #include "ap_fixed.h"
0005 #include "ap_int.h"
0006 
0007 #include <cstddef>
0008 #include <cstdio>
0009 
0010 // hls-fpga-machine-learning insert numbers
0011 #define N_INPUT_1_1 80
0012 #define N_LAYER_2 25
0013 #define N_LAYER_2 25
0014 #define N_LAYER_5 25
0015 #define N_LAYER_5 25
0016 #define N_LAYER_8 15
0017 #define N_LAYER_8 15
0018 #define N_LAYER_11 15
0019 #define N_LAYER_11 15
0020 #define N_LAYER_14 10
0021 #define N_LAYER_14 10
0022 #define N_LAYER_17 1
0023 #define N_LAYER_17 1
0024 #define N_LAYER_20 1
0025 
0026 // hls-fpga-machine-learning insert layer-precision
0027 typedef ap_fixed<16, 10> input_t;
0028 typedef ap_fixed<24, 12> input2_t;
0029 typedef ap_fixed<16, 6> model_default_t;
0030 typedef ap_fixed<16, 6> layer2_t;
0031 typedef ap_fixed<9, 3> weight2_t;
0032 typedef ap_fixed<9, 3> bias2_t;
0033 typedef ap_uint<1> layer2_index;
0034 typedef ap_ufixed<9, 0, AP_RND_CONV, AP_SAT> layer4_t;
0035 typedef ap_fixed<18, 8> relu_1_table_t;
0036 typedef ap_fixed<16, 6> layer5_t;
0037 typedef ap_fixed<9, 3> weight5_t;
0038 typedef ap_fixed<9, 3> bias5_t;
0039 typedef ap_uint<1> layer5_index;
0040 typedef ap_ufixed<9, 0, AP_RND_CONV, AP_SAT> layer7_t;
0041 typedef ap_fixed<18, 8> relu_2_table_t;
0042 typedef ap_fixed<16, 6> layer8_t;
0043 typedef ap_fixed<9, 3> weight8_t;
0044 typedef ap_fixed<9, 3> bias8_t;
0045 typedef ap_uint<1> layer8_index;
0046 typedef ap_ufixed<9, 0, AP_RND_CONV, AP_SAT> layer10_t;
0047 typedef ap_fixed<18, 8> relu_3_table_t;
0048 typedef ap_fixed<16, 6> layer11_t;
0049 typedef ap_fixed<9, 3> weight11_t;
0050 typedef ap_fixed<9, 3> bias11_t;
0051 typedef ap_uint<1> layer11_index;
0052 typedef ap_ufixed<9, 0, AP_RND_CONV, AP_SAT> layer13_t;
0053 typedef ap_fixed<18, 8> relu_4_table_t;
0054 typedef ap_fixed<16, 6> layer14_t;
0055 typedef ap_fixed<9, 3> weight14_t;
0056 typedef ap_fixed<9, 3> bias14_t;
0057 typedef ap_uint<1> layer14_index;
0058 typedef ap_ufixed<9, 0, AP_RND_CONV, AP_SAT> layer16_t;
0059 typedef ap_fixed<18, 8> relu_5_table_t;
0060 typedef ap_fixed<16, 6> layer17_t;
0061 typedef ap_fixed<16, 7> weight17_t;
0062 typedef ap_fixed<16, 7> bias17_t;
0063 typedef ap_uint<1> layer17_index;
0064 typedef ap_fixed<16, 6> result_t;
0065 typedef ap_fixed<18, 8> jetID_output_table_t;
0066 typedef ap_fixed<16, 7> weight20_t;
0067 typedef ap_fixed<16, 7> bias20_t;
0068 typedef ap_uint<1> layer20_index;
0069 
0070 #endif