From 36d9da629590e2c24f363f19c886c91e2af1d9d4 Mon Sep 17 00:00:00 2001
From: Vipin Thomas <vipin.thomas@stud.th-deg.de>
Date: Fri, 18 Jun 2021 22:35:37 +0000
Subject: [PATCH] Update pixel.cpp

---
 pixel.cpp | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/pixel.cpp b/pixel.cpp
index 07197bb..f90c9cf 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
-- 
GitLab