Skip to content
Snippets Groups Projects
Commit 48154330 authored by Majd Hafiri's avatar Majd Hafiri
Browse files

Update pixel.cpp

parent c8eb9d5b
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment