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 rootof2;
  input n;
  integer n;
  real power;
  integer i;

  begin
    power = 0.82629586;
    power = power / 10000000.0;
    power = power + 1.0;
    i = -23;

    if (n >= 1)
      begin
        power = 2.0;
        i = 0;
      end

    for (i=i; i< n; i=i+1)
      begin
        power = power * power;
      end
    rootof2 = power;
  end
endfunction
function real rootof2;

  input n;
  integer n;
  real power;
  integer i;

  begin
    power = 0.82629586;
    power = power / 10000000.0;
    power = power + 1.0;
    i = -23;

    if (n >= 1)
      begin
        power = 2.0;
        i = 0;
      end

    for (i=i; i< n; i=i+1)
      begin
        power = power * power;
      end
    rootof2 = power;
  end
endfunction