drtio: fix satellite i_status handling

This commit is contained in:
Sebastien Bourdeauducq 2018-09-19 17:50:18 +08:00
parent 3d965910f7
commit 08be176369
1 changed files with 2 additions and 2 deletions

View File

@ -201,8 +201,8 @@ class RTPacketSatellite(Module):
tx_fsm.act("IDLE",
If(echo_req, NextState("ECHO")),
If(buffer_space_req, NextState("BUFFER_SPACE")),
If(read_request_pending,
If(~self.cri.i_status[2], NextState("READ")),
If(read_request_pending & ~self.cri.i_status[2],
NextState("READ"),
If(self.cri.i_status[0], NextState("READ_TIMEOUT")),
If(self.cri.i_status[1], NextState("READ_OVERFLOW"))
)