Skip to content

Commit 02678ef

Browse files
litghostacomodi
authored andcommitted
Avoid criticality issue.
Signed-off-by: Keith Rothman <[email protected]> Signed-off-by: Alessandro Comodi <[email protected]>
1 parent 2bb3101 commit 02678ef

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

vpr/src/timing/timing_util.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -571,6 +571,10 @@ float calc_relaxed_criticality(const std::map<DomainPair, float>& domains_max_re
571571
max_req += shift;
572572
}
573573

574+
if (!std::isfinite(slack)) {
575+
continue;
576+
}
577+
574578
float crit = std::numeric_limits<float>::quiet_NaN();
575579
if (max_req > 0.) {
576580
//Standard case

0 commit comments

Comments
 (0)