From: Florent Kermarrec Date: Fri, 31 Jul 2020 06:59:53 +0000 (+0200) Subject: cpu/vexriscv/core: use variant name as human_name. X-Git-Tag: 24jan2021_ls180~39 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=eab0726cc8d7db41d999052ca0980074639d4901;p=litex.git cpu/vexriscv/core: use variant name as human_name. Allow it to be shown in the BIOS and help support. --- diff --git a/litex/soc/cores/cpu/vexriscv/core.py b/litex/soc/cores/cpu/vexriscv/core.py index 551bfa83..a7e64b6e 100644 --- a/litex/soc/cores/cpu/vexriscv/core.py +++ b/litex/soc/cores/cpu/vexriscv/core.py @@ -107,6 +107,7 @@ class VexRiscv(CPU, AutoCSR): def __init__(self, platform, variant="standard"): self.platform = platform self.variant = variant + self.human_name = CPU_VARIANTS.get(variant, "VexRiscv") self.external_variant = None self.reset = Signal() self.interrupt = Signal(32)