From 8b75c9e8a8d46360c00bd931b11b443cae97fb0c Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Tue, 13 Apr 2021 17:25:41 +0100 Subject: [PATCH] add litex name map --- src/spec/ls180.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/spec/ls180.py b/src/spec/ls180.py index e78367e..3eea891 100644 --- a/src/spec/ls180.py +++ b/src/spec/ls180.py @@ -226,9 +226,9 @@ def pinparse(psp, pinspec): prefix = 'spimaster_' else: prefix = 'spisdcard_' + litex_name = name[:6] + suffix name = prefix + suffix pad = ['p_' + name, name, name] - litex_name = name[:6] + suffix # SD/MMC elif name.startswith('sd0'): domain = 'SD' @@ -244,7 +244,7 @@ def pinparse(psp, pinspec): else: name = 'sdcard_' + name[4:] pad = ['p_' + name, name, name] - litex_name = name[:6] + "_".join(name.split("_")[1:]) + litex_name = orig_name[:4] + "_".join(name.split("_")[1:]) # SDRAM elif name.startswith('sdr'): domain = 'SDR' @@ -280,7 +280,7 @@ def pinparse(psp, pinspec): else: name = 'sdram_' + name[4:] pad = ['p_' + name, name, name] - litex_name = name[:5] + "_".join(name.split("_")[1:]) + litex_name = orig_name[:4] + "_".join(name.split("_")[1:]) # UART elif name.startswith('uart'): domain = 'UART' -- 2.30.2