2
0
mirror of https://github.com/m-labs/artiq.git synced 2024-12-25 03:08:27 +08:00

rtio: simplify error reset logic

Channel is always selected when reset is issued.
This commit is contained in:
Sebastien Bourdeauducq 2016-12-12 17:35:10 +08:00
parent 1c74249638
commit 7196bc21c1

View File

@ -336,13 +336,13 @@ class Core(Module, AutoCSR):
collision = Signal()
busy = Signal()
self.sync.rsys += [
If(selected & (self.cri.cmd == cri.commands["o_underflow_reset"]),
If(self.cri.cmd == cri.commands["o_underflow_reset"],
underflow.eq(0)),
If(selected & (self.cri.cmd == cri.commands["o_sequence_error_reset"]),
If(self.cri.cmd == cri.commands["o_sequence_error_reset"],
sequence_error.eq(0)),
If(selected & (self.cri.cmd == cri.commands["o_collision_reset"]),
If(self.cri.cmd == cri.commands["o_collision_reset"],
collision.eq(0)),
If(selected & (self.cri.cmd == cri.commands["o_busy_reset"]),
If(self.cri.cmd == cri.commands["o_busy_reset"],
busy.eq(0)),
If(o_manager.underflow, underflow.eq(1)),
If(o_manager.sequence_error, sequence_error.eq(1)),