In reply to dave_59:
My covergroup is inside a module and not a class. I'm trying to cover all values of this counter variable(for all combinations of the higher dimensions).
logic [4:0][7:0][2:0] counter;
The [4:0] dimension is one hot (so, it can hold 5 values)
The [7:0] dimension is one hot (so, it can hold 8 values)
The [2:0] can be any value (it's not decoded) and is what will be my coverpoint variable.
So, I'm trying to see if there's a way of writing these 40 coverpoints without typing each of them. Please let me know if what I wrote above isn't clear. Thanks for the help.