# ============================================================ #
# ================== Logic for dedicated pins ========= #
+ p.pinmux += "\n /*=========================================*/\n"
+ p.pinmux += " // dedicated cells\n\n"
for cell in p.dedicated_cells:
+ p.pinmux += " // dedicated cell idx %s\n" % (cell[0])
p.pinmux += " %s_out=%s_io;\n" % (cn(cell[0]), cell[1])
- temp = cell[1].translate(digits)
+ temp = transfn(cell[1])
x = ifaces.getifacetype(temp)
+ #print cell, temp, x
if x == "input":
- pinmux = pinmux + \
+ p.pinmux += \
dedicated_wire.format(cell[0], "wr" + cell[1]) + "\n"
elif x == "inout":
- pinmux = pinmux + \
+ p.pinmux += \
dedicated_wire.format(cell[0], "wr" + cell[1] + "_in") + "\n"
+ else:
+ p.pinmux += "\n"
# =======================================================#