Creating Specific coverpoint bins based on another fields - Functional Coverage

In reply to santosh_kumar_vangala:

You can do something like the following to create bins for values inside the valid_dest_addr


     bins addrs_bins[] = des_addr with (item inside {valid_dest_addr} );

However the glitch here is that the Covergroup has to be constructed (via new()) after the valid_dest_addr array is populated, otherwise it will be meaningless.