File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed
Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 88#include " globals.h"
99
1010void 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 ();
Original file line number Diff line number Diff 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}
Original file line number Diff line number Diff 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);
You can’t perform that action at this time.
0 commit comments