Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Andrei Tosa
RandomGen
Commits
0790bc09
Commit
0790bc09
authored
Aug 06, 2020
by
Andrei Tosa
Browse files
Separated functions in cont.cpp
parent
9345165e
Changes
1
Hide whitespace changes
Inline
Side-by-side
src_stream/src/cont.cpp
View file @
0790bc09
#include
"cont.hpp"
void
copy_to_output
(
stream
<
unsigned
>
&
str
,
unsigned
*
out
,
unsigned
count
)
{
for
(
int
i
=
0
;
i
<
count
;
i
++
)
str
>>
out
[
i
];
}
void
cont
(
const
unsigned
seed
,
const
unsigned
count
,
unsigned
*
out
)
{
#pragma HLS INTERFACE m_axi port=out offset=slave bundle=gmem
...
...
@@ -15,6 +20,5 @@ void cont(const unsigned seed, const unsigned count, unsigned *out) {
rndgen
(
seed
,
count
,
rndout
);
for
(
int
i
=
0
;
i
<
count
;
i
++
)
rndout
>>
out
[
i
];
copy_to_output
(
rndout
,
out
,
count
);
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment