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

Add simple pixel manipulation

parent 31ed1e36
No related branches found
No related tags found
No related merge requests found
#include <iostream>
#include <hls_stream.h>
#include <ap_axi_sdata.h>
using namespace std;
typedef ap_axis<24,0,0,0> pkt_t;
void pixel(
hls::stream< pkt_t > &din,
hls::stream< pkt_t > &dout,
) {
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE axis port=din
#pragma HLS INTERFACE axis port=dout
pkt_t pkt;
din.read(pkt);
for(int i=0; i<=2; i++){
pkt.data[i] = 255;
}
dout.write(pkt);
}
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