make mux cells possible to be 1 wide
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Tue, 31 Jul 2018 06:08:24 +0000 (07:08 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Tue, 31 Jul 2018 06:08:24 +0000 (07:08 +0100)
src/parse.py

index 2569dcca678b28b77510bbfbfeba6b911cd9e008..16927efa841235a3d27c110def4e7868b9fea02c 100644 (file)
@@ -50,14 +50,15 @@ class Parse(object):
                 if len(line1) <= 1:
                     continue
                 self.pinnumbers.append(int(line1[0]))
-                if len(line1) == 2:  # dedicated
-                    self.dedicated_cells.append(line1)
-                else:
-                    for i in range(1, len(line1)):
-                        # XXX HORRIBLE HACK!!
-                        if line1[i].startswith('pwm'):
-                            line1[i] = 'pwm%s_out' % line1[i][4:]
-                    self.muxed_cells.append(line1)
+                # XXX TODO: dedicated pins in separate file
+                #if len(line1) == 2:  # dedicated
+                #    self.dedicated_cells.append(line1)
+                #else:
+                for i in range(1, len(line1)):
+                    # XXX HORRIBLE HACK!!
+                    if line1[i].startswith('pwm'):
+                        line1[i] = 'pwm%s_out' % line1[i][4:]
+                self.muxed_cells.append(line1)
 
         self.pinnumbers = sorted(self.pinnumbers)
         self.upper_offset = self.lower_offset + \