Skip to content

Commit 3ac69f3

Browse files
committedMar 3, 2016
gpio/GPIOTristate: workaround migen slice corner case
1 parent 8984a7b commit 3ac69f3

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed
 

‎misoc/cores/gpio.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,10 @@ def __init__(self, signals):
2727
ts = TSTriple(1)
2828
self.specials += ts.get_tristate(signal)
2929

30-
self.specials += MultiReg(ts.i, self._in.status[n])
30+
status = Signal()
31+
self.comb += self._in.status[n].eq(status)
32+
33+
self.specials += MultiReg(ts.i, status)
3134
self.comb += [
3235
ts.o.eq(self._out.storage[n]),
3336
ts.oe.eq(self._oe.storage[n])

0 commit comments

Comments
 (0)
Please sign in to comment.