From 45835b4b9d061ceeb92efc103672e3c343589057 Mon Sep 17 00:00:00 2001 From: Gwenhael Goavec-Merou Date: Fri, 1 Mar 2024 07:12:11 +0100 Subject: [PATCH] build/colognechip/colognechip: workaround for p_r complaining about a missing dly file (will be fixed by the next CologneChip's toolchain release) --- litex/build/colognechip/colognechip.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/litex/build/colognechip/colognechip.py b/litex/build/colognechip/colognechip.py index ecbf59709..06e431b7b 100644 --- a/litex/build/colognechip/colognechip.py +++ b/litex/build/colognechip/colognechip.py @@ -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 ---------------------------------------------------------------------------------------