• Skip to main content
  • Skip to search
  • Skip to footer
Cadence Home
  • This search text may be transcribed, used, stored, or accessed by our third-party service providers per our Cookie Policy and Privacy Policy.

  1. Community Forums
  2. Functional Verification
  3. randomizing real values in vsif

Stats

  • Locked Locked
  • Replies 4
  • Subscribers 65
  • Views 9337
  • Members are here 0
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

randomizing real values in vsif

Petros
Petros over 2 years ago

It might be an unconventional approach but I need to pass some user defined arguments that have constrained value to a test and are of type real.

In the vsif file for regression I want to randomize those values in order for them to be different in each test.

Is there a way to do this? the only randomization I found in the manual is for integers used as seeds.

Thanks in advance

  • Cancel
  • StephenH
    StephenH over 2 years ago

    Why not randomise some real number variables inside the testbench, so that the random values are determined by the same single SV seed that does the digital values?

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Petros
    Petros over 2 years ago in reply to StephenH

    Hi Stephen, thanks for your response!

    My objective is somewhat different.
    If those arguments are not passed by command line, then the DUT will randomize them. This means i have to get them to the TB via a virtual interface. I will end up doing this as it is proper practice, however i was wondering if randomizing real values with constrains is possible in vsif since i didn't find anything in the manual

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • StephenH
    StephenH over 2 years ago in reply to Petros

    The VSIF only allows for a randomly generated SV seed (signed 32-bit integer).

    Xcelium allows you to randomise "real" variables and you can put constraints on the variables.

    I don't understand how your DUT would randomise values, normally one would randomise them in the testbench and send them to the DUT! :-/

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Petros
    Petros over 2 years ago in reply to StephenH

    Indeed but it is a legacy project so I cant change the actual DUT code in which these values are randomized :(

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel

Community Guidelines

The Cadence Design Communities support Cadence users and technologists interacting to exchange ideas, news, technical information, and best practices to solve problems and get the most from Cadence technology. The community is open to everyone, and to provide the most value, we require participants to follow our Community Guidelines that facilitate a quality exchange of ideas and information. By accessing, contributing, using or downloading any materials from the site, you agree to be bound by the full Community Guidelines.

© 2025 Cadence Design Systems, Inc. All Rights Reserved.

  • Terms of Use
  • Privacy
  • Cookie Policy
  • US Trademarks
  • Do Not Sell or Share My Personal Information