title: Difference in Clock Generation
body: <p>What is the difference between the following codes ?</p>
  
  <pre><code>initial begin
    clk = 0 ;
    forever begin
      #5  clk =   ~clk;
    end
  end
  
  
  initial begin
    clk = 0 ;
    forever begin
      clk = #5  ~clk;
    end
  end
  </code></pre>
  
  <p>I do know the difference between Inertial and Transport Delays and I know that clock is generated in both the cases(with some Phase difference between the two ), but I want to know how the simulator reacts to the following codes.Is it the same or different ? Like how many events are taken into consideration while calculating the value ?</p>