power and ground have to be named power and ground
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Wed, 11 Nov 2020 14:21:59 +0000 (14:21 +0000)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Wed, 11 Nov 2020 14:21:59 +0000 (14:21 +0000)
src/spec/ls180.py

index c08bea39e0939e9fcc4302e972a1107fdc17cac7..b17b219ee994bb184cc192a7dc5cf6352185f50f 100644 (file)
@@ -166,19 +166,22 @@ def pinparse(psp, pinspec):
         if name.startswith('vss'):
             name = 'p_%s_' % name[:-2] + name[-1]
             if 'i' in name:
+                name = 'power_' + name[-1]
                 name2 = 'vss'
             else:
+                name = 'iopower_' + name[-1]
                 name2 = 'iovss'
             pad = [name, name2]
         # VDD
         elif name.startswith('vdd'):
             if 'i' in name:
                 n_intpower += 1
+                name = 'ground_' + name[-1]
                 name2 = 'vdd'
             else:
                 n_extpower += 1
+                name = 'ioground_' + name[-1]
                 name2 = 'iovdd'
-            name = 'p_%s_' % name[:-2] + name[-1]
             pad = [name, name2]
         # SYS
         elif name.startswith('sys'):
@@ -325,7 +328,8 @@ def pinparse(psp, pinspec):
             domain = 'JTAG'
 
         if name and not name.startswith('p_'):
-            name = 'p_' + name
+            if 'power' not in name and 'ground' not in name:
+                name = 'p_' + name
         if name is not None:
             padbank[banknum] = name
             # create domains