cpu/vexriscv/core: use variant name as human_name.

Allow it to be shown in the BIOS and help support.
This commit is contained in:
Florent Kermarrec 2020-07-31 08:59:53 +02:00
parent e0a763e534
commit eab0726cc8
1 changed files with 1 additions and 0 deletions

View File

@ -107,6 +107,7 @@ class VexRiscv(CPU, AutoCSR):
def __init__(self, platform, variant="standard"): def __init__(self, platform, variant="standard"):
self.platform = platform self.platform = platform
self.variant = variant self.variant = variant
self.human_name = CPU_VARIANTS.get(variant, "VexRiscv")
self.external_variant = None self.external_variant = None
self.reset = Signal() self.reset = Signal()
self.interrupt = Signal(32) self.interrupt = Signal(32)