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

Re: [f-cpu] random number generator



just one question: is it possible to add a kind of rand instruction in the f-cpu instruction set?
It could give a "true" random number (integer) between 0 and MAX_INT (following SIMD flags)...
I mean, random numbers are a great problem in programming, so it could be a good idea to hardwire one generator into the f-cpu...
i don't know if it is possible and if it is useful, but it could be a good idea...


Yann Guidon a écrit :


low-entropy data can be used first to check
dumb errors, ie using a very simple polynomial LFSR.
Then the rest (like rounding error behaviour and more
sophisticated stuffs including statistical measures) will
need a high entropy pseudo-random generator.

Good for quick testing but the hardware needs to be built first.

it can be "built" if it is coded and Gaetan is doing that, indeed.
hum.. just trying :)

Concerning the testing time : the issue comes from running
the "full build and test" script at home whenever a change
is made on other units. At the end of the development of a particular
unit, it is possible for someone to run a very long test,
feeding the design with millions of test patterns.
The computer could run a few days, just to be sure.
Others would not be required to do this,
only to run the test with a few thousands of patterns.
In fact, it's as simple as a compilation parameter
that says how much tests should be done, the less the faster.

YG

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

--

~~ 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/