title: can i call task from from always block in verilog
body: <p>I am getting an error - "tests is not a function name." What am I doing wrong here? Can I not call a task from always block?</p>
  
  <pre><code>task automatic tests(
      input a, 
      input b, 
      output  c); 
      // code
  endtask
  
  module test123
  (
  input   clk,
  input   a,
  input   b,
  input   e
  ); 
  
  reg d; 
  
  always @(posedge clk) 
      if(e)
          d &lt;= tests(a, b);       
  
  endmodule
  </code></pre>