Skip to content
Snippets Groups Projects
Commit 460402f0 authored by Georg Streich's avatar Georg Streich
Browse files

Move start_call

parent 45856d24
Branches accl
No related tags found
No related merge requests found
...@@ -46,16 +46,6 @@ void accl_out( ...@@ -46,16 +46,6 @@ void accl_out(
ap_uint<accl_width> accl_word; ap_uint<accl_width> accl_word;
ap_uint<stream_width> stream_word; ap_uint<stream_width> stream_word;
// Currently the hls driver does not allow us to make an async call, so we have to do
// it manually.
accl.start_call(
ACCL_SEND, num_transfer_bits / 32,
comm_adr, dest_rank, 0, data_from_cclo_id,
dpcfg_adr, cflags, sflags | 0x2,
0, 0, 0
);
send: for (int i = 0; i < num_bits - step + 1; i += step) { send: for (int i = 0; i < num_bits - step + 1; i += step) {
if (i % stream_width == 0) { if (i % stream_width == 0) {
stream_word = in.read(); stream_word = in.read();
...@@ -75,6 +65,14 @@ void accl_out( ...@@ -75,6 +65,14 @@ void accl_out(
data.push(accl_word, 0); data.push(accl_word, 0);
} }
// Currently the hls driver does not allow us to make an async call, so we have to do
// it manually.
accl.start_call(
ACCL_SEND, num_transfer_bits / 32,
comm_adr, dest_rank, 0, data_from_cclo_id,
dpcfg_adr, cflags, sflags | 0x2,
0, 0, 0
);
#ifdef CPPSIM #ifdef CPPSIM
std::cerr << "accl_out waiting on ack" << std::endl; std::cerr << "accl_out waiting on ack" << std::endl;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment