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

This commit is contained in:
Dmitry Derevyanko 2024-04-27 01:04:37 +03:00
parent 22f4637570
commit 8d68c1ada3
1 changed files with 3 additions and 2 deletions

View File

@ -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)