soc/cores/bitbang: fix missing self.comb on miso.
authorFlorent Kermarrec <florent@enjoy-digital.fr>
Tue, 25 Feb 2020 14:56:27 +0000 (15:56 +0100)
committerFlorent Kermarrec <florent@enjoy-digital.fr>
Tue, 25 Feb 2020 14:57:14 +0000 (15:57 +0100)
litex/soc/cores/bitbang.py

index ba153147605a205c3a80d0626ec7b626d70948bd..d2f62fa886feba76e36a3ebe844310d2577d7cbc 100644 (file)
@@ -86,5 +86,5 @@ class SPIMaster(Module, AutoCSR):
             self._r.fields.mosi.eq(_mosi_r),
         ]
         if hasattr(pads, "miso"):
-            self._r.fields.miso.eq(pads.miso)
+            self.comb += self._r.fields.miso.eq(pads.miso)
         self.specials += Tristate(pads.mosi, _mosi_w, _mosi_oe, _mosi_r)