drtio: clear underflow and sequence error on reset

This commit is contained in:
Sebastien Bourdeauducq 2016-12-12 17:39:14 +08:00
parent 7196bc21c1
commit 8f747fa209
1 changed files with 4 additions and 0 deletions

View File

@ -105,6 +105,10 @@ class RTController(Module):
If(self.cri.cmd == cri.commands["o_sequence_error_reset"], status_sequence_error.eq(0)), If(self.cri.cmd == cri.commands["o_sequence_error_reset"], status_sequence_error.eq(0)),
If(underflow_set, status_underflow.eq(1)), If(underflow_set, status_underflow.eq(1)),
If(sequence_error_set, status_sequence_error.eq(1)), If(sequence_error_set, status_sequence_error.eq(1)),
If(self.csrs.reset.re,
status_underflow.eq(0),
status_sequence_error.eq(0)
)
] ]
signal_fifo_space_timeout = Signal() signal_fifo_space_timeout = Signal()