From febcb1bce0ee80ab7e5f4c496e92009e02e3ef43 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Tue, 31 Jul 2018 07:08:24 +0100 Subject: [PATCH] make mux cells possible to be 1 wide --- src/parse.py | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/src/parse.py b/src/parse.py index 2569dcc..16927ef 100644 --- a/src/parse.py +++ b/src/parse.py @@ -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 + \ -- 2.30.2