From: Luke Kenneth Casson Leighton Date: Wed, 11 Nov 2020 14:10:43 +0000 (+0000) Subject: rename ls180 (io)vdd/vss pads X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8480c186175346ab2f15f566d18d5dbdc1364193;p=pinmux.git rename ls180 (io)vdd/vss pads --- diff --git a/src/spec/ls180.py b/src/spec/ls180.py index 80dd293..c08bea3 100644 --- a/src/spec/ls180.py +++ b/src/spec/ls180.py @@ -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