cpu/microwatt: add standard+ghdl variant that uses GHDL Yosys plugin.

This commit is contained in:
Florent Kermarrec 2020-05-26 08:51:33 +02:00
parent 24687cbd9f
commit 062ff67e12
2 changed files with 3 additions and 3 deletions

View 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):

View 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")