Forever and Repeat Loops
forever loop - executes continually
repeat loop - executes a fixed number of times
Clock with period
of 50 time units
Repeats a rotate
operation 8 times
if (rotate == 1)
repeat (8)
begin
tmp = data[15];
data = {data << 1, temp};
end
initial
begin
clk = 0;
forever #25 clk = ~clk;
end
ÀÌÀü ½½¶óÀ̵å
´ÙÀ½ ½½¶óÀ̵å
ù ½½¶óÀ̵å·Î À̵¿
±×·¡ÇÈ ¹öÀü º¸±â