In reply to cgales:
In reply to UVM_LOVE:
In the test you are running (seq_from_test), you are starting ‘apb_sequence’. In ‘apb_sequence’, you are sending ‘packets’ number of packets. Since ‘packets’ is never set to any specific value, it defaults to 0, hence the sequence not doing anything and the test immediately exiting.
- Thank you Sir, I found it. And, I set uvm_config_db#(int)::set(null,“*”,number_of_packets",i); in testbench.sv
and I get a ‘packets’ by if(!uvm_config_db#(int)::get(this,“”,number_of_packets",packets))
'uvm_info(get_type_name(), “the getting of packets variable failed”,UVM_LOW)
and I checked packets value 20 from apb_basic_test class.
but stil my sequence can’t get a packets variable from parent class.
I though that if parent get a packets value from uvm_config_db , this packets properties will be inherited to child class. so I could use packets variable in uvm_config_wrapper_from_test and seq_from_test class. but when I check it packets variable value is still 0 which means the packets variable couldn’t pass to child class.
Do I need to get a packets value at every each sequence?
(Not sure but I already add
if(!uvm_config_db#(int)::get(this,“”,number_of_packets",packets))
'uvm_info(get_type_name(), “the getting of packets variable failed”,UVM_LOW)
to every sequence then it seems work. but is this right way?
- if I choose “uvm_config_wrapper_from_test”, sylee_apb_sequence can’t get a next stage .
It’s stuck on create apb_sequence_item.
so could you guide me how to resolve this?