From 4815433067140289d317e5c968041705b764095e Mon Sep 17 00:00:00 2001 From: Majd Hafiri <majd.hafiri@stud.th-deg.de> Date: Thu, 3 Jun 2021 23:33:50 +0000 Subject: [PATCH] Update pixel.cpp --- pixel.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pixel.cpp b/pixel.cpp index 30dcaf5..376cde2 100644 --- a/pixel.cpp +++ b/pixel.cpp @@ -9,8 +9,8 @@ typedef ap_axis<32,0,0,0> pkt_t; void pixel( - ap_int<32> w, - ap_int<32> len, + ap_int<32> &w, + ap_int<32> &len, hls::stream< pkt_t > &din, hls::stream< pkt_t > &dout ) { @@ -23,10 +23,10 @@ void pixel( pkt_t pkt; din.read(pkt); - if(pkt.data){ + // if(pkt.data){ - len=len+1; - } + len++; + // } if(len==w){ pkt.data*=2; -- GitLab