From 97219825dc9cd8b52aaea04083b1267994083935 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Tue, 26 Jun 2018 15:15:57 +0100 Subject: [PATCH] fix bug in dedicated cell type detection --- src/bsv/actual_pinmux.py | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) 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" # =======================================================# -- 2.30.2