Skip to content

Commit

Permalink
gpio/GPIOTristate: workaround migen slice corner case
Browse files Browse the repository at this point in the history
sbourdeauducq committed Mar 3, 2016
1 parent 8984a7b commit 3ac69f3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion misoc/cores/gpio.py
Original file line number Diff line number Diff line change
@@ -27,7 +27,10 @@ def __init__(self, signals):
ts = TSTriple(1)
self.specials += ts.get_tristate(signal)

self.specials += MultiReg(ts.i, self._in.status[n])
status = Signal()
self.comb += self._in.status[n].eq(status)

self.specials += MultiReg(ts.i, status)
self.comb += [
ts.o.eq(self._out.storage[n]),
ts.oe.eq(self._oe.storage[n])

0 comments on commit 3ac69f3

Please sign in to comment.