Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Embedded Acceleration
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Vipin Thomas
Embedded Acceleration
Commits
41bf5e49
Commit
41bf5e49
authored
3 years ago
by
Vipin Thomas
Browse files
Options
Downloads
Patches
Plain Diff
Update pixel.hpp
parent
e4554756
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Testbench/pixel.hpp
+18
-11
18 additions, 11 deletions
Testbench/pixel.hpp
with
18 additions
and
11 deletions
Testbench/pixel.hpp
+
18
−
11
View file @
41bf5e49
#include
<stdio.h>
#include
<stdlib.h>
#include
<math.h>
#include
<string.h>
#include
<math.h>
#include
<hls_stream.h>
#include
<ap_axi_sdata.h>
//#include <string.h>
//#include <array>
//const auto N = 1<<2; // array size
//using vec_t = std::array<char, N>;
using
namespace
std
;
typedef
ap_axis
<
32
,
0
,
0
,
0
>
pkt_t
;
typedef
ap_axis
<
32
,
1
,
1
,
1
>
pkt_t
;
typedef
hls
::
stream
<
pkt_t
>
stream
;
void
pixel
(
ap_int
<
32
>
selector
,
ap_int
<
32
>
position1
,
ap_int
<
32
>
position2
,
ap_int
<
32
>
stream_count
,
ap_int
<
32
>
ascii
,
stream
&
din
,
stream
&
dout
);
void
pixel
(
ap_int
<
32
>
&
in_decimal
,
ap_int
<
32
>
selector
,
ap_int
<
32
>
position1
,
ap_int
<
32
>
position2
,
hls
::
stream
<
pkt_t
>
&
din
,
hls
::
stream
<
pkt_t
>
&
dout
);
long
long
convert
(
int
n
);
int
convertBinInt
(
long
long
n
);
void
decrypt
(
int
data
);
int
getDecimal
(
int
n
);
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment