From 062ff67e12a3072c06b12a5f3c0c3a209dba3c91 Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Tue, 26 May 2020 08:51:33 +0200 Subject: [PATCH] cpu/microwatt: add standard+ghdl variant that uses GHDL Yosys plugin. --- litex/soc/cores/cpu/__init__.py | 2 +- litex/soc/cores/cpu/microwatt/core.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/litex/soc/cores/cpu/__init__.py b/litex/soc/cores/cpu/__init__.py index 12e2d057..7c0529f0 100644 --- a/litex/soc/cores/cpu/__init__.py +++ b/litex/soc/cores/cpu/__init__.py @@ -97,7 +97,7 @@ CPU_VARIANTS = { "linuxd" : [], "linuxq" : [], } -CPU_VARIANTS_EXTENSIONS = ["debug", "no-dsp"] +CPU_VARIANTS_EXTENSIONS = ["debug", "no-dsp", "ghdl"] class InvalidCPUVariantError(ValueError): def __init__(self, variant): diff --git a/litex/soc/cores/cpu/microwatt/core.py b/litex/soc/cores/cpu/microwatt/core.py index 513ae708..b0dee76d 100644 --- a/litex/soc/cores/cpu/microwatt/core.py +++ b/litex/soc/cores/cpu/microwatt/core.py @@ -11,7 +11,7 @@ from litex.soc.interconnect import wishbone from litex.soc.cores.cpu import CPU -CPU_VARIANTS = ["standard"] +CPU_VARIANTS = ["standard", "standard+ghdl"] class Microwatt(CPU): @@ -94,7 +94,7 @@ class Microwatt(CPU): ) # add vhdl sources - self.add_sources(platform) + self.add_sources(platform, use_ghdl_yosys_plugin="ghdl" in self.variant) def set_reset_address(self, reset_address): assert not hasattr(self, "reset_address") -- 2.30.2