Repetitive Algorithm Loop
Repetitive Algorithm Loop
while loop repeats the statement until the expression returns true.
If starts with false value, high impedance or unknown value,
statement will not be executed.
initial
begin
x = 0;
while( x <= 10 )
begin
#2 $display("y= ", y);
x = x + 1;
end
end
FOR LOOP:
Initial
clk=1’b1;
Always
begin
#75 clk=1’b0;
#25 clk=1’b1;
end