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

---
 pixel.cpp | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/pixel.cpp b/pixel.cpp
index c62ab38..38ccd2c 100644
--- a/pixel.cpp
+++ b/pixel.cpp
@@ -27,7 +27,6 @@ void pixel(ap_int<32> &in_decimal,
         ap_int<32> selector,
 		ap_int<32> position1,
 		ap_int<32> position2,
-		ap_int<32> stream_count,
 		hls::stream< pkt_t > &din,
 		hls::stream< pkt_t > &dout
 ) {
@@ -36,7 +35,6 @@ void pixel(ap_int<32> &in_decimal,
     #pragma HLS INTERFACE s_axilite port=selector
 	#pragma HLS INTERFACE s_axilite port=position1
 	#pragma HLS INTERFACE s_axilite port=position2
-	#pragma HLS INTERFACE s_axilite port=stream_count
 	#pragma HLS INTERFACE axis port=din
 	#pragma HLS INTERFACE axis port=dout
 
@@ -104,7 +102,7 @@ void pixel(ap_int<32> &in_decimal,
 	
 	count_streams++;
 
-	if (count_streams == stream_count){
+	if (count_streams == position2-1){
 		count_streams = 0;
         charIn=0;
         addNum=0;
-- 
GitLab