Newer
Older
ap_int<32> a;
ap_int<32> selector,position1,position2,stream_count;
selector=0;
position1=1;
position2=8;
indecimal=72;
// for (auto& x: key) {
// x = 'a';
// std::cout << "Key: " << x << std::endl;
// }
pixel(indecimal,selector,position1,position2,streamIn,streamOut);
tmp = streamOut.read();
std::cout << "Output: " << tmp.data << std::endl;
if(selector==1){
std::cout << "Value decoded: " << indecimal << std::endl;
}
else if(selector==0){
std::cout << "Value encoded: " << indecimal << std::endl;
}