tools/litex_sim: Disable SDRAM memtest when sdram_init contents provided.
This avoid corrupting pre-initialized contents or disabling memtest manually.
This commit is contained in:
parent
80bd4ac4ec
commit
8f5d2ba27f
|
@ -216,6 +216,10 @@ class SimSoC(SoCCore):
|
|||
l2_cache_min_data_width = kwargs.get("min_l2_data_width", 128),
|
||||
l2_cache_reverse = False
|
||||
)
|
||||
if sdram_init != []:
|
||||
# Skip SDRAM test to avoid corrupting pre-initialized contents.
|
||||
self.add_constant("SDRAM_TEST_DISABLE")
|
||||
else:
|
||||
# Reduce memtest size for simulation speedup
|
||||
self.add_constant("MEMTEST_DATA_SIZE", 8*1024)
|
||||
self.add_constant("MEMTEST_ADDR_SIZE", 8*1024)
|
||||
|
|
Loading…
Reference in New Issue