Skip to content
Snippets Groups Projects
Commit 2eb4b3ea authored by Vipin Thomas's avatar Vipin Thomas
Browse files

Update pixel.cpp

parent 24ce0c58
No related branches found
No related tags found
No related merge requests found
......@@ -6,6 +6,7 @@ using namespace std;
typedef ap_axis<32,0,0,0> pkt_t;
static int counter = 0;
static bool flag=false;
void pixel(
......@@ -23,10 +24,11 @@ void pixel(
if(counter==w){
pkt.data*=2;
flag=true;
counter=0;
}
else{
else if(!flag){
counter++;
}
// pending: have to make count=0 when TLAST signal is active - for w not in the range of 0 to n(size of the array)
......
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