Skip to content

Commit d61c2e6

Browse files
Updated "Toggle nets" dropdown
Updated the toggle options to Cluster Nets and Primitive Nets from Nets and Logical Connections respectively.
1 parent f941d47 commit d61c2e6

File tree

4 files changed

+12
-12
lines changed

4 files changed

+12
-12
lines changed

vpr/main.ui

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -316,8 +316,8 @@
316316
<property name="active_id">0</property>
317317
<items>
318318
<item id="0" translatable="yes">None</item>
319-
<item id="1" translatable="yes">Nets</item>
320-
<item id="2" translatable="yes">Logical Connections</item>
319+
<item id="1" translatable="yes">Cluster Nets</item>
320+
<item id="2" translatable="yes">Primitive Nets</item>
321321
</items>
322322
</object>
323323
<packing>

vpr/src/draw/draw.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -224,21 +224,21 @@ static void draw_main_canvas(ezgl::renderer* g) {
224224

225225
if (draw_state->pic_on_screen == PLACEMENT) {
226226
switch (draw_state->show_nets) {
227-
case DRAW_NETS:
227+
case DRAW_CLUSTER_NETS:
228228
drawnets(g);
229229
break;
230-
case DRAW_LOGICAL_CONNECTIONS:
230+
case DRAW_PRIMITIVE_NETS:
231231
break;
232232
default:
233233
break;
234234
}
235235
} else { /* ROUTING on screen */
236236

237237
switch (draw_state->show_nets) {
238-
case DRAW_NETS:
238+
case DRAW_CLUSTER_NETS:
239239
drawroute(ALL_NETS, g);
240240
break;
241-
case DRAW_LOGICAL_CONNECTIONS:
241+
case DRAW_PRIMITIVE_NETS:
242242
// fall through
243243
default:
244244
draw_rr(g);

vpr/src/draw/draw_toggle_functions.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -80,10 +80,10 @@ void toggle_nets_cbk(GtkComboBox* self, ezgl::application* app) {
8080
// assign corresponding enum value to draw_state->show_nets
8181
if (strcmp(setting, "None") == 0)
8282
new_state = DRAW_NO_NETS;
83-
else if (strcmp(setting, "Nets") == 0) {
84-
new_state = DRAW_NETS;
85-
} else { // "Logical Connections"
86-
new_state = DRAW_LOGICAL_CONNECTIONS;
83+
else if (strcmp(setting, "Cluster Nets") == 0) {
84+
new_state = DRAW_CLUSTER_NETS;
85+
} else { // Primitive Nets - Used to be called "Logical Connections"
86+
new_state = DRAW_PRIMITIVE_NETS;
8787
}
8888
draw_state->reset_nets_congestion_and_rr();
8989
draw_state->show_nets = new_state;

vpr/src/draw/draw_types.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ enum e_draw_crit_path {
4545

4646
enum e_draw_nets {
4747
DRAW_NO_NETS = 0,
48-
DRAW_NETS,
49-
DRAW_LOGICAL_CONNECTIONS
48+
DRAW_CLUSTER_NETS,
49+
DRAW_PRIMITIVE_NETS
5050
};
5151

5252
/* Draw rr_graph from less detailed to more detailed

0 commit comments

Comments
 (0)