diff --git a/litex_boards/targets/sipeed_tang_nano_4k.py b/litex_boards/targets/sipeed_tang_nano_4k.py index df31fa3..a5461b8 100755 --- a/litex_boards/targets/sipeed_tang_nano_4k.py +++ b/litex_boards/targets/sipeed_tang_nano_4k.py @@ -72,15 +72,15 @@ class BaseSoC(SoCCore): kwargs["integrated_rom_size"] = 0 kwargs["cpu_reset_address"] = self.mem_map["spiflash"] + 0 - kwargs["cpu_type"] = 'vexriscv' - kwargs["cpu_variant"] = 'minimal' - # SoCCore ---------------------------------------------------------------------------------- SoCCore.__init__(self, platform, sys_clk_freq, ident = "LiteX SoC on Tang Nano 4K", ident_version = True, **kwargs) + if self.cpu_type == 'vexriscv': + assert self.cpu_variant == 'minimal', 'use --cpu-variant=minimal to fit into number of BSRAMs' + # CRG -------------------------------------------------------------------------------------- self.submodules.crg = _CRG(platform, sys_clk_freq, with_video_pll=with_video_terminal)