data/full_repos/permissive/447976230/fpga/usrp2/models/math_real.v
1: b"%Error: data/full_repos/permissive/447976230/fpga/usrp2/models/math_real.v:144: syntax error, unexpected var, expecting IDENTIFIER\n      input real var ;\n                 ^~~\n%Error: data/full_repos/permissive/447976230/fpga/usrp2/models/math_real.v:158: syntax error, unexpected var, expecting ')'\n         gaussian = mean + sqrt((-2.0*log(s))/s) * v1 * sqrt(var) ;\n                                                             ^~~\n%Error: Exiting due to 2 error(s)\n"
function real arctan_xy ;
      input real x ;
      input real y ;
      real retval ;
      begin
         retval = 0.0 ;
         if( x < 0.0 ) retval = MATH_PI - arctan(-abs(y)/x) ;
         else if( x > 0.0 ) retval = arctan(abs(y)/x) ;
         else if( x == 0.0 ) retval = MATH_PI_OVER_2 ;
         arctan_xy = (y < 0.0) ? -retval : retval ;
      end
   endfunction
function real arctan_xy ;

      input real x ;
      input real y ;
      real retval ;
      begin
         retval = 0.0 ;
         if( x < 0.0 ) retval = MATH_PI - arctan(-abs(y)/x) ;
         else if( x > 0.0 ) retval = arctan(abs(y)/x) ;
         else if( x == 0.0 ) retval = MATH_PI_OVER_2 ;
         arctan_xy = (y < 0.0) ? -retval : retval ;
      end
   endfunction