Forum Discussion
Altera_Forum
Honored Contributor
13 years ago --- Quote Start --- Questions: 1. Should this block be synthesisable? --- Quote End --- no just testing --- Quote Start --- Questions: 2. How "random" does it need to be? --- Quote End --- i want to generate 36 output values with only 1 input --- Quote Start --- Questions: I ask these questions because: 1. VHDL has a random number generator, but it is not synthesisable and only meant for testbenches --- Quote End --- would plz tell me about it, and if it take range or not?? --- Quote Start --- Questions: 2. Have you looked into a LFSR? http://en.wikipedia.org/wiki/lfs with this you can create a pseudo random sequence. This would be the easiest logic solution. I have heard of others before but they often involve rlocs and require good knowledge on oscilators. One solution (i havent done it, but had it described) is to route a clock though some logic as far apart as possible. Then sample the clock at a given rate, to try and give a random bit (it was described to me a long time ago, so I may have some details wrong). --- Quote End --- the work arround i did was similar to LFSR.. execuse me, i couldn't get the rest of this.. thanks, Niveen