Creating Specific coverpoint bins based on another fields - Functional Coverage

In reply to ayehia:
And another glitch is if a covergroup is embedded in a class, it must be constructed inside the constructor of the class. So if you are unable to get the config while construing the class, you will have to define the covergroup outside this class (either a standalone covergroup, or defined in another class that gets constructed when you are able to construct the covergroup.

Note, you probably just want

 bins addrs_bins[] = valid_dest_addr;