In reply to dave_59:
Hello Dave,
Thank you for the instant reply.
I tried to use the ref keyword and i am getting an error.
** Error: The select “req_in[0]” into a packed value is illegal for use with ref argument “condition”
Here I am passing an argument req_in[0] which is declared as logic [3:0] req_in;
Also, can i create arrays of covergroups in module ?