Skip to content

Commit 0fd5d54

Browse files
break long lines in ap_netlist.cpp
1 parent 59f47d2 commit 0fd5d54

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

vpr/src/analytical_place/ap_netlist.cpp

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,12 +59,18 @@ void APNetlist::set_block_loc(const APBlockId id, const APFixedBlockLoc& loc) {
5959
VTR_ASSERT_SAFE(valid_block_id(id));
6060

6161
// Check that the location is fixed; if all dims are unfixed then it is not fixed.
62-
if (loc.x == APFixedBlockLoc::UNFIXED_DIM && loc.y == APFixedBlockLoc::UNFIXED_DIM && loc.sub_tile == APFixedBlockLoc::UNFIXED_DIM && loc.layer_num == APFixedBlockLoc::UNFIXED_DIM)
62+
if (loc.x == APFixedBlockLoc::UNFIXED_DIM
63+
&& loc.y == APFixedBlockLoc::UNFIXED_DIM
64+
&& loc.sub_tile == APFixedBlockLoc::UNFIXED_DIM
65+
&& loc.layer_num == APFixedBlockLoc::UNFIXED_DIM)
6366
return;
6467

6568
// Ensure that the block is fixed to a single position on the grid (x, y, layer).
6669
// sub-tile is allowed to be unfixed.
67-
VTR_ASSERT(loc.x != APFixedBlockLoc::UNFIXED_DIM && loc.y != APFixedBlockLoc::UNFIXED_DIM && loc.layer_num != APFixedBlockLoc::UNFIXED_DIM && "AP: Currently, AP assumes block is locked down to a single position on the device grid.");
70+
VTR_ASSERT(loc.x != APFixedBlockLoc::UNFIXED_DIM
71+
&& loc.y != APFixedBlockLoc::UNFIXED_DIM
72+
&& loc.layer_num != APFixedBlockLoc::UNFIXED_DIM
73+
&& "AP: Currently, AP assumes block is locked down to a single position on the device grid.");
6874

6975
block_locs_[id] = loc;
7076
block_mobilities_[id] = APBlockMobility::FIXED;

0 commit comments

Comments
 (0)