sort sys_* pad names
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Thu, 1 Oct 2020 15:11:40 +0000 (15:11 +0000)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Thu, 1 Oct 2020 15:11:40 +0000 (15:11 +0000)
experiments9/coriolis2/ioring.py

index ce856c937df3f5f0587633a54ac0ac07626b1306..5aab4a1694f7cca6e94b770756ad81fe7efa26e2 100644 (file)
@@ -48,8 +48,19 @@ for (padnum, name, _), bank in zip(p.muxed_cells, p.muxed_cells_bank):
             padbank[banknum] = name
             print "sys_rst add", bank, banknum, name
             name = None
+        elif name == 'sys_pllclk':
+            name = None # ignore
+        elif name == 'sys_pllout':
+            name = 'sys_pll_48_o'
+            iopads.append(['p_' + name, name, name])
+        elif name.startswith('sys_csel'):
+            i = name[-1]
+            name2 = 'sys_clksel_i(%s)' % i
+            name = 'p_sys_clksel_' + i
+            iopads.append([name, name2, name2])
         #if name:
         #    iopads.append([pname, name, name])
+        print "sys pad", name
     # SPI Card
     elif name.startswith('mspi0') or name.startswith('mspi1'):
         suffix = name[6:]
@@ -135,6 +146,8 @@ for (padnum, name, _), bank in zip(p.muxed_cells, p.muxed_cells_bank):
             pad = ['p_' + name, name, name2 % 'o', name2 % 'i', name2 % 'oe']
             print ("I2C pad", name, pad)
             iopads.append(pad)
+        else:
+            iopads.append(['p_' + name, name, name])
     # EINT
     elif name.startswith('eint'):
         i = name[-1]