Skip to content

Commit

Permalink
BlockPlacer2: Fix off by one error in selecting module instance to mo…
Browse files Browse the repository at this point in the history
…ve (#987)

Signed-off-by: Jakob Wenzel <[email protected]>
  • Loading branch information
jakobwenzel authored Apr 25, 2024
1 parent 14f1d03 commit b9cdb4f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -566,8 +566,8 @@ private void temperatureStep(int maxInnerIteration) {
for (int inner_iterate = 0; inner_iterate< maxInnerIteration; inner_iterate++) {
//for (int inner_iterate = 0; inner_iterate< (10*rangeLimit); inner_iterate++) {
//for (int inner_iterate = 0; inner_iterate< (dev.getColumns()*dev.getRows()); inner_iterate++) {
//ModuleInstT selectedHD = hardMacros.get(rand.nextInt(hardMacros.size()-1));
ModuleInstT selectedHD = weighted.get(rand.nextInt(weighted.size()-1));
//ModuleInstT selectedHD = hardMacros.get(rand.nextInt(hardMacros.size()));
ModuleInstT selectedHD = weighted.get(rand.nextInt(weighted.size()));


if (PARANOID) {
Expand Down

0 comments on commit b9cdb4f

Please sign in to comment.