[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [f-cpu] random number generator



The simplest way to do it, is to write a little script that generate a
file of random number, that is reread by the VHDL teste bench.

nicO

> Hello f-cpu world !
>
> I'm looking for a real random generator for intensive tests on the
> floating point adder.
> I would like to generate randomly a set of real numbers (single or
> double precision) and feed my adder with.
>
> I've found someone but i don't know if I could use them (licence
> conflict??):
> http://tech-www.informatik.uni-hamburg.de/vhdl/packages/mathpack/mathpack.vhd
> this is a MATH_REAL package for ones (like me) who doesn't have the
> expensive math_real from ieee.
>
> I don't really need a complex one, just something to avoid me to type
> every constant...
> and an other problem is the seed: is there a "time()" function in vhdl,
> or anythig else to "pseudo-random" initialize the generator...
> I'm under windows so i don't have /dev/random  >:o ...
>
> the random package in the source tree just read a file... i will use it
> if i don't find anything else but i don't really like it...
>
> thanks,
>
> so i go back to my adder
>
> byebye
>
> --
>
> ~~ Gaetan ~~
> http://www.xeberon.net

*************************************************************
To unsubscribe, send an e-mail to majordomo@seul.org with
unsubscribe f-cpu       in the body. http://f-cpu.seul.org/