Martin <
[email protected]> writes:
> The problem that I have here now is obviously that I have the same
> seed for each startup of the simulation! I wonder if there is a very
> easy way to get 8 random bits for my temp signal at the beginning?
You seem to mix up two issues:
1. You want to change the seed: Valid requirement. Pseudo random
number sequences get kind of boring after a while. Other have
posted solutions. I prefer using generics for that kind of stuff.
2. You want a random seed. Do you really? Think about it. What if you
find a bug and now want to verify your fix. Will you be able to
reproduce the exact system state?
I would use reproducible generated numbers, perhaps the output from
$(date +%s). Store that number along with your simulation data.
Regards
Marcus
--
note that "property" can also be used as syntaxtic sugar to reference
a property, breaking the clean design of verilog; [...]
(seen on
http://www.veripool.com/verilog-mode_news.html)