build/colognechip/colognechip: workaround for p_r complaining about a missing dly file (will be fixed by the next CologneChip's toolchain release)

This commit is contained in:
Gwenhael Goavec-Merou 2024-03-01 07:12:11 +01:00
parent 697fb51a32
commit 45835b4b9d
1 changed files with 5 additions and 0 deletions

View File

@ -91,6 +91,11 @@ class CologneChipToolchain(GenericToolchain):
""" create project files (mainly Yosys ys file)
"""
self._yosys.build_script()
# p_r complains about missing cc_worst_spd_dly.dly -> copy it in gateware directory
p_r_path = which("p_r")
cc_worst_spd_dly_path = os.path.join(os.path.dirname(p_r_path), "cc_worst_spd_dly.dly")
copyfile(cc_worst_spd_dly_path, os.path.join(self._build_dir, "cc_worst_spd_dly.dly"))
# Script ---------------------------------------------------------------------------------------