Skip to content

Commit 1291569

Browse files
Assign signals to constant combinationally
1 parent 1926275 commit 1291569

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

src/ctrl/flow_standby_i2c.sv

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -162,11 +162,18 @@ module flow_standby_i2c
162162

163163

164164
always_ff @(posedge clk_i or negedge rst_ni) begin : undriven_update_resp_data_length
165-
response_fifo_wdata_o.__rsvd23_16 <= '0;
166-
// TODO: Implement, controller functionality skipped for now
167-
response_fifo_wdata_o.err_status <= i3c_resp_err_status_e'(0);
168-
response_fifo_wdata_o.tid <= '0;
165+
if (!rst_ni) begin
166+
response_fifo_wdata_o.__rsvd23_16 <= '0;
167+
response_fifo_wdata_o.err_status <= i3c_resp_err_status_e'(0);
168+
response_fifo_wdata_o.tid <= '0;
169+
end else begin
170+
response_fifo_wdata_o.__rsvd23_16 <= '0;
171+
// TODO: Implement, controller functionality skipped for now
172+
response_fifo_wdata_o.err_status <= i3c_resp_err_status_e'(0);
173+
response_fifo_wdata_o.tid <= '0;
174+
end
169175
end
176+
170177
always_ff @(posedge clk_i or negedge rst_ni) begin : update_resp_data_length
171178
if (!rst_ni) begin
172179
response_fifo_wdata_o.data_length <= 0;

0 commit comments

Comments
 (0)