X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=src%2Fparse.py;h=32a06828cb4cd5ad08b9c123d656e8f06b8113d7;hb=c9babac880a83acaab2a088c00b6562b937dcf3b;hp=8d67b01e0b2e2809b39120a4804c9646133a9074;hpb=c0cba09a4072582e2eab3d94b36deb604d87d4d5;p=pinmux.git diff --git a/src/parse.py b/src/parse.py index 8d67b01..32a0682 100644 --- a/src/parse.py +++ b/src/parse.py @@ -61,7 +61,7 @@ class Parse(object): if line1[i].startswith('pwm'): line1[i] = 'pwm%s_out' % line1[i][4:] line1 = [line1[0]] + line1[3:] - print "line", line1 + print ("line", line1) self.muxed_cells.append(line1) self.pinnumbers = sorted(self.pinnumbers) @@ -115,7 +115,7 @@ class Parse(object): def get_max_cell_bitwidth(self): max_num_cells = 0 for cell in self.muxed_cells: - print cell + print (cell) max_num_cells = max(len(cell) - 1, max_num_cells) return int(math.log(max_num_cells + 1, 2))