forked from M-Labs/artiq
1
0
Fork 0

drtio: fix link_layer remote RX ready detection

This commit is contained in:
Sebastien Bourdeauducq 2016-11-03 20:15:04 +08:00
parent 1d027ffa95
commit 6a75837261
1 changed files with 1 additions and 1 deletions

View File

@ -202,7 +202,7 @@ class LinkLayerRX(Module):
).Elif(decoders[0].d != K(28, 7), ).Elif(decoders[0].d != K(28, 7),
self.remote_rx_ready.eq(0) self.remote_rx_ready.eq(0)
), ),
If(decoders[0].d == K(30, 7), If(decoders[1].d == K(30, 7),
self.remote_rx_ready.eq(1) self.remote_rx_ready.eq(1)
) if len(decoders) > 1 else None ) if len(decoders) > 1 else None
).Else( ).Else(