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
1743beb5
Commit
1743beb5
authored
3 years ago
by
Vipin Thomas
Browse files
Options
Downloads
Patches
Plain Diff
Update pixel.cpp
parent
3157d5e4
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
pixel.cpp
+8
-3
8 additions, 3 deletions
pixel.cpp
with
8 additions
and
3 deletions
pixel.cpp
+
8
−
3
View file @
1743beb5
...
...
@@ -6,6 +6,11 @@
using
namespace
std
;
const
auto
N
=
1
<<
2
;
// array size
using
vec_t
=
std
::
array
<
char
,
N
>
;
typedef
ap_axis
<
32
,
0
,
0
,
0
>
pkt_t
;
static
int
count_streams
=
0
;
static
long
long
charIn
=
0
;
...
...
@@ -18,7 +23,7 @@ void decrypt(int data);
// void toAscii(char *c);
void
pixel
(
char
key
[
16
]
,
void
pixel
(
vec_t
&
xs
,
ap_int
<
32
>
selector
,
ap_int
<
32
>
position1
,
ap_int
<
32
>
position2
,
...
...
@@ -29,7 +34,7 @@ void pixel(char key[16],
hls
::
stream
<
pkt_t
>
&
dout
)
{
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=
key
#pragma HLS INTERFACE s_axilite port=
xs
#pragma HLS INTERFACE s_axilite port=selector
#pragma HLS INTERFACE s_axilite port=position1
#pragma HLS INTERFACE s_axilite port=position2
...
...
@@ -41,7 +46,7 @@ void pixel(char key[16],
pkt_t
pkt
=
din
.
read
();
keyout
=
(
int
)
key
[
0
];
keyout
=
(
int
)
xs
[
0
];
switch
(
selector
)
{
...
...
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