Skip to content

Commit

Permalink
Merge pull request #920 from Xilinx/hotfix/floorplanning
Browse files Browse the repository at this point in the history
[Hotfix] Floorplanning
  • Loading branch information
auphelia authored Nov 20, 2023
2 parents 9c40e38 + 297fa3d commit 02ce695
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion fetch-repos.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

QONNX_COMMIT="04e24583fb5c1895744801480db3ced8a5b6a914"
FINN_EXP_COMMIT="0aa7e1c44b20cf085b6fe42cff360f0a832afd2c"
FINN_EXP_COMMIT="de99347e936d51715f5356a1b6c64e37b91c23c2"
BREVITAS_COMMIT="9bb26bf2798de210a267d1e4aed4c20087e0e8a5"
PYVERILATOR_COMMIT="766e457465f5c0dd315490d7b9cc5d74f9a76f4f"
CNPY_COMMIT="4e8810b1a8637695171ed346ce68f6984e585ef4"
Expand Down
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 02ce695

Please sign in to comment.