From f371a279c27af9ba26bf1cb5eb4135e53d98cb62 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Tue, 13 Apr 2021 17:29:56 +0100 Subject: [PATCH] fix litex name map --- src/spec/ls180.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/spec/ls180.py b/src/spec/ls180.py index 3eea891..c1b004b 100644 --- a/src/spec/ls180.py +++ b/src/spec/ls180.py @@ -288,12 +288,14 @@ def pinparse(psp, pinspec): pad = ['p_' + name, name, name] # GPIO elif name.startswith('gpio'): + gbank = name[4] domain = 'GPIO' i = name[7:] name = 'gpio_' + i name2 = 'gpio_%%s(%s)' % i pad = ['p_' + name, name, name2 % 'o', name2 % 'i', name2 % 'oe'] print ("GPIO pad", name, pad) + litex_name = "gpio_%s" % gbank + "_".join(name.split("_")[1:]) # I2C master-only elif name.startswith('mtwi'): domain = 'MTWI' -- 2.30.2