You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
module test;
struct {
logic x;
logic z;
} k [1:0];
logic clk_i;
logic rst_ni;
logic a, b, c, d;
always_ff @(posedge clk_i or negedge rst_ni) begin
if (~rst_ni) begin
k <= '{default: 0};
end else begin
for (int i = 0; i < 2; i++) begin
if (d) begin
k[i].x <= 1'b1;
k[i].z <= 1'b1;
end
end
end
end
endmodule
Even if k is assigned on the else reset clause, the OnlyAssignedOnReset check is triggered.
The text was updated successfully, but these errors were encountered:
Even if
k
is assigned on theelse
reset clause, theOnlyAssignedOnReset
check is triggered.The text was updated successfully, but these errors were encountered: