forked from M-Labs/artiq
1
0
Fork 0

drtio: fix satellite i_status handling

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

View File

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