Forum Discussion
Altera_Forum
Honored Contributor
9 years agonot random at each execution
Hi all, I have a problem with generating a random from the uniform function, it is always the same with each execution of the process. I have attached a piece of code to the testbenc...
Altera_Forum
Honored Contributor
9 years ago --- Quote Start --- [h=3]Okay, Good idea. Another question that I am asking, if I can have the effect random but Synthesizable on FPGA ? thank you [/h] --- Quote End --- uniform is not a synthesisable function, as real types are not synthesisable You will need to build a LFSR, which generates a pseudo random sequence, otherwise you'll have to investigate other methods of generating random numbers in FPGA.