Randomizing data in different components and objects

We usually randomize data in sequence.
But if we are randomizing a data in multiple components and objects (like sequence, driver, agent, test), then which randomized value will be send to DUT?

In reply to bachan21:

I’m not sure what you are asking, but as a general rule, you should only be randomizing data in two locations:

  • In your test, you should randomize the various configuration objects which control your design behavior. You should also randomize your top-level test sequences.
  • In your sequences, you should randomize the various sequences/sequence_items which generate stimulus

You shouldn’t be randomizing any data in a driver, agent or other components.

In reply to cgales:

Hi cgales,
This is an experiment to understand the execution flow in UVM
If I randomize same variable in a sequence item on multiple component which value will take most priority