A pseudo-random number generator

Status
Not open for further replies.

Binome

Full Member level 3
Joined
Nov 16, 2009
Messages
152
Helped
2
Reputation
4
Reaction score
2
Trophy points
1,298
Location
Lyon, France
Activity points
2,405

You could make init_seed a port - connect it to a register map from a CPU and have the software set the seed and reset the design?
 

OK but the FPGA can not be separated from the CPU as a standalone component.
 

True randomness in an FPGA is very hard to configure and doesnt really exist.
I have heard of people creating ring oscilators around the outside of the FPGA with large delays between luts so that combinations of the long routes and tempurature will give them some good randomness, but I have never seen it implemented.
Hence why most people just use code similar to yours

Why not just set the init_value to something non-zero when you instantiate the block?
 

I'll see on the used board if something could be this non-zero value.
Thank you.
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…