Closed shareefj closed 9 months ago
@shareefj
This is because you need to run randomize_with
on the object you are randomizing. What is in the examples that does not work, is that you basically override the "tests" list. With the copy. In a different code that's what you are doing:
tests = [Test() for _ in range(10)]
tests = list(map(Test.randomize_with, tests))
What you should do:
tests = [Test() for _ in range(10)]
map(Test.randomize_with, tests)
@shareefj Please let me know if the issue is resolved. I added a testcase describing your problem. https://github.com/mciepluc/cocotb-coverage/blob/cf465b592da6af92f75bd38ebc75b80cb05cc0be/tests/test_crv/crv_test.py#L489-L523
Sorry, been a long time since I looked at this. I'll accept your answer. Cheers.
Any idea why I can't generate a list of randomized transactions using the following?
results in: