From 46c455001776bbf173df113ddb673232ad8fec78 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Tue, 13 Apr 2021 17:33:12 +0100 Subject: [PATCH] fix litex name map --- src/spec/ls180.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/spec/ls180.py b/src/spec/ls180.py index c1b004b..5c0783c 100644 --- a/src/spec/ls180.py +++ b/src/spec/ls180.py @@ -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'] -- 2.30.2