Skip to content

Commit 3ed7c19

Browse files
Merge pull request verilog-to-routing#3063 from w0lek/draw_crit_path_contour_for_crit_path_routing_mode
fix Draw crit path contour for crit path routing mode
2 parents 90d4b91 + 86754ae commit 3ed7c19

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

vpr/src/draw/draw_basic.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1092,6 +1092,8 @@ void draw_crit_path(ezgl::renderer* g) {
10921092
void draw_crit_path_elements(const std::vector<tatum::TimingPath>& paths, const std::map<std::size_t, std::set<std::size_t>>& indexes, bool draw_crit_path_contour, ezgl::renderer* g) {
10931093
t_draw_state* draw_state = get_draw_state_vars();
10941094
const ezgl::color contour_color{0, 0, 0, 40};
1095+
const ezgl::line_dash contour_line_style{ezgl::line_dash::none};
1096+
const int contour_line_width{1};
10951097

10961098
auto draw_flyline_timing_edge_helper_fn = [](ezgl::renderer* renderer, const ezgl::color& color, ezgl::line_dash line_style, int line_width, float delay,
10971099
const tatum::NodeId& prev_node, const tatum::NodeId& node, bool skip_draw_delays = false) {
@@ -1132,7 +1134,7 @@ void draw_crit_path_elements(const std::vector<tatum::TimingPath>& paths, const
11321134
if (draw_current_element) {
11331135
draw_flyline_timing_edge_helper_fn(g, color, ezgl::line_dash::none, /*line_width*/ 4, delay, prev_node, node);
11341136
} else if (draw_crit_path_contour) {
1135-
draw_flyline_timing_edge_helper_fn(g, contour_color, ezgl::line_dash::none, /*line_width*/ 1, delay, prev_node, node, /*skip_draw_delays*/ true);
1137+
draw_flyline_timing_edge_helper_fn(g, contour_color, contour_line_style, contour_line_width, delay, prev_node, node, /*skip_draw_delays*/ true);
11361138
}
11371139
} else {
11381140
VTR_ASSERT(draw_state->show_crit_path != DRAW_NO_CRIT_PATH);
@@ -1143,7 +1145,7 @@ void draw_crit_path_elements(const std::vector<tatum::TimingPath>& paths, const
11431145

11441146
draw_flyline_timing_edge_helper_fn(g, color, ezgl::line_dash::asymmetric_5_3, /*line_width*/ 3, delay, prev_node, node);
11451147
} else if (draw_crit_path_contour) {
1146-
draw_flyline_timing_edge_helper_fn(g, color, ezgl::line_dash::asymmetric_5_3, /*line_width*/ 3, delay, prev_node, node, /*skip_draw_delays*/ true);
1148+
draw_flyline_timing_edge_helper_fn(g, contour_color, contour_line_style, contour_line_width, delay, prev_node, node, /*skip_draw_delays*/ true);
11471149
}
11481150
}
11491151
}

0 commit comments

Comments
 (0)