URL
https://opencores.org/ocsvn/rng_lib/rng_lib/trunk
Subversion Repositories rng_lib
Compare Revisions
- This comparison shows the changes necessary to convert path
/rng_lib/trunk/bench/vhdl
- from Rev 11 to Rev 8
- ↔ Reverse comparison
Rev 11 → Rev 8
/rng_lib.vhd
155,7 → 155,7
z := (x * x) + (y * y); |
end loop; |
-- Box-Mueller transform |
rnd_out.rnd := rnd_out.y + rnd_out.z * y * sqrt(-2.0 * ln(z)/z); |
rnd_out.rnd := rnd_out.y + rnd_out.z * y * sqrt(-2.0 * log(z)/z); |
-- Exponential distribution |
when EXPONENTIAL => |
rnd_out := rng(rnd); |