From c6ecd770e731f8d6c02a4501b776d4a8e3baea9b Mon Sep 17 00:00:00 2001 From: Alex Forencich Date: Fri, 26 Jan 2024 12:35:27 -0800 Subject: [PATCH] Fix spurious multi-driven net issue in axis_ram_switch when S_ID_WIDTH = 0 Signed-off-by: Alex Forencich --- rtl/axis_ram_switch.v | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/rtl/axis_ram_switch.v b/rtl/axis_ram_switch.v index ac31dcca..6e08a921 100644 --- a/rtl/axis_ram_switch.v +++ b/rtl/axis_ram_switch.v @@ -611,7 +611,9 @@ generate assign int_cmd_len[m*ADDR_WIDTH +: ADDR_WIDTH] = cmd_len_reg; assign int_cmd_id[m*CMD_ADDR_WIDTH +: CMD_ADDR_WIDTH] = cmd_id_reg; assign int_cmd_tkeep[m*KEEP_WIDTH +: KEEP_WIDTH] = cmd_tkeep_reg; - assign int_cmd_tid[m*S_ID_WIDTH +: S_ID_WIDTH_INT] = cmd_tid_reg; + if (ID_ENABLE && S_ID_WIDTH > 0) begin + assign int_cmd_tid[m*S_ID_WIDTH +: S_ID_WIDTH_INT] = cmd_tid_reg; + end assign int_cmd_tdest[m*S_DEST_WIDTH +: S_DEST_WIDTH] = cmd_tdest_reg; assign int_cmd_tuser[m*USER_WIDTH +: USER_WIDTH] = cmd_tuser_reg; assign int_cmd_valid[m*M_COUNT +: M_COUNT] = cmd_valid_reg;