From 69d7837db0eebf4d05fc0e26a5c367d79645fc44 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Thu, 31 May 2018 16:45:11 +0100 Subject: [PATCH] use cell idx to generate comment into pinmux, matches pinmap.txt --- src/bsv/actual_pinmux.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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]) + \ -- 2.30.2