From 1145a193dd3dab23264c591127bfced8233f399a Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Fri, 4 Nov 2016 18:36:43 +0800 Subject: [PATCH] drtio: fix ack of echo and set_time requests --- artiq/gateware/drtio/rt_packets.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/artiq/gateware/drtio/rt_packets.py b/artiq/gateware/drtio/rt_packets.py index 183bc913f..648c9919f 100644 --- a/artiq/gateware/drtio/rt_packets.py +++ b/artiq/gateware/drtio/rt_packets.py @@ -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