# work out which bleeding way round what the hell is
# connected to what.
m.d.comb += io.pad.i.eq(self._invert_if(invert, port))
# work out which bleeding way round what the hell is
# connected to what.
m.d.comb += io.pad.i.eq(self._invert_if(invert, port))
else: # simple pass-through from port to pin
print("No JTAG chain in-between")
m.d.comb += pin.i.eq(self._invert_if(invert, port))
else: # simple pass-through from port to pin
print("No JTAG chain in-between")
m.d.comb += pin.i.eq(self._invert_if(invert, port))