From 56fd9b3b4bdf5db30b5df917e829d1ef01ed22a2 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Tue, 14 Mar 2017 14:14:43 +0800 Subject: [PATCH] drtio: input fixes --- artiq/gateware/drtio/rt_controller_master.py | 2 ++ artiq/gateware/drtio/rt_ios_satellite.py | 2 ++ 2 files changed, 4 insertions(+) diff --git a/artiq/gateware/drtio/rt_controller_master.py b/artiq/gateware/drtio/rt_controller_master.py index d9186a498..e8cd241ca 100644 --- a/artiq/gateware/drtio/rt_controller_master.py +++ b/artiq/gateware/drtio/rt_controller_master.py @@ -230,6 +230,7 @@ class RTController(Module): ) fsm.act("READ", i_status_wait_status.eq(1), + rt_packet.read_not_ack.eq(1), rt_packet_read_request.eq(1), rt_packet.sr_stb.eq(1), If(rt_packet.sr_ack, @@ -238,6 +239,7 @@ class RTController(Module): ) fsm.act("GET_READ_REPLY", i_status_wait_status.eq(1), + rt_packet.read_not_ack.eq(1), If(rt_packet.read_not, load_read_reply.eq(1), NextState("IDLE") diff --git a/artiq/gateware/drtio/rt_ios_satellite.py b/artiq/gateware/drtio/rt_ios_satellite.py index 71d430f95..55a0652e1 100644 --- a/artiq/gateware/drtio/rt_ios_satellite.py +++ b/artiq/gateware/drtio/rt_ios_satellite.py @@ -106,6 +106,8 @@ class IOS(Module): self.sync.rio += interface.fine_ts.eq(fifo_out.timestamp[:fine_ts_width]) def add_input(self, n, channel): + rt_packet = self.rt_packet + interface = channel.interface.i if interface is None: return