ret += cn
return '\n'.join(ret)
- def _mk_vpincon(self, name, count, ptyp, typ, pname):
+ def _mk_vpincon(self, name, count, ptyp, typ, pname, stype=None):
+ if stype is None:
+ stype = pname
ret = []
if ptyp == 'fast':
sname = self.get_iname(count)
n = self.get_iname(count)
ps_ = "{0}.{1}".format(ps, pname)
ret += self._mk_actual_connection(typ, name, count, typ,
- pname, ps_, n, pname)
+ pname, ps_, n, stype)
return '\n'.join(ret)
def _mk_actual_connection(self, ctype, name, count, typ,
('ad_in', 'm_din', 'in'),
('ad_out_en', 'm_OE32n', 'out'),
]:
- ret.append(self._mk_vpincon(name, count, typ, ptype, pname))
+ ret.append(self._mk_vpincon(name, count, typ, ptype, pname,
+ stype))
return '\n'.join(ret)