Skip to content

Commit 4bc7958

Browse files
committed
place: corrected num_pins assertion in clustered netlist
Signed-off-by: Alessandro Comodi <[email protected]>
1 parent 58ce22c commit 4bc7958

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vpr/src/base/clustered_netlist.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ int ClusteredNetlist::block_pin_net_index(const ClusterBlockId blk_id, const int
5252

5353
ClusterPinId ClusteredNetlist::block_pin(const ClusterBlockId blk, const int phys_pin_index) const {
5454
VTR_ASSERT_SAFE(valid_block_id(blk));
55-
VTR_ASSERT_SAFE_MSG(phys_pin_index >= 0 && phys_pin_index < block_type(blk)->pb_type->num_pins, "Physical pin index must be in range");
55+
VTR_ASSERT_SAFE_MSG(phys_pin_index >= 0 && phys_pin_index < physical_tile_type(block_type(blk))->num_pins, "Physical pin index must be in range");
5656

5757
return block_logical_pins_[blk][phys_pin_index];
5858
}

0 commit comments

Comments
 (0)