2121
2222# Constants ----------------------------------------------------------------------------------------
2323
24- _HYPERRAM_SIZE = 8 * MEGABYTE
24+ _HYPERRAM_SIZE = 32 * MEGABYTE
2525_OPENSBI_OFFSET = 0x00f00000
2626_OPENSBI_SIZE = 0x00080000
2727
@@ -60,7 +60,7 @@ def __init__(self, platform, sys_clk_freq):
6060# BaseSoC ------------------------------------------------------------------------------------------
6161
6262class BaseSoC (SoCCore ):
63- def __init__ (self , sys_clk_freq = 50e6 , toolchain = "radiant" ,
63+ def __init__ (self , sys_clk_freq = 25e6 , toolchain = "radiant" ,
6464 with_hyperram = True ,
6565 with_led_chaser = True ,
6666 with_sdcard = False ,
@@ -82,8 +82,9 @@ def __init__(self, sys_clk_freq=50e6, toolchain="radiant",
8282 )
8383 if with_opensbi and main_ram_size < (_OPENSBI_OFFSET + _OPENSBI_SIZE ):
8484 raise ValueError (
85- "vexriscv_smp/vexiiriscv Linux variants place OpenSBI beyond "
86- "the TEL0025 8MiB HyperRAM window; use vexriscv linux instead."
85+ "vexriscv_smp/vexiiriscv Linux variants place OpenSBI at "
86+ "main_ram + 0x00f00000; provide at least 16MiB of main RAM "
87+ "or use vexriscv linux instead."
8788 )
8889
8990 # CRG --------------------------------------------------------------------------------------
@@ -136,7 +137,7 @@ def __init__(self, sys_clk_freq=50e6, toolchain="radiant",
136137def main ():
137138 from litex .build .parser import LiteXArgumentParser
138139 parser = LiteXArgumentParser (platform = trenz_tel0025 .Platform , description = "LiteX SoC on Trenz TEL0025." )
139- parser .add_target_argument ("--sys-clk-freq" , default = 50e6 , type = float , help = "System clock frequency." )
140+ parser .add_target_argument ("--sys-clk-freq" , default = 25e6 , type = float , help = "System clock frequency." )
140141 parser .add_target_argument ("--no-hyperram" , action = "store_true" , help = "Disable HyperRAM support." )
141142 parser .add_target_argument ("--with-spi-flash" , action = "store_true" , help = "Enable SPI Flash support." )
142143 parser .add_target_argument ("--flash" , action = "store_true" , help = "Flash bitstream to SPI Flash." )
0 commit comments