From: Luke Kenneth Casson Leighton Date: Thu, 31 May 2018 15:45:11 +0000 (+0100) Subject: use cell idx to generate comment into pinmux, matches pinmap.txt X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=69d7837db0eebf4d05fc0e26a5c367d79645fc44;p=pinmux.git use cell idx to generate comment into pinmux, matches pinmap.txt --- diff --git a/src/bsv/actual_pinmux.py b/src/bsv/actual_pinmux.py index 0fa748d..63cef9d 100644 --- a/src/bsv/actual_pinmux.py +++ b/src/bsv/actual_pinmux.py @@ -38,8 +38,8 @@ def transfn(temp): def init(p, ifaces): p.pinmux = ' ' global dedicated_wire - for x, cell in enumerate(p.muxed_cells): - p.pinmux += " // output muxer for cell idx %d\n" % x + for cell in p.muxed_cells: + p.pinmux += " // output muxer for cell idx %d\n" % cell[0] p.pinmux += " %s_out=" % cn(cell[0]) for i in range(0, len(cell) - 2): p.pinmux += "wr%s" % cn(cell[0]) + \