cpu/microwatt: add standard+ghdl variant that uses GHDL Yosys plugin.
authorFlorent Kermarrec <florent@enjoy-digital.fr>
Tue, 26 May 2020 06:51:33 +0000 (08:51 +0200)
committerFlorent Kermarrec <florent@enjoy-digital.fr>
Tue, 26 May 2020 06:51:33 +0000 (08:51 +0200)
litex/soc/cores/cpu/__init__.py
litex/soc/cores/cpu/microwatt/core.py

index 12e2d0574bd4635612ed55a3c0c5008287088b29..7c0529f0fb5f79ee26d615cdd16b83f7b6b2d7eb 100644 (file)
@@ -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):
index 513ae7083c0da66ced1527b08976d812a3297afe..b0dee76dc27a7f6c5238d37be3e243c555b554e0 100644 (file)
@@ -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")