dma: Prevent width-related warnings when optional AXI stream sideband signals are not used

Signed-off-by: Alex Forencich <alex@alexforencich.com>
This commit is contained in:
Alex Forencich
2025-12-31 13:02:26 -08:00
parent 245e71551b
commit 4da6771603

View File

@@ -179,9 +179,21 @@ assign desc_req.req_ready = desc_req_ready_reg;
assign desc_sts.sts_len = desc_sts_len_reg; assign desc_sts.sts_len = desc_sts_len_reg;
assign desc_sts.sts_tag = desc_sts_tag_reg; assign desc_sts.sts_tag = desc_sts_tag_reg;
assign desc_sts.sts_id = desc_sts_id_reg; if (AXIS_ID_EN) begin
assign desc_sts.sts_dest = desc_sts_dest_reg; assign desc_sts.sts_id = desc_sts_id_reg;
assign desc_sts.sts_user = desc_sts_user_reg; end else begin
assign desc_sts.sts_id = '0;
end
if (AXIS_DEST_EN) begin
assign desc_sts.sts_dest = desc_sts_dest_reg;
end else begin
assign desc_sts.sts_dest = '0;
end
if (AXIS_USER_EN) begin
assign desc_sts.sts_user = desc_sts_user_reg;
end else begin
assign desc_sts.sts_user = '0;
end
assign desc_sts.sts_error = 4'd0; assign desc_sts.sts_error = 4'd0;
assign desc_sts.sts_valid = desc_sts_valid_reg; assign desc_sts.sts_valid = desc_sts_valid_reg;