Skip to content

Commit e4e158d

Browse files
committed
[vpr] syntax
1 parent 619e94e commit e4e158d

File tree

4 files changed

+10
-4
lines changed

4 files changed

+10
-4
lines changed

vpr/src/tileable_rr_graph/device_grid_annotation.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class DeviceGridAnnotation {
1919

2020
private: /* Private mutators */
2121
void alloc(const DeviceGrid& grid);
22-
void init(const DeviceGrid& grid);
22+
void init(const DeviceGrid& grid, const bool& perimeter_cb);
2323

2424
public: /* Public accessors */
2525
/** @brief Check if at a given coordinate, a X-direction routing channel should exist or not */

vpr/src/tileable_rr_graph/rr_graph_builder_utils.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -286,10 +286,11 @@ bool is_chanx_right_to_multi_height_grid(const DeviceGrid& grids,
286286
const vtr::Point<size_t>& chanx_coord,
287287
const bool& perimeter_cb,
288288
const bool& through_channel) {
289-
VTR_ASSERT(0 <= chanx_coord.x());
290289
size_t start_x = 1;
291290
if (perimeter_cb) {
292291
start_x = 0;
292+
} else {
293+
VTR_ASSERT(0 < chanx_coord.x());
293294
}
294295
if (start_x == chanx_coord.x()) {
295296
/* This is already the LEFT side of FPGA fabric,
@@ -374,10 +375,11 @@ bool is_chany_top_to_multi_width_grid(const DeviceGrid& grids,
374375
const vtr::Point<size_t>& chany_coord,
375376
const bool& perimeter_cb,
376377
const bool& through_channel) {
377-
VTR_ASSERT(0 <= chany_coord.y());
378378
size_t start_y = 1;
379379
if (perimeter_cb) {
380380
start_y = 0;
381+
} else {
382+
VTR_ASSERT(0 < chany_coord.y());
381383
}
382384
if (start_y == chany_coord.y()) {
383385
/* This is already the BOTTOM side of FPGA fabric,

vpr/src/tileable_rr_graph/rr_graph_builder_utils.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,21 +67,25 @@ bool is_chany_exist(const DeviceGrid& grids,
6767
bool is_chanx_right_to_multi_height_grid(const DeviceGrid& grids,
6868
const size_t& layer,
6969
const vtr::Point<size_t>& chanx_coord,
70+
const bool& perimeter_cb,
7071
const bool& through_channel);
7172

7273
bool is_chanx_left_to_multi_height_grid(const DeviceGrid& grids,
7374
const size_t& layer,
7475
const vtr::Point<size_t>& chanx_coord,
76+
const bool& perimeter_cb,
7577
const bool& through_channel);
7678

7779
bool is_chany_top_to_multi_width_grid(const DeviceGrid& grids,
7880
const size_t& layer,
7981
const vtr::Point<size_t>& chany_coord,
82+
const bool& perimeter_cb,
8083
const bool& through_channel);
8184

8285
bool is_chany_bottom_to_multi_width_grid(const DeviceGrid& grids,
8386
const size_t& layer,
8487
const vtr::Point<size_t>& chany_coord,
88+
const bool& perimeter_cb,
8589
const bool& through_channel);
8690

8791
short get_rr_node_actual_track_id(const RRGraph& rr_graph,

vpr/src/tileable_rr_graph/tileable_rr_graph_node_builder.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ static size_t estimate_num_chany_rr_nodes(const DeviceGrid& grids,
311311
force_end = true;
312312
}
313313

314-
ChanNodeDetails chany_details = build_unidir_chan_node_details(chan_width, seg_max_length, force_start, force_end, segment_infs);
314+
ChanNodeDetails chany_details = build_unidir_chan_node_details(chan_width, max_seg_length, force_start, force_end, segment_infs);
315315
/* When an INC_DIRECTION CHANX starts, we need a new rr_node */
316316
num_chany_rr_nodes += chany_details.get_num_starting_tracks(Direction::INC);
317317
/* When an DEC_DIRECTION CHANX ends, we need a new rr_node */

0 commit comments

Comments
 (0)