Merge pull request #1392 from tpwrules/fix-vexriscsmp-quartus

cores/cpu/vexriscv_smp: define SYNTHESIS in Quartus
This commit is contained in:
enjoy-digital 2022-08-05 08:02:29 +02:00 committed by GitHub
commit c2b62a6b0c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -369,6 +369,10 @@ class VexRiscvSMP(CPU):
from litex.build.altera import AlteraPlatform
if isinstance(platform, AlteraPlatform):
ram_filename = "Ram_1w_1rs_Intel.v"
# define SYNTHESIS verilog name to avoid issues with unsupported
# functions
platform.toolchain.additional_qsf_commands.append(
'set_global_assignment -name VERILOG_MACRO "SYNTHESIS=1"')
# On Efinix platforms, use specific implementation.
from litex.build.efinix import EfinixPlatform
if isinstance(platform, EfinixPlatform):