cpu/vexriscv/core: use variant name as human_name.
authorFlorent Kermarrec <florent@enjoy-digital.fr>
Fri, 31 Jul 2020 06:59:53 +0000 (08:59 +0200)
committerFlorent Kermarrec <florent@enjoy-digital.fr>
Fri, 31 Jul 2020 06:59:53 +0000 (08:59 +0200)
Allow it to be shown in the BIOS and help support.

litex/soc/cores/cpu/vexriscv/core.py

index 551bfa837535904b6956f313e5ac196cd11ac4ad..a7e64b6edda0093dc648e983d5c7c5ac01ab7439 100644 (file)
@@ -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)