driver.seq_item_port.connect(sequencer.seq_item_export);
i am using this line in agent.
But i am facing the following compilation error:
seq_item_export is not a class item******
What could be the mistake?
driver.seq_item_port.connect(sequencer.seq_item_export);
i am using this line in agent.
But i am facing the following compilation error:
seq_item_export is not a class item******
What could be the mistake?
In reply to parvez ahmed:
i did the following mistake
sequencer extends uvm_sequence
instead of
sequencer extends uvm_sequencer.
Hence faced the above problem.
Thanks,
Parvez
In reply to parvez ahmed:
A recommendation is to never extend uvm_sequencer as there is nothing you need to add to it and you could end up breaking the functionality.
Instead, you should use a typedef to define your sequencer in your package file:
typedef uvm_sequencer#(my_sequence_item) my_sequencer;