shaddad Posted July 18 Report Share Posted July 18 I am trying to use constrained randomness using macros such as SCV_CONSTRAINT, SCV_SOFT_CONSTRAINT and the class scv_extensions. I need to know about other structures available to manage these constraints. For example, randomize a variable that control the constraint of other variable first. Or, constraint a variable inside a set or range of values such as in system verilog using inside operator ... etc. Where can I find the document that describes all of this? The examples only show the use of SCV_CONSTRAINT, SCV_SOFT_CONSTRAINT. Pls help! Quote Link to comment Share on other sites More sharing options...
Matt Bone Posted July 19 Report Share Posted July 19 There are documents included in the SCV package. This includes a Specification doc: docs/scv/scvref/vwg_1_0e.pdf However, I recommend looking through this document for answers to your questions: docs/scv/scv_random_white_paper4.pdf The white paper presents several examples that are relevant, such as constraining to a list of values, similar to "inside" in SystemVerilog. I don't think SCV has a specific "solve before" feature like SystemVerilog, but you can achieve similar with customized next() functions, or perhaps soft constraints in some cases. Quote Link to comment Share on other sites More sharing options...
shaddad Posted July 20 Author Report Share Posted July 20 I could not find the document scv_random_white_paper4.pdf if you have it, kindly email it to me at: samerhaddad@hotmail.com Pls help! Quote Link to comment Share on other sites More sharing options...
Matt Bone Posted July 23 Report Share Posted July 23 The SCV Randomization guide can also be found here: https://github.com/ezchi/scv/blob/master/docs/scv/scv_random_white_paper4.pdf Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.