@@ -91,7 +91,7 @@ static size_t estimate_num_medium_rr_nodes(const DeviceGrid& grids,
9191 for (size_t iy = 0 ; iy < grids.height (); ++iy) {
9292
9393 const VibInf* vib = vib_grid.get_vib (layer, ix, iy);
94- if (vib == nullptr ) {
94+ if (! vib) {
9595 VTR_LOGF_ERROR (__FILE__, __LINE__,
9696 " VIB at (%d, %d) is EMPTY!\n " , ix, iy);
9797 exit (1 );
@@ -371,16 +371,15 @@ static std::vector<size_t> estimate_num_rr_nodes(const DeviceGrid& grids,
371371 const DeviceGridAnnotation& device_grid_annotation,
372372 const bool & shrink_boundary,
373373 const bool & perimeter_cb,
374- const bool & through_channel,
375- const bool & is_vib_arch) {
374+ const bool & through_channel) {
376375
377376 /* Reset the OPIN, IPIN, SOURCE, SINK counter to be zero */
378377 std::vector<size_t > num_rr_nodes_per_type (NUM_RR_TYPES, 0 );
379378
380379 /* *
381380 * 1 Find number of rr nodes related to grids
382381 */
383- if (is_vib_arch )
382+ if (!vib_grid. is_empty () )
384383 num_rr_nodes_per_type[MEDIUM] = estimate_num_medium_rr_nodes (grids, vib_grid, layer);
385384 else
386385 num_rr_nodes_per_type[MEDIUM] = 0 ;
@@ -442,8 +441,7 @@ void alloc_tileable_rr_graph_nodes(RRGraphBuilder& rr_graph_builder,
442441 const DeviceGridAnnotation& device_grid_annotation,
443442 const bool & shrink_boundary,
444443 const bool & perimeter_cb,
445- const bool & through_channel,
446- const bool & is_vib_arch) {
444+ const bool & through_channel) {
447445 VTR_ASSERT (0 == rr_graph_builder.rr_nodes ().size ());
448446
449447 std::vector<size_t > num_rr_nodes_per_type = estimate_num_rr_nodes (grids,
@@ -455,8 +453,7 @@ void alloc_tileable_rr_graph_nodes(RRGraphBuilder& rr_graph_builder,
455453 device_grid_annotation,
456454 shrink_boundary,
457455 perimeter_cb,
458- through_channel,
459- is_vib_arch);
456+ through_channel);
460457
461458 /* Reserve the number of node to be memory efficient */
462459 size_t num_nodes = 0 ;
@@ -730,8 +727,7 @@ static void load_grid_nodes_basic_info(RRGraphBuilder& rr_graph_builder,
730727 const size_t & layer,
731728 const RRSwitchId& wire_to_ipin_switch,
732729 const RRSwitchId& delayless_switch,
733- const bool & perimeter_cb,
734- const bool & is_vib_arch) {
730+ const bool & perimeter_cb) {
735731 for (size_t iy = 0 ; iy < grids.height (); ++iy) {
736732 for (size_t ix = 0 ; ix < grids.width (); ++ix) {
737733 t_physical_tile_loc tile_loc (ix, iy, layer);
@@ -802,7 +798,7 @@ static void load_grid_nodes_basic_info(RRGraphBuilder& rr_graph_builder,
802798 }
803799 }
804800
805- if (is_vib_arch ) {
801+ if (!vib_grid. is_empty () ) {
806802 /* Create medium nodes */
807803 VTR_ASSERT (grids.width () == vib_grid.width () && grids.height () == vib_grid.height ());
808804 for (size_t iy = 0 ; iy < grids.height (); ++iy) {
@@ -1310,8 +1306,7 @@ void create_tileable_rr_graph_nodes(const RRGraphView& rr_graph,
13101306 const DeviceGridAnnotation& device_grid_annotation,
13111307 const bool & shrink_boundary,
13121308 const bool & perimeter_cb,
1313- const bool & through_channel,
1314- const bool & is_vib_arch) {
1309+ const bool & through_channel) {
13151310 /* Allocates and loads all the structures needed for fast lookups of the *
13161311 * index of an rr_node. rr_node_indices is a matrix containing the index *
13171312 * of the *first* rr_node at a given (i,j) location. */
@@ -1332,8 +1327,7 @@ void create_tileable_rr_graph_nodes(const RRGraphView& rr_graph,
13321327 rr_rc_data,
13331328 grids, vib_grid, layer,
13341329 wire_to_ipin_switch,
1335- delayless_switch, perimeter_cb,
1336- is_vib_arch);
1330+ delayless_switch, perimeter_cb);
13371331
13381332 load_chanx_rr_nodes_basic_info (rr_graph,
13391333 rr_graph_builder,
0 commit comments