Hi Dave,
Thanks for quick reply, the commented code is when there is no sequence2. In that case the driver gets item from sequence1 and drives it. Earlier there was no sequence2 and any code related to it. I commented these lines now considering i have another layer over the sequence1 which appends some data to the existing sequence1’s data.
Using up_sequencer the sequence2 gets next item as the driver was getting then adds 'd300 to it and I expect output as below :
UVM_INFO: … Data recieved in the driver : data = 335
I know that I am missing some basic understanding in above code. and because of which I am getting below error:
UVM_INFO @ 0: reporter [RNTST] Running test my_test…
***E,TRNULLID: NULL pointer dereference.
File: ./top.sv, line = 129, pos = 19
Scope: worklib.my_pkg::sequence2@3247_4.body
Time: 0 FS + 36
**Verilog Stack Trace:
0: task worklib.my_pkg::sequence2@3247_4.body at ./top.sv:129
1: process in worklib.uvm_pkg::uvm_sequence_base@3247_4.start at /proj/asic/predev/tools/uvm_ml/UVM_ML-1.9-XLM18.03.004/ml/frameworks/uvm/sv/1.1d-ml/src/seq/uvm_sequence_base.svh:314
./top.sv:129 up_sequencer.get_next_item(si1);