From 5d5d5edfe223cb0e6a295eed1bf99438750ce5ad Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Wed, 6 May 2015 00:05:25 +0800 Subject: [PATCH] spiflash: fix miso bitbang with large DQ --- misoclib/mem/flash/spiflash.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/misoclib/mem/flash/spiflash.py b/misoclib/mem/flash/spiflash.py index f842bfdf..1e099a75 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]) ) ] -- 2.30.2