Skip to content

Commit

Permalink
rtio/core: fix syntax
Browse files Browse the repository at this point in the history
jordens committed Mar 9, 2016
1 parent 03b53c3 commit 3f8e431
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions artiq/gateware/rtio/core.py
Original file line number Diff line number Diff line change
@@ -133,11 +133,10 @@ def __init__(self, interface, counter, fifo_depth, guard_io_cycles):
# Note: replace may be asserted at the same time as collision
# when addresses are different. In that case, it is a collision.
self.sync.rsys += replace.eq(self.ev.timestamp == buf.timestamp)
self.sync.rsys += \
# Detect sequence errors on coarse timestamps only
# so that they are mutually exclusive with collision errors.
sequence_error.eq(self.ev.timestamp[fine_ts_width:]
< buf.timestamp[fine_ts_width:])
self.sync.rsys += sequence_error.eq(self.ev.timestamp[fine_ts_width:] <
buf.timestamp[fine_ts_width:])
if interface.enable_replace:
if hasattr(self.ev, "a"):
different_addresses = self.ev.a != buf.a

0 comments on commit 3f8e431

Please sign in to comment.