aboutsummaryrefslogtreecommitdiffstats
path: root/host
diff options
context:
space:
mode:
authormichael-west <michael.west@ettus.com>2022-03-07 09:47:05 -0800
committerAaron Rossetto <aaron.rossetto@ni.com>2022-04-05 13:18:09 -0700
commit8daa80c05f8006697aea05fea4ac5cd4dabbaef1 (patch)
treeffd0b6e4ae3783966f18eb0cd5d6709724ce5c80 /host
parent7bdc3342ca670f51ce9e087c4d3d4cdd67cc65c2 (diff)
downloaduhd-8daa80c05f8006697aea05fea4ac5cd4dabbaef1.tar.gz
uhd-8daa80c05f8006697aea05fea4ac5cd4dabbaef1.tar.bz2
uhd-8daa80c05f8006697aea05fea4ac5cd4dabbaef1.zip
rfnoc: Fix test_timed_commands for RFNoC devices
- Added command time to readback of time from Radio block. - Added wait for time to readback of shared registers in Radio block. Signed-off-by: michael-west <michael.west@ettus.com>
Diffstat (limited to 'host')
-rw-r--r--host/lib/rfnoc/radio_control_impl.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/host/lib/rfnoc/radio_control_impl.cpp b/host/lib/rfnoc/radio_control_impl.cpp
index 6ca8419d0..0ea24fc60 100644
--- a/host/lib/rfnoc/radio_control_impl.cpp
+++ b/host/lib/rfnoc/radio_control_impl.cpp
@@ -314,7 +314,9 @@ uint64_t radio_control_impl::get_ticks_now()
if (_fpga_compat < 1) {
return get_mb_controller()->get_timekeeper(0)->get_ticks_now();
}
- return regs().peek64(regmap::REG_TIME_LO);
+ // Applying the command time here allows for testing of timed commands,
+ // but all register accesses should use the command time by default.
+ return regs().peek64(regmap::REG_TIME_LO, get_command_time(0));
}
uhd::time_spec_t radio_control_impl::get_time_now()