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

index c1b004bcfc945eeebb7ba2f8832743e429e5dae8..5c0783c09aeb93b669e662b2a389bd0ed5b17427 100644 (file)
@@ -299,7 +299,9 @@ def pinparse(psp, pinspec):
         # I2C master-only
         elif name.startswith('mtwi'):
             domain = 'MTWI'
-            name = 'i2c' + name[4:]
+            suffix = name[4:]
+            litex_name = 'mtwi' + suffix
+            name = 'i2c' + suffix
             if name.startswith('i2c_sda'):
                 name2 = 'i2c_sda_%s'
                 pad = ['p_'+name, name, name2 % 'o', name2 % 'i', name2 % 'oe']