From cda20ab2ed19f2d274ca165fcd65ce95fb24a151 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"), ) )