rename ls180 (io)vdd/vss pads
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Wed, 11 Nov 2020 14:10:43 +0000 (14:10 +0000)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Wed, 11 Nov 2020 14:10:43 +0000 (14:10 +0000)
src/spec/ls180.py

index 80dd2930044f1fc4d83b926eed8106fe449208b6..c08bea39e0939e9fcc4302e972a1107fdc17cac7 100644 (file)
@@ -164,14 +164,22 @@ def pinparse(psp, pinspec):
         pad = None
         # VSS
         if name.startswith('vss'):
-            name = 'p_%sck_' % name[:-2] + name[-1]
+            name = 'p_%s_' % name[:-2] + name[-1]
+            if 'i' in name:
+                name2 = 'vss'
+            else:
+                name2 = 'iovss'
+            pad = [name, name2]
         # VDD
         elif name.startswith('vdd'):
             if 'i' in name:
-               n_intpower += 1
+                n_intpower += 1
+                name2 = 'vdd'
             else:
-               n_extpower += 1
-            name = 'p_%sck_' % name[:-2] + name[-1]
+                n_extpower += 1
+                name2 = 'iovdd'
+            name = 'p_%s_' % name[:-2] + name[-1]
+            pad = [name, name2]
         # SYS
         elif name.startswith('sys'):
             domain = 'SYS'
@@ -358,6 +366,8 @@ def pinparse(psp, pinspec):
             # whewwww.  add the direction onto the pad spec list
             pad.append(found[-1])
             iopads.append(pad)
+        elif pad is not None:
+            iopads.append(pad)
 
     # not connected
     nc_idx = 0