Dear Forum,
I want your thought about self reference vs this.
For example this code is completely fine in point of LRM:
class axi_seq_item ;
axi_seq_item cmd_item; // self reference to command
rand bit[31:0] id;
rand int itype;
function new (string name = "axi_seq_item");
endfunction
My question is why someone needs to use self reference?
axi_seq_item cmd_item;
why system verilog “this” is not enough?
Can you please share your thoughts.
Thanks
Hayk