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 exp ;
      input real x ;
      real retval ;
      integer i ;
      real nm1_fact ;
      real powm1 ;
      begin
         nm1_fact = 1.0 ;
         powm1 = 1.0 ;
         retval = 1.0 ;
         for( i = 1 ; i < EXPLOG_ITERATIONS ; i = i + 1 ) begin
            powm1 = x*powm1 ;
            nm1_fact = nm1_fact * i ;
            retval = retval + powm1/nm1_fact ;
         end
         exp = retval ;
      end
   endfunction
function real exp ;

      input real x ;
      real retval ;
      integer i ;
      real nm1_fact ;
      real powm1 ;
      begin
         nm1_fact = 1.0 ;
         powm1 = 1.0 ;
         retval = 1.0 ;
         for( i = 1 ; i < EXPLOG_ITERATIONS ; i = i + 1 ) begin
            powm1 = x*powm1 ;
            nm1_fact = nm1_fact * i ;
            retval = retval + powm1/nm1_fact ;
         end
         exp = retval ;
      end
   endfunction