Writing coverpoints using with clause

In reply to vinayks:

You need to show the declarations of all variables involved. Also realize that bin construction happens with covergroup construction. So we need to know the values at that time.