diff --git a/misoclib/mem/flash/spiflash.py b/misoclib/mem/flash/spiflash.py index f842bfdf2..1e099a75e 100644 --- a/misoclib/mem/flash/spiflash.py +++ b/misoclib/mem/flash/spiflash.py @@ -85,7 +85,7 @@ class SpiFlash(Module, AutoCSR): dq.oe.eq(1) ), If(self.bitbang.storage[1], - self.miso.status.eq(dq.i[-1]) + self.miso.status.eq(dq.i[1]) ) ]