# transient simulation with random values

1. ## transient simulation with random values

Hi all,

I have a data signal D that should change value at random times throughput X CLK cycles. For example, during the first cycle, D would change value e.g. at 30% of the CLK period and e.g. 54% during the next CLK period, etc. Each CLK period would see D changing at random times throughout the entire X CLK cycles.

I am guessing already that I need to externally generate the random data and then import it (e.g. with Matlab). The other idea I have is using Ocean with the random() function.

Any other ideas?

Cheers,
analogLow

•

2. ## Re: transient simulation with random values

vprbs - source with pseudo-random bit sequence?

1 members found this post helpful.

•

3. ## Re: transient simulation with random values

Suppose you create an oscillator whose frequency is a well-chosen multiple of your clock? Something that is not a simple fraction. Suppose you try 1.23 or 1.31 or 1.37. This isn't the same as random occurrences but after enough cycles it may perform in a similar manner.

1 members found this post helpful.

•

4. ## Re: transient simulation with random values

Thanks to both of you for your ideas ... I finally got a chance to try them.

The oscillator idea gave me another idea ... running the oscillator with monte-carlo. This gives enough variation/randomness to help me ... the only problem is the speed.

The vprbs - source is what I ended up using to test the block. It works "good enough". Finding documentation on vprbs is tough so I am still playing with the fields to see what it does.

Thanks again!

cheers,
analogLow

--[[ ]]--