aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/rfnoc/window_block_control.cpp
diff options
context:
space:
mode:
authorJonathon Pendlum <jonathon.pendlum@ettus.com>2022-02-11 00:53:06 -0500
committerAaron Rossetto <aaron.rossetto@ni.com>2022-03-02 14:52:46 -0600
commit60ca903776c5e6c676a52551f45a8a09d2dfe374 (patch)
tree5fc02ef4a003f77c7ec6bbc5f17c67463cd96819 /host/lib/rfnoc/window_block_control.cpp
parenta630a36bb935dd66cb95a38c63df76a4477c4688 (diff)
downloaduhd-60ca903776c5e6c676a52551f45a8a09d2dfe374.tar.gz
uhd-60ca903776c5e6c676a52551f45a8a09d2dfe374.tar.bz2
uhd-60ca903776c5e6c676a52551f45a8a09d2dfe374.zip
rfnoc: window: Set window size register after loading coefficients
Diffstat (limited to 'host/lib/rfnoc/window_block_control.cpp')
-rw-r--r--host/lib/rfnoc/window_block_control.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/host/lib/rfnoc/window_block_control.cpp b/host/lib/rfnoc/window_block_control.cpp
index 9acb963d0..ad6eb466c 100644
--- a/host/lib/rfnoc/window_block_control.cpp
+++ b/host/lib/rfnoc/window_block_control.cpp
@@ -118,6 +118,10 @@ private:
_window_reg_iface.poke32(REG_WINDOW_LOAD_COEFF_LAST_OFFSET,
static_cast<uint32_t>(_coeffs.at(chan).at(num_coeffs - 1)),
chan);
+ // Set window size
+ _window_reg_iface.poke32(REG_WINDOW_LEN_OFFSET,
+ static_cast<uint32_t>(num_coeffs),
+ chan);
}
//! Maximum length of window