In reply to dave_59:
That works. Thanks Dave.
So the constraint in the uvm_do will apply to all randomize() function call in the body()?
I am a little confused about how it works.
Can I do this another way? Say I have a A_config object in virtual sequence.
class my_virtual_sequence extends uvm_sequence;
When a_sequence executes a_cfg.randomize(), will it have the exact addr&data as my_cfg?