Forum Discussion
Altera_Forum
Honored Contributor
14 years agoHandling large arrays in VHDL
I have a constant array of integers (2^8 words deep) declared in VHDL. Each entry is a random number in the range 0-65535. There is a nonlinear mapping between the random numbers and the index of the...
Altera_Forum
Honored Contributor
14 years ago --- Quote Start --- If you just want random numbers --- Quote End --- Actually my implementation of RNG is based on LFSR. Generating the numbers is not a problem at all. Once I generate a number, I want to figure out which "bin" between 1-256 does this number correspond to using the constant array. The mapping happens to be non-linear. For now I do it using a for loop, which requires the synthesis tool to implement large number of muxes and demuxes. I was curious to know whether there is a less resource-hungry implementation.