I am trying to functional coverage for APB protocol, and this error occurred
Argument name ‘req’ for Virtual method in subclass doesn’t match the argument
Here snippet of this code,
class apb_coverage extends uvm_subscriber#(apb_master_items);
apb_master_items item_h;
function void write (apb_master_items req);
item_h=req;
cg_apb.sample();
endfunction: write
In reply to CHANDANI B KUKADIA:
SystemVerilog requires that the complete prototype matches when you extend a virtual method. That includes argument names because you are allowed to pass arguments by name instead of positional. write() is a virtual method in uvm_subscriber.