Merge pull request #1390 from tpwrules/add-linux-vexriscv_smp
cores/cpu/vexriscv_smp: add default cores used by linux with l2 cache
This commit is contained in:
commit
1ce378e24d
|
@ -176,7 +176,11 @@ class VexRiscvSMP(CPU):
|
|||
@staticmethod
|
||||
def generate_default_configs():
|
||||
# Single cores.
|
||||
for data_width in [16, 32, 64, 128]:
|
||||
for data_width in [None, 16, 32, 64, 128]:
|
||||
if data_width is None:
|
||||
VexRiscvSMP.wishbone_memory = True
|
||||
else:
|
||||
VexRiscvSMP.wishbone_memory = False
|
||||
VexRiscvSMP.litedram_width = data_width
|
||||
VexRiscvSMP.icache_width = 32
|
||||
VexRiscvSMP.dcache_width = 32
|
||||
|
@ -204,8 +208,10 @@ class VexRiscvSMP(CPU):
|
|||
VexRiscvSMP.icache_size = 8192
|
||||
VexRiscvSMP.dcache_ways = 2
|
||||
VexRiscvSMP.icache_ways = 2
|
||||
VexRiscvSMP.icache_width = 32 if data_width < 64 else 64
|
||||
VexRiscvSMP.dcache_width = 32 if data_width < 64 else 64
|
||||
VexRiscvSMP.icache_width = 32 if data_width is None \
|
||||
or data_width < 64 else 64
|
||||
VexRiscvSMP.dcache_width = 32 if data_width is None \
|
||||
or data_width < 64 else 64
|
||||
|
||||
# Without DMA.
|
||||
VexRiscvSMP.coherent_dma = False
|
||||
|
|
Loading…
Reference in New Issue