From 6b998581ccc3170530c0d54cd7e69e9cecf25482 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Thu, 15 Dec 2016 09:28:13 +0800 Subject: [PATCH] rtio: use same reset for counter_rtio whatever the interface delay is --- artiq/gateware/rtio/core.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/artiq/gateware/rtio/core.py b/artiq/gateware/rtio/core.py index 47cefdd8a..875f61003 100644 --- a/artiq/gateware/rtio/core.py +++ b/artiq/gateware/rtio/core.py @@ -162,8 +162,8 @@ class _OutputManager(Module): # latency compensation if interface.delay: counter_rtio = Signal.like(counter.value_rtio) - self.sync.rio += counter_rtio.eq(counter.value_rtio - - interface.delay + 1) + self.sync.rtio += counter_rtio.eq(counter.value_rtio - + interface.delay + 1) else: counter_rtio = counter.value_rtio @@ -221,8 +221,8 @@ class _InputManager(Module): # latency compensation if interface.delay: counter_rtio = Signal.like(counter.value_rtio) - self.sync.rio += counter_rtio.eq(counter.value_rtio - - interface.delay + 1) + self.sync.rtio += counter_rtio.eq(counter.value_rtio - + interface.delay + 1) else: counter_rtio = counter.value_rtio