From: Luke Kenneth Casson Leighton Date: Tue, 26 Jun 2018 14:15:57 +0000 (+0100) Subject: fix bug in dedicated cell type detection X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=97219825dc9cd8b52aaea04083b1267994083935;p=pinmux.git fix bug in dedicated cell type detection --- diff --git a/src/bsv/actual_pinmux.py b/src/bsv/actual_pinmux.py index debd015..e37fc58 100644 --- a/src/bsv/actual_pinmux.py +++ b/src/bsv/actual_pinmux.py @@ -178,14 +178,20 @@ def init(p, ifaces): # ============================================================ # # ================== 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" # =======================================================#