Closed Divya2030 closed 4 years ago
@Divyanirankari
You should NOT use constraint solver for such a task. This is a typical scenario of usage of the random number generator, as you provided. Please use random.randint
or np.random.randint
. In order to combine random generation with contraint solver, please use pre_randomize()
or post_randomize()
functions.
Please look at the correct usage in the provided example. Note that randomized are fields that have small domains, so constraint solver can easily find the solution. For larger domain - generating the packet payload - a post_randomize()
and random.randint
is used.
@mciepluc Ok will use pre_randomize() and post_randomize(). How to find coverage for this type of scenario.?
What will be the bins for this scenario in Coverpoint. ?. I am not able to understand?
@Divyanirankari I am sorry but I do not get your question. You as a designer should know what should be included in the functional coverage scope and define the bins accordingly.
@mciepluc Ok Thanks