diff --git a/pixel.cpp b/pixel.cpp index 07197bb8480195e1c06983d2bd4f7209240c5a94..f90c9cfa576de4c46cb685da21cb6f8ce6de253e 100644 --- a/pixel.cpp +++ b/pixel.cpp @@ -2,6 +2,7 @@ #include <hls_stream.h> #include <ap_axi_sdata.h> #include<math.h> +#include <string.h> using namespace std; @@ -15,7 +16,7 @@ long long convert(int n); int convertBinInt(long long n); -void pixel( +void pixel(char key[16], ap_int<32> position1, ap_int<32> position2, ap_int<32> stream_count, @@ -24,6 +25,7 @@ void pixel( hls::stream< pkt_t > &dout ) { #pragma HLS INTERFACE ap_ctrl_none port=return + #pragma HLS INTERFACE s_axilite port=key #pragma HLS INTERFACE s_axilite port=position1 #pragma HLS INTERFACE s_axilite port=position2 #pragma HLS INTERFACE s_axilite port=stream_count