Skip to content

Commit

Permalink
Merge branch 'dev' of github.com:Xilinx/ACCL into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
quetric committed Apr 17, 2024
2 parents f50b9b9 + e7aee05 commit a0ba7ea
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 12 deletions.
4 changes: 2 additions & 2 deletions test/refdesigns/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -115,12 +115,12 @@ VPP_CONFIG := -t $(VPP_TARGET) --config $(CONFIGFILE)

ADV_CMD :=
IPREPO_CMD :=
OTHER_XO := $(HOSTCTRL_XO) $(CLIENT_ARB_XO) $(SUM_XO) $(COMPRESSION_XO)
OTHER_XO := $(HOSTCTRL_XO) $(SUM_XO) $(COMPRESSION_XO)

GEN_CONFIG_FLAGS :=
ifeq (vadd, $(USER_KERNEL))
GEN_CONFIG_FLAGS += --vadd
OTHER_XO += $(VADD_XO)
OTHER_XO += $(VADD_XO) $(CLIENT_ARB_XO)
else
OTHER_XO += $(LOOPBACK_XO)
endif
Expand Down
25 changes: 15 additions & 10 deletions test/refdesigns/gen_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,9 @@

for i in range(num_cclo):
target_slr = min(i,num_slr-1) if args.axis3x else cclo_slr
slr_constraints += "slr=arb_{inst_nr}:SLR{slr_nr}\nslr=arith_{inst_nr}:SLR{slr_nr}\nslr=ccl_offload_{inst_nr}:SLR{slr_nr}\n".format(inst_nr=i, slr_nr=target_slr)
slr_constraints += "slr=arith_{inst_nr}:SLR{slr_nr}\nslr=ccl_offload_{inst_nr}:SLR{slr_nr}\n".format(inst_nr=i, slr_nr=target_slr)
if args.vadd:
slr_constraints += "slr=arb_{inst_nr}:SLR{slr_nr}\n".format(inst_nr=i, slr_nr=target_slr)
for j in range(3):
slr_constraints += "slr=compression_{inst_nr}_{dp_nr}:SLR{slr_nr}\n".format(inst_nr=i, dp_nr=j, slr_nr=target_slr)
slr_constraints += "slr=hostctrl_{inst_nr}_0:SLR{slr_nr}\n".format(inst_nr=i, slr_nr=target_slr)
Expand Down Expand Up @@ -201,10 +203,14 @@
# Connect host controllers to arbiter to CCL Offload, and connect plug-ins
for i in range(num_cclo):
# Command interfaces
stream_connections += "stream_connect=hostctrl_{inst_nr}_0.cmd:arb_{inst_nr}.cmd_clients_0\n".format(inst_nr=i)
stream_connections += "stream_connect=arb_{inst_nr}.cmd_cclo:ccl_offload_{inst_nr}.s_axis_call_req\n".format(inst_nr=i)
stream_connections += "stream_connect=ccl_offload_{inst_nr}.m_axis_call_ack:arb_{inst_nr}.ack_cclo\n".format(inst_nr=i)
stream_connections += "stream_connect=arb_{inst_nr}.ack_clients_0:hostctrl_{inst_nr}_0.sts\n".format(inst_nr=i)
if args.vadd:
stream_connections += "stream_connect=hostctrl_{inst_nr}_0.cmd:arb_{inst_nr}.cmd_clients_0\n".format(inst_nr=i)
stream_connections += "stream_connect=arb_{inst_nr}.cmd_cclo:ccl_offload_{inst_nr}.s_axis_call_req\n".format(inst_nr=i)
stream_connections += "stream_connect=ccl_offload_{inst_nr}.m_axis_call_ack:arb_{inst_nr}.ack_cclo\n".format(inst_nr=i)
stream_connections += "stream_connect=arb_{inst_nr}.ack_clients_0:hostctrl_{inst_nr}_0.sts\n".format(inst_nr=i)
else:
stream_connections += "stream_connect=hostctrl_{inst_nr}_0.cmd:ccl_offload_{inst_nr}.s_axis_call_req\n".format(inst_nr=i)
stream_connections += "stream_connect=ccl_offload_{inst_nr}.m_axis_call_ack:hostctrl_{inst_nr}_0.sts\n".format(inst_nr=i)
# Plugin interfaces
stream_connections += "stream_connect=ccl_offload_{inst_nr}.m_axis_arith_op0:arith_{inst_nr}.in0\n".format(inst_nr=i)
stream_connections += "stream_connect=ccl_offload_{inst_nr}.m_axis_arith_op1:arith_{inst_nr}.in1\n".format(inst_nr=i)
Expand All @@ -219,13 +225,11 @@
if args.vadd:
stream_connections += "stream_connect=ccl_offload_{inst_nr}.m_axis_krnl:vadd_{inst_nr}_0.data_from_cclo\n".format(inst_nr=i)
stream_connections += "stream_connect=vadd_{inst_nr}_0.data_to_cclo:ccl_offload_{inst_nr}.s_axis_krnl\n".format(inst_nr=i)
stream_connections += "stream_connect=arb_0.ack_clients_1:vadd_{inst_nr}_0.sts_from_cclo:512\n".format(inst_nr=i)
stream_connections += "stream_connect=vadd_{inst_nr}_0.cmd_to_cclo:arb_0.cmd_clients_1:512\n".format(inst_nr=i)
stream_connections += "stream_connect=arb_{inst_nr}.ack_clients_1:vadd_{inst_nr}_0.sts_from_cclo:512\n".format(inst_nr=i)
stream_connections += "stream_connect=vadd_{inst_nr}_0.cmd_to_cclo:arb_{inst_nr}.cmd_clients_1:512\n".format(inst_nr=i)
else:
stream_connections += "stream_connect=ccl_offload_{inst_nr}.m_axis_krnl:lb_user_krnl_{inst_nr}.in\n".format(inst_nr=i)
stream_connections += "stream_connect=lb_user_krnl_{inst_nr}.out:ccl_offload_{inst_nr}.s_axis_krnl\n".format(inst_nr=i)
stream_connections += "stream_connect=arb_0.ack_clients_1:lb_user_krnl_{inst_nr}.sts_from_cclo:512\n".format(inst_nr=i)
stream_connections += "stream_connect=lb_user_krnl_{inst_nr}.cmd_to_cclo:arb_0.cmd_clients_1:512\n".format(inst_nr=i)
# External DMA interface
stream_connections += "stream_connect=ccl_offload_{inst_nr}.m_axis_dma0_s2mm:extdma_{inst_nr}_0.s_axis_s2mm\n".format(inst_nr=i)
stream_connections += "stream_connect=ccl_offload_{inst_nr}.m_axis_dma0_mm2s_cmd:extdma_{inst_nr}_0.s_axis_mm2s_cmd\n".format(inst_nr=i)
Expand Down Expand Up @@ -267,7 +271,8 @@
f.write("[connectivity]\n")
f.write(cclo_instantiation+"\n")
f.write(extdma_instantiation+"\n")
f.write(arb_instantiation+"\n")
if args.vadd:
f.write(arb_instantiation+"\n")
f.write(hc_instantiation+"\n")
f.write(reduce_instantiation+"\n")
f.write(cast_instantiation+"\n")
Expand Down

0 comments on commit a0ba7ea

Please sign in to comment.