From b677c69faf9e2dd4adcc3039ff85752217e9c350 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Mon, 5 Dec 2016 17:59:23 +0800 Subject: [PATCH] rtio: fix handling of o_status in DMA --- artiq/gateware/rtio/dma.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/artiq/gateware/rtio/dma.py b/artiq/gateware/rtio/dma.py index 7ca210bcb..fbff7005f 100644 --- a/artiq/gateware/rtio/dma.py +++ b/artiq/gateware/rtio/dma.py @@ -309,7 +309,7 @@ class CRIMaster(Module, AutoCSR): ) fsm.act("CHECK_STATE", self.busy.eq(1), - If(~self.cri.o_status, + If(self.cri.o_status == 0, self.sink.ack.eq(1), NextState("IDLE") ),