diff --git a/pixel.cpp b/pixel.cpp index 0a22494feb11eb2ed5fe212855db93ec92361222..3dc95b3d19447ed3d530b988ac7991cb46c5756a 100644 --- a/pixel.cpp +++ b/pixel.cpp @@ -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: