From 81e8bbb6a925260946c44ac2f6221249d2472c2c Mon Sep 17 00:00:00 2001 From: Jake Ke Date: Tue, 18 Jun 2024 01:40:11 -0700 Subject: [PATCH] fix(tcl): NoC multi-site constraint typo --- tcl_helper.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tcl_helper.py b/tcl_helper.py index e76023f..b3b6f7c 100644 --- a/tcl_helper.py +++ b/tcl_helper.py @@ -86,10 +86,10 @@ def export_noc_constraint( # find all unique slots unique_slots = [] keys = ["src", "dest"] - for _, d in streams_slots.items(): + for s in noc_streams: for k in keys: - if d[k] not in unique_slots: - unique_slots.append(d[k]) + if streams_slots[s][k] not in unique_slots: + unique_slots.append(streams_slots[s][k]) keys = ["nmu", "nsu"] for slot in unique_slots: @@ -108,7 +108,7 @@ def export_noc_constraint( for port_num, s in enumerate(noc_streams): tcl += [ f"""\ -add_cells_to_pblock {streams_slots[s]["src"]}_nsu get_cells */axis_noc_dut/inst/\ +add_cells_to_pblock {streams_slots[s]["src"]}_nsu [get_cells */axis_noc_dut/inst/\ M{str(port_num).zfill(2)}_AXIS_nsu/*top_INST/NOC_NSU512_INST] add_cells_to_pblock {streams_slots[s]["dest"]}_nmu [get_cells */axis_noc_dut/inst/\ S{str(port_num).zfill(2)}_AXIS_nmu/*top_INST/NOC_NMU512_INST]"""