Skip to content

Commit

Permalink
rtio: use same reset for counter_rtio whatever the interface delay is
Browse files Browse the repository at this point in the history
sbourdeauducq committed Dec 15, 2016
1 parent 15b48be commit 6b99858
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions artiq/gateware/rtio/core.py
Original file line number Diff line number Diff line change
@@ -162,8 +162,8 @@ def __init__(self, interface, counter, fifo_depth, guard_io_cycles):
# 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 @@ def __init__(self, interface, counter, fifo_depth):
# 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

0 comments on commit 6b99858

Please sign in to comment.