How can i acces variable from sequence to my agents using either m sequencer or p sequencer.
There is variable in the sequence local to sequence.
I want access the variable inside my monitor how this can be accessed by using m sequencer or p sequencer.
Thank you
In reply to narendravk28:
To clarify: does your sequence define how the seq_item will be calculated ot is it a virtual sequence or is it a data mebmer of the seq_item?
In reply to chr_sue:
Its a data member of sequence item.(Its not virtual sequence)
In reply to narendravk28:
Then you can pass the seq_item from the driver to the monitor using an analysis port. In my eyes this is the most simple solution because both are components of your testbench. The sequence/seq_item does not belong to the topology.
In reply to chr_sue:
Thank you, I understood connecting seq_item_port and sending it to monitor via driver and item will be available in driver since it is parameterized to driver right?.
In reply to narendravk28:
From your seq_item_port in the driver you are retrieving a seq_item. You can pass a copy of this seq_item to the monitor using an analysis_port in the driver.
I do not believe you are processing this seq_item in the monitor, but in the scoreboard, i.e. you could connect this analysis:port in the driver directly to the scoreboard.