use cell idx to generate comment into pinmux, matches pinmap.txt
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Thu, 31 May 2018 15:45:11 +0000 (16:45 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Thu, 31 May 2018 15:45:11 +0000 (16:45 +0100)
src/bsv/actual_pinmux.py

index 0fa748d0d632cd0ba34f38c5704b007ffc9890e7..63cef9d8c92f0ace6f9ec58cd30f10d92c0f2cc4 100644 (file)
@@ -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]) + \