+ Post New Thread
Results 1 to 4 of 4
  1. #1
    Member level 3
    Points: 2,137, Level: 10
    Achievements:
    7 years registered

    Join Date
    Nov 2010
    Location
    Earth
    Posts
    67
    Helped
    14 / 14
    Points
    2,137
    Level
    10

    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?

    fyi - I am using Cadence spectre and ADE XL environment.

    Cheers,
    analogLow

    •   AltAdvertisment

        
       

  2. #2
    Advanced Member level 2
    Points: 5,266, Level: 17
    Dominik Przyborowski's Avatar
    Join Date
    Jun 2013
    Location
    Norway
    Posts
    698
    Helped
    290 / 290
    Points
    5,266
    Level
    17

    Re: transient simulation with random values

    vprbs - source with pseudo-random bit sequence?


    1 members found this post helpful.

    •   AltAdvertisment

        
       

  3. #3
    Super Moderator
    Points: 50,445, Level: 54

    Join Date
    Apr 2011
    Location
    Minneapolis, Minnesota, USA
    Posts
    12,407
    Helped
    2464 / 2464
    Points
    50,445
    Level
    54

    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.

    •   AltAdvertisment

        
       

  4. #4
    Member level 3
    Points: 2,137, Level: 10
    Achievements:
    7 years registered

    Join Date
    Nov 2010
    Location
    Earth
    Posts
    67
    Helped
    14 / 14
    Points
    2,137
    Level
    10

    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



--[[ ]]--