How to use a random variable value generated in one sequence in another sequence

In reply to vivekbalanandan:

You should not be using the config_db to pass information between sequences. The config_db should only be used to pass configuration items between components during the build phase only. Trying to use the config_db to pass data can significantly impact your simulation performance.

There is nothing that prevents you from using virtual sequences with only one agent. The purpose of a virtual sequence is to coordinate the behavior between multiple sequences, even if they are being used on one sequencer.

Also, don’t use the `uvm_do* macros. They are very limiting and severely restrict your ability to control your sequences/sequence_items. You should create/start your items directly.