Skip to content

Commit

Permalink
gpio/GPIOTristate: fix for more than 1 signal
Browse files Browse the repository at this point in the history
sbourdeauducq committed Mar 3, 2016
1 parent b0a4176 commit 8984a7b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions misoc/cores/gpio.py
Original file line number Diff line number Diff line change
@@ -27,10 +27,10 @@ def __init__(self, signals):
ts = TSTriple(1)
self.specials += ts.get_tristate(signal)

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


0 comments on commit 8984a7b

Please sign in to comment.