Skip to content

Commit

Permalink
soc/cores/vexriscv_smp: Add the generation of the default sim config (l…
Browse files Browse the repository at this point in the history
  • Loading branch information
Dolu1990 committed Sep 25, 2024
1 parent b86d76b commit c3e8736
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions litex/soc/cores/cpu/vexriscv_smp/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,13 @@ def generate_cluster_name():
# Default Configs Generation.
@staticmethod
def generate_default_configs():
# Sim
VexRiscvSMP.wishbone_memory = False
VexRiscvSMP.hardware_breakpoints = 1
VexRiscvSMP.coherent_dma = False
VexRiscvSMP.generate_cluster_name()
VexRiscvSMP.generate_netlist()

# Single cores.
for data_width in [None, 16, 32, 64, 128]:
if data_width is None:
Expand Down Expand Up @@ -249,6 +256,8 @@ def generate_default_configs():
VexRiscvSMP.dcache_width = 32 if data_width is None \
or data_width < 64 else 64

VexRiscvSMP.hardware_breakpoint = 0

# Without DMA.
VexRiscvSMP.coherent_dma = False
VexRiscvSMP.generate_cluster_name()
Expand Down

0 comments on commit c3e8736

Please sign in to comment.