whoops invert vss/vdd power/ground by mistake
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Mon, 30 Nov 2020 15:00:41 +0000 (15:00 +0000)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Mon, 30 Nov 2020 15:00:41 +0000 (15:00 +0000)
src/spec/ls180.py

index 128b3ae77fd301c01ccafed215521e264c7ea1f1..7b98bff4ecd98b1954ab587993fc93c2ecf70b3e 100644 (file)
@@ -166,21 +166,21 @@ def pinparse(psp, pinspec):
         if name.startswith('vss'):
             name = 'p_%s_' % name[:-2] + name[-1]
             if 'i' in name:
-                name = 'power_' + name[-1]
+                name = 'ground_' + name[-1]
                 name2 = 'vss'
             else:
-                name = 'iopower_' + name[-1]
+                name = 'ioground_' + name[-1]
                 name2 = 'iovss'
             pad = [name, name2]
         # VDD
         elif name.startswith('vdd'):
             if 'i' in name:
                 n_intpower += 1
-                name = 'ground_' + name[-1]
+                name = 'power_' + name[-1]
                 name2 = 'vdd'
             else:
                 n_extpower += 1
-                name = 'ioground_' + name[-1]
+                name = 'iopower_' + name[-1]
                 name2 = 'iovdd'
             pad = [name, name2]
         # SYS