forked from M-Labs/artiq
1
0
Fork 0

repeater: fix setting tsc

This commit is contained in:
mwojcik 2023-12-01 16:34:33 +08:00 committed by Sébastien Bourdeauducq
parent 1108cebd75
commit 9f4b8db2de
1 changed files with 3 additions and 4 deletions

View File

@ -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),