From 321ac47f4582bf2802a9e54f4e22a90faf9a7920 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fin=20Maa=C3=9F?= Date: Tue, 11 Jun 2024 10:40:06 +0200 Subject: [PATCH] litex_json2renode: correct VexRiscv variants MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit corrrect the VexRiscv variants. Signed-off-by: Fin Maaß --- litex/tools/litex_json2renode.py | 30 ++++++++++++++++++------------ 1 file changed, 18 insertions(+), 12 deletions(-) diff --git a/litex/tools/litex_json2renode.py b/litex/tools/litex_json2renode.py index 395a8f46a2..62647d196c 100755 --- a/litex/tools/litex_json2renode.py +++ b/litex/tools/litex_json2renode.py @@ -219,23 +219,29 @@ def get_cpu_count(csr): vexriscv_common_kind = { 'name': 'VexRiscv', 'variants': { - 'linux': { - 'properties': ['cpuType: "rv32ima"', 'privilegeArchitecture: PrivilegeArchitecture.Priv1_10'], - }, - 'i': { - 'properties': ['cpuType: "rv32i"'], + 'minimal': { + 'properties': ['cpuType: "rv32i_zicsr_zifencei"'], }, - 'im': { - 'properties': ['cpuType: "rv32im"'], + 'lite': { + 'properties': ['cpuType: "rv32im_zicsr_zifencei"'], }, - 'ima': { - 'properties': ['cpuType: "rv32ima"'], + 'standard': { + 'properties': ['cpuType: "rv32im_zicsr_zifencei"'], }, 'imac': { - 'properties': ['cpuType: "rv32imac"'], + 'properties': ['cpuType: "rv32imac_zicsr_zifencei"'], + }, + 'full': { + 'properties': ['cpuType: "rv32im_zicsr_zifencei"'], + }, + 'linux': { + 'properties': ['cpuType: "rv32ima_zicsr_zifencei"'], + }, + 'secure': { + 'properties': ['cpuType: "rv32ima_zicsr_zifencei"'], }, 'others': { - 'properties': ['cpuType: "rv32im"'], + 'properties': ['cpuType: "rv32im_zicsr_zifencei"'], } }, 'supports_time_provider': True, @@ -628,7 +634,7 @@ def handled_peripheral(csr, name, **kwargs): 'sdram': { 'handler': generate_silencer }, - 'spiflash': { + 'spiflash_core': { 'handler': generate_spiflash }, 'spi': {