spiflash: fix miso bitbang with large DQ

This commit is contained in:
Sebastien Bourdeauducq 2015-05-06 00:05:25 +08:00
parent 553262bcc1
commit 5d5d5edfe2

View file

@ -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])
)
]