fix litex name map
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Tue, 13 Apr 2021 16:29:56 +0000 (17:29 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Tue, 13 Apr 2021 16:29:56 +0000 (17:29 +0100)
src/spec/ls180.py

index 3eea891e9df021e4ef8942ace24eda988d216e79..c1b004bcfc945eeebb7ba2f8832743e429e5dae8 100644 (file)
@@ -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'