mirror of
https://github.com/m-labs/artiq.git
synced 2024-12-18 16:06:30 +08:00
rtio: fix replace/sequence_error when fine_ts_width > 0
This commit is contained in:
parent
959b7a7b46
commit
b1d58bd4c8
@ -118,8 +118,10 @@ class _OutputManager(Module):
|
|||||||
sequence_error = Signal()
|
sequence_error = Signal()
|
||||||
nop = Signal()
|
nop = Signal()
|
||||||
self.sync.rsys += [
|
self.sync.rsys += [
|
||||||
replace.eq(self.ev.timestamp == buf.timestamp[fine_ts_width:]),
|
replace.eq(self.ev.timestamp[fine_ts_width:] \
|
||||||
sequence_error.eq(self.ev.timestamp < buf.timestamp[fine_ts_width:])
|
== buf.timestamp[fine_ts_width:]),
|
||||||
|
sequence_error.eq(self.ev.timestamp[fine_ts_width:] \
|
||||||
|
< buf.timestamp[fine_ts_width:])
|
||||||
]
|
]
|
||||||
if interface.suppress_nop:
|
if interface.suppress_nop:
|
||||||
# disable NOP at reset: do not suppress a first write with all 0s
|
# disable NOP at reset: do not suppress a first write with all 0s
|
||||||
|
Loading…
Reference in New Issue
Block a user