I am currently on a verification training, and still learning about UVM and it's possibilities.
I've been reading about callbacks (already read that these aren't recommended), and one thing bothers me. There is an example on academy's website in verification-methodology-reference. Macro's signature is written like this:
and then there is an example which I believe switches order of arguments, like this:
task mycomp::run_phase(uvm_phase phase);
int curr_addr, curr_data;
`uvm_do_callbacks(mycb, mycomp, my_function(this, curr_addr, curr_data))
If I am right, this macro should be invoked in component's code (i.e. run phase), and first argument should be pointing to that component, that is keyword this.
I was just wondering if I understood this correctly.
Thank you in advance!