Commit 0790bc09 authored by Andrei Tosa's avatar Andrei Tosa
Browse files

Separated functions in cont.cpp

parent 9345165e
#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);
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment