Coder Social home page Coder Social logo

Provide a WARNING (user settable via options to ERROR) if any randomisation is attempted without first providing a seed about osvvm HOT 2 OPEN

SkydiverTricky avatar SkydiverTricky commented on June 12, 2024
Provide a WARNING (user settable via options to ERROR) if any randomisation is attempted without first providing a seed

from osvvm.

Comments (2)

JimLewis avatar JimLewis commented on June 12, 2024

For Coverage using the singleton, when NewID is called, the seed is automatically initialized to:
InitSeed( NewCoverageID, Name & string'(GetAlertLogName(ParentID))) ;

So the only issue is with RandomPType.

When would a WARNING/ERROR be thrown by randomization with RandomPType? Would the check be done during randomization itself. That would be ugly as it implies additional overhead to every randomization. Not sure I would want to add that sort of overhead - just to make sure everyone called initseed.

We could have a central randomization object that is used to exclusively to randomize seeds at startup. That way rather than a static default, every randomization object would end up with a unique seed value. It would not be deterministic though as if the processes ran in different orders, the seed would be different for that process. So that is not too good.

We could have EndOfTestReports check and see if the seeds were every initialized and report that at the end of the test. That sort of overhead would be acceptable - oops that is not possible since the randomization objects are separate shared variables and not a singleton - but maybe if we keep throwing things at the wall something that is ok will emerge.

from osvvm.

JimLewis avatar JimLewis commented on June 12, 2024

It would be a great lint check for TerosHDL or Sigassi - that is where a check like this should be

from osvvm.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.