data/full_repos/permissive/214858095/FPGA_Exploration/spartan6/B205mini/ISE_Project/sim/general/sim_math.vh
 line:23: before: "function"
1: b"%Error: data/full_repos/permissive/214858095/FPGA_Exploration/spartan6/B205mini/ISE_Project/sim/general/sim_math.vh:122: Can't find definition of task/function: 'fabs'\n    x1 = fabs(x)*1.44269504;\n         ^~~~\n%Error: Exiting due to 1 error(s)\n"
function real sqrt;
  input x;
  real x;
  begin
    if (x<0.0)
      begin
        $display("sqrt illegal argument:",x);
        $stop;
      end
    sqrt = exp(0.5*log(x));
  end
endfunction
function real sqrt;

  input x;
  real x;
  begin
    if (x<0.0)
      begin
        $display("sqrt illegal argument:",x);
        $stop;
      end
    sqrt = exp(0.5*log(x));
  end
endfunction