Skip to content

Commit 4748ac2

Browse files
committed
pathhelper uses KEY_SETUP_PATH_LIST and KEY_HOLD_PATH_LIST
1 parent f7dfd50 commit 4748ac2

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

vpr/src/server/pathhelper.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
#include "draw_global.h"
99
#include "net_delay.h"
1010
#include "concrete_timing_info.h"
11+
#include "commconstants.h"
1112

1213
#include "timing_info_fwd.h"
1314
#include "AnalysisDelayCalculator.h"
@@ -105,9 +106,9 @@ CritPathsResult calcCriticalPath(const std::string& type, int critPathNum, e_tim
105106
analysis_opt.timing_report_detail = detailsLevel;
106107
analysis_opt.timing_report_npaths = critPathNum;
107108

108-
if (type == "setup") {
109+
if (type == comm::KEY_SETUP_PATH_LIST) {
109110
return generate_setup_timing_report(*timing_info, *analysis_delay_calc, analysis_opt, is_flat_routing);
110-
} else if (type == "hold") {
111+
} else if (type == comm::KEY_HOLD_PATH_LIST) {
111112
return generate_hold_timing_report(*timing_info, *analysis_delay_calc, analysis_opt, is_flat_routing);
112113
}
113114
return CritPathsResult{std::vector<tatum::TimingPath>(), ""};

0 commit comments

Comments
 (0)