cpu/vexriscv_smp: Use specific Ram_1w_1rs implementation on Efinix FPGAs.
This commit is contained in:
parent
1ce2073694
commit
0a90a0eee9
|
@ -1,3 +1,4 @@
|
|||
from litex.build.efinix.programmer import EfinixProgrammer
|
||||
from litex.build.efinix.dbparser import EfinixDbParser
|
||||
from litex.build.efinix.ifacewriter import InterfaceWriter
|
||||
from litex.build.efinix.platform import EfinixPlatform
|
|
@ -364,6 +364,10 @@ class VexRiscvSMP(CPU):
|
|||
from litex.build.altera import AlteraPlatform
|
||||
if isinstance(platform, AlteraPlatform):
|
||||
ram_filename = "Ram_1w_1rs_Intel.v"
|
||||
# On Efinix platforms, use specific implementation.
|
||||
from litex.build.efinix import EfinixPlatform
|
||||
if isinstance(platform, EfinixPlatform):
|
||||
ram_filename = "Ram_1w_1rs_Efinix.v"
|
||||
platform.add_source(os.path.join(vdir, ram_filename), "verilog")
|
||||
|
||||
# Add Cluster.
|
||||
|
|
Loading…
Reference in New Issue