aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib
diff options
context:
space:
mode:
authorWade Fife <wade.fife@ettus.com>2020-09-03 09:04:28 -0500
committerAaron Rossetto <aaron.rossetto@ni.com>2020-09-03 15:01:34 -0500
commit148a2c5ee69ad9c2576d4005b01c739de1261fe4 (patch)
tree007dc9a259ae3566310a443d5244a261adee20ab /host/lib
parent6024111d4b8b60d02c17d968aca4c767f4e07569 (diff)
downloaduhd-148a2c5ee69ad9c2576d4005b01c739de1261fe4.tar.gz
uhd-148a2c5ee69ad9c2576d4005b01c739de1261fe4.tar.bz2
uhd-148a2c5ee69ad9c2576d4005b01c739de1261fe4.zip
rfnoc: Set null source/sink block initial state
This gives the source generator some valid initial values in the Null Source/Sink RFNoC block.
Diffstat (limited to 'host/lib')
-rw-r--r--host/lib/rfnoc/null_block_control.cpp3
1 files changed, 3 insertions, 0 deletions
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();
}