0

I have a table with a known number of elements. I would like to randomize its elements so that each time I display it, its elements are displayed in random order. in vhdl using Fpga stratix3

2
  • 1
    Welcome to Stack Overflow. It is expected that question-askers show some work and ask specific questions, eg "How can I generate a random number in VHDL?" (which almost certainly has been asked already and so there will be an answer). Anyway, you don't give enough information for anyone to answer your question, eg: Is this for hardware? Or for your testbench? Commented Jun 21, 2019 at 13:18
  • To get you started: semi random values can be created with en.wikipedia.org/wiki/Linear-feedback_shift_register Commented Jun 25, 2019 at 11:53

1 Answer 1

0

There is no easy VHDL langage solution to generate random numbers on hardware. To generate a pseudo random number, you can use a LFSR. See for example: Pseudo Random Number Generator using LFSR in VHDL

To generate a true random number, you must create a ring oscillator random number generator. See for example: https://security.stackexchange.com/questions/81843/ring-oscillator-true-random-number-generator-trng-vs-physically-unclonable-fu

For simulation there is built-in support for random numbers in VHDL. See for example: Generating random integer in vhdl

You can then use the generated random numbers to randomize your array.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.