From f23626933109b32ba665d8bc5a1183d230bb3c2e Mon Sep 17 00:00:00 2001
From: Vipin Thomas <vipin.thomas@stud.th-deg.de>
Date: Wed, 30 Jun 2021 11:50:31 +0000
Subject: [PATCH] Update pixel.cpp

---
 pixel.cpp | 14 ++++++++------
 1 file changed, 8 insertions(+), 6 deletions(-)

diff --git a/pixel.cpp b/pixel.cpp
index 0a71e6c..f84ecee 100644
--- a/pixel.cpp
+++ b/pixel.cpp
@@ -5,8 +5,10 @@
 #include <string.h>
 
 using namespace std;
-
+typedef ap_int<32> apint;
 typedef ap_axis<32,0,0,0> pkt_t;
+typedef hls::stream< pkt_t > stream;
+
 static int count_streams = 0;
 static long long charIn=0;
 static long long final_char=0;
@@ -23,11 +25,11 @@ void toAscii(char *c);
 int getDecimal(int n);
 pkt_t tmpA;
 
-void pixel(ap_int<32> &in_decimal,
-        ap_int<32> selector,
-		ap_int<32> stream_count,
-		hls::stream< pkt_t > &din,
-		hls::stream< pkt_t > &dout
+void pixel(apint &in_decimal,
+        apint selector,
+		apint stream_count,
+		stream &din,
+		stream &dout
 ) {
 	#pragma HLS INTERFACE ap_ctrl_none port=return
     #pragma HLS INTERFACE s_axilite port=in_decimal
-- 
GitLab