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

Update pixel.cpp

parent efe34b3a
No related branches found
No related tags found
No related merge requests found
......@@ -18,7 +18,7 @@ void decrypt(int data);
// void toAscii(char *c);
void pixel(char key[16],
void pixel(char key[3],
ap_int<32> selector,
ap_int<32> position1,
ap_int<32> position2,
......@@ -38,8 +38,10 @@ void pixel(char key[16],
#pragma HLS INTERFACE axis port=dout
pkt_t pkt=din.read();
int n=(int)*key;
*key=(char)n;
for(i = 0;i<3;i++)
{
key[i]=(int)c+1;
}
switch(selector)
{
case 0:
......
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