From 148a2c5ee69ad9c2576d4005b01c739de1261fe4 Mon Sep 17 00:00:00 2001 From: Wade Fife Date: Thu, 3 Sep 2020 09:04:28 -0500 Subject: rfnoc: Set null source/sink block initial state This gives the source generator some valid initial values in the Null Source/Sink RFNoC block. --- host/lib/rfnoc/null_block_control.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'host/lib') diff --git a/host/lib/rfnoc/null_block_control.cpp b/host/lib/rfnoc/null_block_control.cpp index 8a5ab56a5..4b2560ca5 100644 --- a/host/lib/rfnoc/null_block_control.cpp +++ b/host/lib/rfnoc/null_block_control.cpp @@ -44,6 +44,9 @@ public: _streaming = initial_state & 0x2; _nipc = (initial_state >> 24) & 0xFF; _item_width = (initial_state >> 16) & 0xFF; + // Give the source some reasonable values to start + set_bytes_per_packet(1024); + set_throttle_cycles(0); reset_counters(); register_issue_stream_cmd(); } -- cgit v1.2.3