rtio/sed/LaneDistributor: persist underflow/sequence error until next write

This commit is contained in:
Sebastien Bourdeauducq 2017-09-16 10:51:44 +08:00
parent 3c922463a0
commit 1cb05f3ed5
1 changed files with 10 additions and 2 deletions

View File

@ -102,8 +102,16 @@ class LaneDistributor(Module):
o_status_wait.eq(~current_lane_writable)
]
self.sync += [
o_status_underflow.eq(do_underflow),
o_status_sequence_error.eq(do_sequence_error)
If(self.cri.cmd == cri.commands["write"],
o_status_underflow.eq(0),
o_status_sequence_error.eq(0)
),
If(do_underflow,
o_status_underflow.eq(1)
),
If(do_sequence_error,
o_status_sequence_error.eq(1)
)
]
# current lane has been full, spread events by switching to the next.