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
f2362693
Commit
f2362693
authored
3 years ago
by
Vipin Thomas
Browse files
Options
Downloads
Patches
Plain Diff
Update pixel.cpp
parent
fc50dcb0
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
-6
8 additions, 6 deletions
pixel.cpp
with
8 additions
and
6 deletions
pixel.cpp
+
8
−
6
View file @
f2362693
...
...
@@ -5,8 +5,10 @@
#include
<string.h>
using
namespace
std
;
typedef
ap_int
<
32
>
apint
;
typedef
ap_axis
<
32
,
0
,
0
,
0
>
pkt_t
;
typedef
hls
::
stream
<
pkt_t
>
stream
;
static
int
count_streams
=
0
;
static
long
long
charIn
=
0
;
static
long
long
final_char
=
0
;
...
...
@@ -23,11 +25,11 @@ void toAscii(char *c);
int
getDecimal
(
int
n
);
pkt_t
tmpA
;
void
pixel
(
ap
_
int
<
32
>
&
in_decimal
,
ap
_
int
<
32
>
selector
,
ap
_
int
<
32
>
stream_count
,
hls
::
stream
<
pkt_t
>
&
din
,
hls
::
stream
<
pkt_t
>
&
dout
void
pixel
(
apint
&
in_decimal
,
apint
selector
,
apint
stream_count
,
stream
&
din
,
stream
&
dout
)
{
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=in_decimal
...
...
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