Set minimal core, since full does not work for some reason

This commit is contained in:
Miodrag Milanovic 2021-11-23 15:26:54 +01:00
parent b0dcd96964
commit 6954dd25eb
1 changed files with 4 additions and 0 deletions

View File

@ -43,6 +43,10 @@ class BaseSoC(SoCCore):
def __init__(self, sys_clk_freq=int(24e6), with_led_chaser=True, **kwargs): def __init__(self, sys_clk_freq=int(24e6), with_led_chaser=True, **kwargs):
platform = sipeed_tang_primer.Platform() platform = sipeed_tang_primer.Platform()
# Set CPU variant
if kwargs.get("cpu_type", "vexriscv") == "vexriscv":
kwargs["cpu_variant"] = "minimal"
# SoCCore ---------------------------------------------------------------------------------- # SoCCore ----------------------------------------------------------------------------------
SoCCore.__init__(self, platform, sys_clk_freq, SoCCore.__init__(self, platform, sys_clk_freq,
ident = "LiteX SoC on Tang Primer", ident = "LiteX SoC on Tang Primer",