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
90e28ba8
Commit
90e28ba8
authored
3 years ago
by
Majd Hafiri
Browse files
Options
Downloads
Patches
Plain Diff
Add simple pixel manipulation
parent
31ed1e36
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_manipulation.cpp
+32
-0
32 additions, 0 deletions
pixel_manipulation.cpp
with
32 additions
and
0 deletions
pixel_manipulation.cpp
0 → 100644
+
32
−
0
View file @
90e28ba8
#include
<iostream>
#include
<hls_stream.h>
#include
<ap_axi_sdata.h>
using
namespace
std
;
typedef
ap_axis
<
24
,
0
,
0
,
0
>
pkt_t
;
void
pixel
(
hls
::
stream
<
pkt_t
>
&
din
,
hls
::
stream
<
pkt_t
>
&
dout
,
)
{
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE axis port=din
#pragma HLS INTERFACE axis port=dout
pkt_t
pkt
;
din
.
read
(
pkt
);
for
(
int
i
=
0
;
i
<=
2
;
i
++
){
pkt
.
data
[
i
]
=
255
;
}
dout
.
write
(
pkt
);
}
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