Fixes #123.
m = Module()
i, o, t = self._get_xdr_buffer(m, pin, i_invert=True if invert else None)
for bit in range(len(port)):
- m.submodules += Instance("IB",
+ m.submodules[pin.name] = Instance("IB",
i_I=port[bit],
o_O=i[bit]
)
m = Module()
i, o, t = self._get_xdr_buffer(m, pin, o_invert=True if invert else None)
for bit in range(len(port)):
- m.submodules += Instance("OB",
+ m.submodules[pin.name] = Instance("OB",
i_I=o[bit],
o_O=port[bit]
)
m = Module()
i, o, t = self._get_xdr_buffer(m, pin, o_invert=True if invert else None)
for bit in range(len(port)):
- m.submodules += Instance("OBZ",
+ m.submodules[pin.name] = Instance("OBZ",
i_T=t,
i_I=o[bit],
o_O=port[bit]
i, o, t = self._get_xdr_buffer(m, pin, i_invert=True if invert else None,
o_invert=True if invert else None)
for bit in range(len(port)):
- m.submodules += Instance("BB",
+ m.submodules[pin.name] = Instance("BB",
i_T=t,
i_I=o[bit],
o_O=i[bit],
m = Module()
i, o, t = self._get_xdr_buffer(m, pin, i_invert=True if invert else None)
for bit in range(len(p_port)):
- m.submodules += Instance("IB",
+ m.submodules[pin.name] = Instance("IB",
i_I=p_port[bit],
o_O=i[bit]
)
m = Module()
i, o, t = self._get_xdr_buffer(m, pin, o_invert=True if invert else None)
for bit in range(len(p_port)):
- m.submodules += Instance("OB",
+ m.submodules[pin.name] = Instance("OB",
i_I=o[bit],
o_O=p_port[bit],
)
m = Module()
i, o, t = self._get_xdr_buffer(m, pin, o_invert=True if invert else None)
for bit in range(len(p_port)):
- m.submodules += Instance("OBZ",
+ m.submodules[pin.name] = Instance("OBZ",
i_T=t,
i_I=o[bit],
o_O=p_port[bit],
i, o, t = self._get_xdr_buffer(m, pin, i_invert=True if invert else None,
o_invert=True if invert else None)
for bit in range(len(p_port)):
- m.submodules += Instance("BB",
+ m.submodules[pin.name] = Instance("BB",
i_T=t,
i_I=o[bit],
o_O=i[bit],
io_args.append(("i", "OUTPUT_ENABLE", pin.oe))
if is_global_input:
- m.submodules += Instance("SB_GB_IO", *io_args)
+ m.submodules[pin.name] = Instance("SB_GB_IO", *io_args)
else:
- m.submodules += Instance("SB_IO", *io_args)
+ m.submodules[pin.name] = Instance("SB_IO", *io_args)
def get_input(self, pin, port, attrs, invert):
self._check_feature("single-ended input", pin, attrs,
m = Module()
i, o, t = self._get_xdr_buffer(m, pin, i_invert=True if invert else None)
for bit in range(len(port)):
- m.submodules += Instance("IBUF",
+ m.submodules[pin.name] = Instance("IBUF",
i_I=port[bit],
o_O=i[bit]
)
m = Module()
i, o, t = self._get_xdr_buffer(m, pin, o_invert=True if invert else None)
for bit in range(len(port)):
- m.submodules += Instance("OBUF",
+ m.submodules[pin.name] = Instance("OBUF",
i_I=o[bit],
o_O=port[bit]
)
m = Module()
i, o, t = self._get_xdr_buffer(m, pin, o_invert=True if invert else None)
for bit in range(len(port)):
- m.submodules += Instance("OBUFT",
+ m.submodules[pin.name] = Instance("OBUFT",
i_T=t,
i_I=o[bit],
o_O=port[bit]
i, o, t = self._get_xdr_buffer(m, pin, i_invert=True if invert else None,
o_invert=True if invert else None)
for bit in range(len(port)):
- m.submodules += Instance("IOBUF",
+ m.submodules[pin.name] = Instance("IOBUF",
i_T=t,
i_I=o[bit],
o_O=i[bit],
m = Module()
i, o, t = self._get_xdr_buffer(m, pin, i_invert=True if invert else None)
for bit in range(len(p_port)):
- m.submodules += Instance("IBUFDS",
+ m.submodules[pin.name] = Instance("IBUFDS",
i_I=p_port[bit], i_IB=n_port[bit],
o_O=i[bit]
)
m = Module()
i, o, t = self._get_xdr_buffer(m, pin, o_invert=True if invert else None)
for bit in range(len(p_port)):
- m.submodules += Instance("OBUFDS",
+ m.submodules[pin.name] = Instance("OBUFDS",
i_I=o[bit],
o_O=p_port[bit], o_OB=n_port[bit]
)
m = Module()
i, o, t = self._get_xdr_buffer(m, pin, o_invert=True if invert else None)
for bit in range(len(p_port)):
- m.submodules += Instance("OBUFTDS",
+ m.submodules[pin.name] = Instance("OBUFTDS",
i_T=t,
i_I=o[bit],
o_O=p_port[bit], o_OB=n_port[bit]
i, o, t = self._get_xdr_buffer(m, pin, i_invert=True if invert else None,
o_invert=True if invert else None)
for bit in range(len(p_port)):
- m.submodules += Instance("IOBUFDS",
+ m.submodules[pin.name] = Instance("IOBUFDS",
i_T=t,
i_I=o[bit],
o_O=i[bit],
m = Module()
i, o, t = self._get_xdr_buffer(m, pin, i_invert=True if invert else None)
for bit in range(len(port)):
- m.submodules += Instance("IBUF",
+ m.submodules[pin.name] = Instance("IBUF",
i_I=port[bit],
o_O=i[bit]
)
m = Module()
i, o, t = self._get_xdr_buffer(m, pin, o_invert=True if invert else None)
for bit in range(len(port)):
- m.submodules += Instance("OBUF",
+ m.submodules[pin.name] = Instance("OBUF",
i_I=o[bit],
o_O=port[bit]
)
m = Module()
i, o, t = self._get_xdr_buffer(m, pin, o_invert=True if invert else None)
for bit in range(len(port)):
- m.submodules += Instance("OBUFT",
+ m.submodules[pin.name] = Instance("OBUFT",
i_T=t,
i_I=o[bit],
o_O=port[bit]
i, o, t = self._get_xdr_buffer(m, pin, i_invert=True if invert else None,
o_invert=True if invert else None)
for bit in range(len(port)):
- m.submodules += Instance("IOBUF",
+ m.submodules[pin.name] = Instance("IOBUF",
i_T=t,
i_I=o[bit],
o_O=i[bit],
m = Module()
i, o, t = self._get_xdr_buffer(m, pin, i_invert=True if invert else None)
for bit in range(len(p_port)):
- m.submodules += Instance("IBUFDS",
+ m.submodules[pin.name] = Instance("IBUFDS",
i_I=p_port[bit], i_IB=n_port[bit],
o_O=i[bit]
)
m = Module()
i, o, t = self._get_xdr_buffer(m, pin, o_invert=True if invert else None)
for bit in range(len(p_port)):
- m.submodules += Instance("OBUFDS",
+ m.submodules[pin.name] = Instance("OBUFDS",
i_I=o[bit],
o_O=p_port[bit], o_OB=n_port[bit]
)
m = Module()
i, o, t = self._get_xdr_buffer(m, pin, o_invert=True if invert else None)
for bit in range(len(p_port)):
- m.submodules += Instance("OBUFTDS",
+ m.submodules[pin.name] = Instance("OBUFTDS",
i_T=t,
i_I=o[bit],
o_O=p_port[bit], o_OB=n_port[bit]
i, o, t = self._get_xdr_buffer(m, pin, i_invert=True if invert else None,
o_invert=True if invert else None)
for bit in range(len(p_port)):
- m.submodules += Instance("IOBUFDS",
+ m.submodules[pin.name] = Instance("IOBUFDS",
i_T=t,
i_I=o[bit],
o_O=i[bit],