#define DATA_OUT_CH 1
#define DATA_OUT_DIM 28

#define CONV1_IN_DIM 28
#define CONV1_IN_CH 1
#define CONV1_KER_DIM 5
#define CONV1_PAD 2
#define CONV1_STRIDE 1
#define CONV1_OUT_CH 20
#define CONV1_OUT_DIM 28

#define RELU1_OUT_CH 20
#define RELU1_OUT_DIM 28

#define POOL1_IN_DIM 28
#define POOL1_IN_CH 20
#define POOL1_KER_DIM 5
#define POOL1_STRIDE 1
#define POOL1_PAD 0
#define POOL1_OUT_DIM 24

#define CONV2_IN_DIM 24
#define CONV2_IN_CH 20
#define CONV2_KER_DIM 5
#define CONV2_PAD 2
#define CONV2_STRIDE 1
#define CONV2_OUT_CH 20
#define CONV2_OUT_DIM 24

#define RELU2_OUT_CH 20
#define RELU2_OUT_DIM 24

#define POOL2_IN_DIM 24
#define POOL2_IN_CH 20
#define POOL2_KER_DIM 2
#define POOL2_STRIDE 2
#define POOL2_PAD 0
#define POOL2_OUT_DIM 12

#define CONV3_IN_DIM 12
#define CONV3_IN_CH 20
#define CONV3_KER_DIM 5
#define CONV3_PAD 0
#define CONV3_STRIDE 1
#define CONV3_OUT_CH 50
#define CONV3_OUT_DIM 8

#define RELU3_OUT_CH 50
#define RELU3_OUT_DIM 8

#define POOL3_IN_DIM 8
#define POOL3_IN_CH 50
#define POOL3_KER_DIM 2
#define POOL3_STRIDE 2
#define POOL3_PAD 0
#define POOL3_OUT_DIM 4

#define IP1_IN_DIM 800
#define IP1_OUT_DIM 10

#define DATA_RSHIFT 0
#define CONV1_BIAS_LSHIFT 3
#define CONV1_OUT_RSHIFT 8
#define CONV2_BIAS_LSHIFT 6
#define CONV2_OUT_RSHIFT 12
#define CONV3_BIAS_LSHIFT 2
#define CONV3_OUT_RSHIFT 10
#define IP1_BIAS_LSHIFT 0
#define IP1_OUT_RSHIFT 8
