Skip to content

Commit aa8a2e5

Browse files
make get_tile_width() and get_tile_height() const methods
1 parent 1d5bf45 commit aa8a2e5

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

vpr/src/draw/draw_interposer.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@
88
#include "globals.h"
99

1010
void draw_interposer_cuts(ezgl::renderer* g) {
11-
t_draw_state* draw_state = get_draw_state_vars();
11+
const t_draw_state* draw_state = get_draw_state_vars();
1212
const DeviceContext& device_ctx = g_vpr_ctx.device();
1313
const DeviceGrid& grid = device_ctx.grid;
14-
t_draw_coords* draw_coords = get_draw_coords_vars();
14+
const t_draw_coords* draw_coords = get_draw_coords_vars();
1515

1616
const std::vector<std::vector<int>>& horizontal_cuts = grid.get_horizontal_interposer_cuts();
1717
const std::vector<std::vector<int>>& vertical_cuts = grid.get_vertical_interposer_cuts();

vpr/src/draw/draw_types.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,11 +82,11 @@ t_draw_coords::t_draw_coords() {
8282
pin_size = 0;
8383
}
8484

85-
float t_draw_coords::get_tile_width() {
85+
float t_draw_coords::get_tile_width() const {
8686
return tile_width;
8787
}
8888

89-
float t_draw_coords::get_tile_height() {
89+
float t_draw_coords::get_tile_height() const {
9090
//For now, same as width
9191
return tile_width;
9292
}

vpr/src/draw/draw_types.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -456,10 +456,10 @@ struct t_draw_coords {
456456
}
457457

458458
///@brief returns tile width
459-
float get_tile_width();
459+
float get_tile_width() const;
460460

461461
///@brief returns tile width
462-
float get_tile_height();
462+
float get_tile_height() const;
463463

464464
///@brief returns bounding box for given pb in given clb
465465
ezgl::rectangle get_pb_bbox(ClusterBlockId clb_index, const t_pb_graph_node& pb_gnode);

0 commit comments

Comments
 (0)