From 84c84971ca43c3aa0e0178f5f96003c4285da6fb Mon Sep 17 00:00:00 2001 From: Vipin Thomas <vipin.thomas@stud.th-deg.de> Date: Tue, 22 Jun 2021 23:05:25 +0000 Subject: [PATCH] Update pixel.hpp, pixel_original.cpp files --- pixel.hpp | 14 ++++++++++++++ pixel_original.cpp | 17 +---------------- 2 files changed, 15 insertions(+), 16 deletions(-) diff --git a/pixel.hpp b/pixel.hpp index 8b13789..2b74122 100644 --- a/pixel.hpp +++ b/pixel.hpp @@ -1 +1,15 @@ +#include <stdio.h> +#include<math.h> +#include <string.h> +using namespace std; + +typedef ap_axis<32,0,0,0> pkt_t; +static int count_streams = 0; +static long long charIn=0; +static long long final_char=0; +int addNum=0; + +long long convert(int n); +int convertBinInt(long long n); +void decrypt(int data); diff --git a/pixel_original.cpp b/pixel_original.cpp index 2733742..0a8a89b 100644 --- a/pixel_original.cpp +++ b/pixel_original.cpp @@ -1,21 +1,6 @@ -#include <stdio.h> + #include <hls_stream.h> #include <ap_axi_sdata.h> -#include<math.h> -#include <string.h> - -using namespace std; - -typedef ap_axis<32,0,0,0> pkt_t; -static int count_streams = 0; -static long long charIn=0; -static long long final_char=0; -int addNum=0; - -long long convert(int n); -int convertBinInt(long long n); -void decrypt(int data); - void pixel(ap_int<32> selector, ap_int<32> position1, -- GitLab