Skip to content

Commit

Permalink
[Floorplan] Fix incorrect break and indent
Browse files Browse the repository at this point in the history
  • Loading branch information
auphelia committed Nov 17, 2023
1 parent 8ef1960 commit 8884510
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/finn/transformation/fpgadataflow/floorplan.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,12 +170,11 @@ def apply(self, model):
else:
partition_id = pre_inst.get_nodeattr("partition_id")
node_inst.set_nodeattr("partition_id", partition_id)
break

else:
# no matching, new partition
node_inst.set_nodeattr("partition_id", partition_cnt)
partition_cnt += 1
else:
# no matching, new partition
node_inst.set_nodeattr("partition_id", partition_cnt)
partition_cnt += 1

# save the updated floorplan
floorplan = model.analysis(floorplan_params)
Expand Down

0 comments on commit 8884510

Please sign in to comment.