title: Use of forever and always statements
body: <p>Both the following codes generate a clock. I need to know if there is any use of forever loop other than clock generation? I have only come across forever in clock generation. If it only serves this purpose, isn't it useless?</p>
  
  <pre><code>initial begin
  clk = 0;
  forever begin
  #5 clk = ~clk;
  end
  end
  
  initial begin
  clk = 0 ;
  always begin 
  # 5 clk = ~clk;
  end
  end
  </code></pre>