mirror of
https://github.com/m-labs/artiq.git
synced 2024-12-25 11:18:27 +08:00
drtio: fix ack of echo and set_time requests
This commit is contained in:
parent
3da1cce783
commit
1145a193dd
@ -510,12 +510,18 @@ class RTPacketMaster(Module):
|
||||
tx_fsm.act("ECHO",
|
||||
tx_dp.send("echo_request"),
|
||||
tx_dp.stb.eq(1),
|
||||
If(tx_dp.done, NextState("IDLE_WRITE"))
|
||||
If(tx_dp.done,
|
||||
echo_ack.eq(1),
|
||||
NextState("IDLE_WRITE")
|
||||
)
|
||||
)
|
||||
tx_fsm.act("SET_TIME",
|
||||
tx_dp.send("set_time", timestamp=tsc_value),
|
||||
tx_dp.stb.eq(1),
|
||||
If(tx_dp.done, NextState("IDLE_WRITE"))
|
||||
If(tx_dp.done,
|
||||
set_time_ack.eq(1),
|
||||
NextState("IDLE_WRITE")
|
||||
)
|
||||
)
|
||||
|
||||
# RX FSM
|
||||
|
Loading…
Reference in New Issue
Block a user