I am not sure whether in which region does if condition evaluation will be done.
Can any one help me in finding out the output for below code snippet -
module test();
logic [3:0] a = 5;
initial begin
#5;
a = 10;
end
initial begin
#5;
if (a == 10)
$display("if condition is evaluated after activ region");
else
$display("if condition is evaluated before active region");
end
endmodule
i had checked the output of above code with vcs where it is displaying – “if condition is evaluated before active region”. does that mean if condition will be evaluated with values of postponed region of previous time stamp.