From 71921de5bde602b7e65f4a79dffda6a60f3ffe84 Mon Sep 17 00:00:00 2001 From: Robert Jordens Date: Mon, 4 Jul 2016 12:22:47 +0200 Subject: [PATCH] spi: do not shift when starting a xfer, closes #495 --- artiq/gateware/spi.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/artiq/gateware/spi.py b/artiq/gateware/spi.py index e476adbb9..b62782fbf 100644 --- a/artiq/gateware/spi.py +++ b/artiq/gateware/spi.py @@ -125,7 +125,7 @@ class SPIMachine(Module): NextState("WAIT"), ) ).Else( - self.reg.shift.eq(1), + self.reg.shift.eq(~self.start), NextState("SETUP"), ) )