Skip to content

Commit 22abe6c

Browse files
committed
merged changes in axis
2 parents 0ac15c6 + 10b6d2f commit 22abe6c

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

lib/axis/rtl/axis_ram_switch.v

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -611,7 +611,9 @@ generate
611611
assign int_cmd_len[m*ADDR_WIDTH +: ADDR_WIDTH] = cmd_len_reg;
612612
assign int_cmd_id[m*CMD_ADDR_WIDTH +: CMD_ADDR_WIDTH] = cmd_id_reg;
613613
assign int_cmd_tkeep[m*KEEP_WIDTH +: KEEP_WIDTH] = cmd_tkeep_reg;
614-
assign int_cmd_tid[m*S_ID_WIDTH +: S_ID_WIDTH_INT] = cmd_tid_reg;
614+
if (ID_ENABLE && S_ID_WIDTH > 0) begin
615+
assign int_cmd_tid[m*S_ID_WIDTH +: S_ID_WIDTH_INT] = cmd_tid_reg;
616+
end
615617
assign int_cmd_tdest[m*S_DEST_WIDTH +: S_DEST_WIDTH] = cmd_tdest_reg;
616618
assign int_cmd_tuser[m*USER_WIDTH +: USER_WIDTH] = cmd_tuser_reg;
617619
assign int_cmd_valid[m*M_COUNT +: M_COUNT] = cmd_valid_reg;
@@ -910,11 +912,17 @@ generate
910912
assign port_cmd_status_ready[m] = int_cmd_status_ready[m*M_COUNT+n];
911913
end
912914

915+
(* ram_style = "distributed", ramstyle = "no_rw_check, mlab" *)
913916
reg [DATA_WIDTH-1:0] out_fifo_tdata[31:0];
917+
(* ram_style = "distributed", ramstyle = "no_rw_check, mlab" *)
914918
reg [KEEP_WIDTH-1:0] out_fifo_tkeep[31:0];
919+
(* ram_style = "distributed", ramstyle = "no_rw_check, mlab" *)
915920
reg out_fifo_tlast[31:0];
921+
(* ram_style = "distributed", ramstyle = "no_rw_check, mlab" *)
916922
reg [M_ID_WIDTH-1:0] out_fifo_tid[31:0];
923+
(* ram_style = "distributed", ramstyle = "no_rw_check, mlab" *)
917924
reg [M_DEST_WIDTH-1:0] out_fifo_tdest[31:0];
925+
(* ram_style = "distributed", ramstyle = "no_rw_check, mlab" *)
918926
reg [USER_WIDTH-1:0] out_fifo_tuser[31:0];
919927

920928
reg [5:0] out_fifo_data_wr_ptr_reg = 0;

0 commit comments

Comments
 (0)