|
42 | 42 |
|
43 | 43 | extern std::string rr_highlight_message;
|
44 | 44 |
|
45 |
| -bool is_net_unrouted(AtomNetId atomic_net_id) { |
46 |
| - RoutingContext& route_ctx = g_vpr_ctx.mutable_routing(); |
47 |
| - return !route_ctx.route_trees[atomic_net_id].has_value(); |
48 |
| -} |
49 |
| - |
50 | 45 | bool is_net_fully_absorbed(AtomNetId atomic_net_id) {
|
51 | 46 | const RRGraphView& rr_graph = g_vpr_ctx.device().rr_graph;
|
52 | 47 | RoutingContext& route_ctx = g_vpr_ctx.mutable_routing();
|
@@ -74,6 +69,7 @@ void search_and_highlight(GtkWidget* /*widget*/, ezgl::application* app) {
|
74 | 69 | auto& device_ctx = g_vpr_ctx.device();
|
75 | 70 | auto& cluster_ctx = g_vpr_ctx.clustering();
|
76 | 71 | auto& atom_ctx = g_vpr_ctx.atom();
|
| 72 | + const RoutingContext& route_ctx = g_vpr_ctx.routing(); |
77 | 73 |
|
78 | 74 | // get ID from search bar
|
79 | 75 | GtkEntry* text_entry = (GtkEntry*)app->get_object("TextInput");
|
@@ -160,7 +156,7 @@ void search_and_highlight(GtkWidget* /*widget*/, ezgl::application* app) {
|
160 | 156 | app->refresh_drawing();
|
161 | 157 | return;
|
162 | 158 | }
|
163 |
| - if (is_net_unrouted(atom_net_id)) { |
| 159 | + if (!route_ctx.net_status.is_routed(atom_net_id)) { |
164 | 160 | warning_dialog_box("Net is unrouted");
|
165 | 161 | app->refresh_drawing();
|
166 | 162 | return;
|
@@ -195,7 +191,7 @@ void search_and_highlight(GtkWidget* /*widget*/, ezgl::application* app) {
|
195 | 191 | app->refresh_drawing();
|
196 | 192 | return;
|
197 | 193 | }
|
198 |
| - if (is_net_unrouted(atom_net_id)) { |
| 194 | + if (!route_ctx.net_status.is_routed(atomic_net_id)) { |
199 | 195 | warning_dialog_box("Net is unrouted");
|
200 | 196 | app->refresh_drawing();
|
201 | 197 | return;
|
|
0 commit comments