From 9f4b8db2de7edc85caa7e564330835cf8898261c Mon Sep 17 00:00:00 2001 From: mwojcik Date: Fri, 1 Dec 2023 16:34:33 +0800 Subject: [PATCH] repeater: fix setting tsc --- artiq/gateware/drtio/rt_controller_repeater.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/artiq/gateware/drtio/rt_controller_repeater.py b/artiq/gateware/drtio/rt_controller_repeater.py index 53b2b1b07..79b9559eb 100644 --- a/artiq/gateware/drtio/rt_controller_repeater.py +++ b/artiq/gateware/drtio/rt_controller_repeater.py @@ -17,12 +17,11 @@ class RTController(Module, AutoCSR): self.sync += rt_packet.reset.eq(self.reset.storage) - set_time_stb = Signal() self.sync += [ - If(rt_packet.set_time_stb, set_time_stb.eq(0)), - If(self.set_time.re, set_time_stb.eq(1)) + If(rt_packet.set_time_ack, rt_packet.set_time_stb.eq(0)), + If(self.set_time.re, rt_packet.set_time_stb.eq(1)) ] - self.comb += self.set_time.w.eq(set_time_stb) + self.comb += self.set_time.w.eq(rt_packet.set_time_stb) errors = [ (rt_packet.err_unknown_packet_type, "rtio_rx", None, None),