How repeat and for loops handle loop variables internally in SystemVerilog?
Example:
int n = 5;
repeat(n) begin
n++;
end
for (int n = 0; n < 6; n++) begin
n++;
end
repeat(n) seems to evaluate n only once, while for reevaluates the condition every iteration.
How does the simulator handle these internally?