Skip to content

Commit 38e6b31

Browse files
committed
[vpr][place] get pin direction from get_pin_type_...
1 parent 655409e commit 38e6b31

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

vpr/src/place/net_cost_handler.cpp

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -122,10 +122,11 @@ static void update_net_bb(const ClusterNetId& net,
122122
* @param blk_pin
123123
* @param pl_moved_block
124124
*/
125-
static void update_net_layer_bb(const ClusterNetId& net,
126-
const ClusterBlockId& blk,
127-
const ClusterPinId& blk_pin,
128-
const t_pl_moved_block& pl_moved_block);
125+
static void update_net_layer_bb(const ClusterNetId net,
126+
const t_pl_blocks_to_be_moved& blocks_affected,
127+
int iblk,
128+
const ClusterBlockId blk,
129+
const ClusterPinId blk_pin);
129130

130131
/**
131132
* @brief Calculate the new connection delay and timing cost of all the
@@ -503,12 +504,13 @@ static void update_net_layer_bb(const ClusterNetId& net,
503504
} else {
504505
//For large nets, update bounding box incrementally
505506
int iblk_pin = tile_pin_index(blk_pin);
506-
bool src_pin = cluster_ctx.clb_nlist.pin_type(blk_pin) == PinType::DRIVER;
507507

508508
t_physical_tile_type_ptr blk_type = physical_tile_type(blk);
509509
int pin_width_offset = blk_type->pin_width_offset[iblk_pin];
510510
int pin_height_offset = blk_type->pin_height_offset[iblk_pin];
511511

512+
auto pin_dir = get_pin_type_from_pin_physical_num(blk_type, iblk_pin);
513+
512514
//Incremental bounding box update
513515
update_layer_bb(net,
514516
layer_ts_bb_edge_new[net],
@@ -520,7 +522,7 @@ static void update_net_layer_bb(const ClusterNetId& net,
520522
{pl_moved_block.new_loc.x + pin_width_offset,
521523
pl_moved_block.new_loc.y + pin_height_offset,
522524
pl_moved_block.new_loc.layer},
523-
src_pin);
525+
pin_dir == e_pin_type::DRIVER);
524526
}
525527
}
526528

0 commit comments

Comments
 (0)