forked from M-Labs/artiq
1
0
Fork 0

rtio: use same reset for counter_rtio whatever the interface delay is

This commit is contained in:
Sebastien Bourdeauducq 2016-12-15 09:28:13 +08:00
parent 15b48be6e4
commit 6b998581cc
1 changed files with 4 additions and 4 deletions

View File

@ -162,7 +162,7 @@ class _OutputManager(Module):
# latency compensation
if interface.delay:
counter_rtio = Signal.like(counter.value_rtio)
self.sync.rio += counter_rtio.eq(counter.value_rtio -
self.sync.rtio += counter_rtio.eq(counter.value_rtio -
interface.delay + 1)
else:
counter_rtio = counter.value_rtio
@ -221,7 +221,7 @@ class _InputManager(Module):
# latency compensation
if interface.delay:
counter_rtio = Signal.like(counter.value_rtio)
self.sync.rio += counter_rtio.eq(counter.value_rtio -
self.sync.rtio += counter_rtio.eq(counter.value_rtio -
interface.delay + 1)
else:
counter_rtio = counter.value_rtio