soc/cores/bitbang: fix missing self.comb on miso.

This commit is contained in:
Florent Kermarrec 2020-02-25 15:56:27 +01:00
parent a2d6986910
commit ee27a9e534
1 changed files with 1 additions and 1 deletions

View File

@ -86,5 +86,5 @@ class SPIMaster(Module, AutoCSR):
self._r.fields.mosi.eq(_mosi_r), self._r.fields.mosi.eq(_mosi_r),
] ]
if hasattr(pads, "miso"): 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) self.specials += Tristate(pads.mosi, _mosi_w, _mosi_oe, _mosi_r)