drtio: monitor received link_init

This commit is contained in:
Sebastien Bourdeauducq 2016-09-30 11:25:06 +08:00
parent cefb9e1405
commit 1e0c6d6d5d
1 changed files with 5 additions and 1 deletions

View File

@ -256,9 +256,13 @@ class LinkLayer(Module):
tx.link_init.eq(1), tx.link_init.eq(1),
tx.signal_rx_ready.eq(1), tx.signal_rx_ready.eq(1),
If(rx.remote_rx_ready, If(rx.remote_rx_ready,
NextState("READY") NextState("WAIT_REMOTE_LINK_UP")
) )
) )
fsm.act("WAIT_REMOTE_LINK_UP",
If(~rx.link_init, NextState("READY"))
)
fsm.act("READY", fsm.act("READY",
If(rx.link_init, NextState("RESET_RX")),
self.ready.eq(1) self.ready.eq(1)
) )