Files
light-petal-recognition/hls_cnn/src/tiny_cnn_accel.h
T

27 lines
492 B
C

#ifndef TINY_CNN_ACCEL_H
#define TINY_CNN_ACCEL_H
#include <ap_axi_sdata.h>
#include <ap_fixed.h>
#include <hls_stream.h>
#define IMG_SIZE 64
#define NUM_CLASSES 10
#define C1 8
#define C2 16
#define C3 32
#define P1_SIZE 32
#define P2_SIZE 16
#define P3_SIZE 8
typedef ap_axiu<32, 0, 0, 0> axis_word_t;
typedef ap_fixed<16, 6> data_t;
typedef ap_fixed<32, 12> acc_t;
void tiny_cnn_accel(
hls::stream<axis_word_t> &input_stream,
hls::stream<axis_word_t> &output_stream
);
#endif