From af28bf355061d8dd4b51f4e6903160779d45bb14 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20J=C3=B6rdens?= Date: Thu, 8 Sep 2022 08:39:48 +0200 Subject: [PATCH] simplify dt reset --- artiq/gateware/rtio/phy/phaser.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/artiq/gateware/rtio/phy/phaser.py b/artiq/gateware/rtio/phy/phaser.py index d4658e828..3c19d8956 100644 --- a/artiq/gateware/rtio/phy/phaser.py +++ b/artiq/gateware/rtio/phy/phaser.py @@ -111,11 +111,11 @@ class MiqroChannel(Module): dt.eq(dt + 2), ), If(self.ack, - dt.eq(0), + dt[1:].eq(0), + stb.eq(0), If(stb, [r.eq(0) for r in regs], ), - stb.eq(0), ), If(self.rtlink.o.stb, Array(regs)[self.rtlink.o.address].eq(self.rtlink.o.data),