From 8d68c1ada31e4b34a6319cd567d91533bc38cecb Mon Sep 17 00:00:00 2001 From: Dmitry Derevyanko Date: Sat, 27 Apr 2024 01:04:37 +0300 Subject: [PATCH] If two clock already included in false path list then swapped tuple pair of clocks won't be added. Fix this by adding temporary variable with tuple --- litex/build/generic_toolchain.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/litex/build/generic_toolchain.py b/litex/build/generic_toolchain.py index 488b92178..26ac62a16 100644 --- a/litex/build/generic_toolchain.py +++ b/litex/build/generic_toolchain.py @@ -180,5 +180,6 @@ class GenericToolchain: if keep: from_.attr.add("keep") to.attr.add("keep") - if (to, from_) not in self.false_paths: - self.false_paths.add((from_, to)) + clk_tuple = (to, from_) + if clk_tuple not in self.false_paths: + self.false_paths.add(clk_tuple)