mirror of
https://github.com/enjoy-digital/litex.git
synced 2025-01-04 09:52:26 -05:00
cva6: Fix SRAM compile on FPGA
Signed-off-by: gatecat <gatecat@ds0.me>
This commit is contained in:
parent
d137416739
commit
a31df7616f
1 changed files with 7 additions and 1 deletions
|
@ -16,6 +16,7 @@ from litex import get_data_mod
|
|||
from litex.soc.interconnect import axi
|
||||
from litex.soc.interconnect import wishbone
|
||||
from litex.soc.cores.cpu import CPU, CPU_GCC_TRIPLE_RISCV64
|
||||
from litex.build.xilinx import XilinxPlatform
|
||||
|
||||
# Variants -----------------------------------------------------------------------------------------
|
||||
|
||||
|
@ -52,7 +53,12 @@ def add_manifest_sources(platform, manifest):
|
|||
if re.match('\+incdir\+', l):
|
||||
platform.add_verilog_include_path(os.path.join(basedir, res.group(2)))
|
||||
else:
|
||||
platform.add_source(os.path.join(basedir, res.group(2)))
|
||||
filename = res.group(2)
|
||||
if isinstance(platform, XilinxPlatform): # TODO: other FPGAs
|
||||
if filename.endswith("tc_sram_wrapper.sv"):
|
||||
filename = filename.replace("tc_sram_wrapper.sv", "tc_sram_fpga_wrapper.sv")
|
||||
platform.add_source(os.path.join(basedir, "common/local/techlib/fpga/rtl/SyncSpRamBeNx64.sv"))
|
||||
platform.add_source(os.path.join(basedir, filename))
|
||||
|
||||
# CVA6 ---------------------------------------------------------------------------------------------
|
||||
|
||||
|
|
Loading…
Reference in a new issue