Issues while connecting port in class hierarchy to a module having imp

In reply to cuonghle:

I appreciate your reply but I respectfully disagree with phasing in my_class .

The above code is a small example of what I am trying to do .
There is already a post here to achieve phasing in static entity like modules .

Although its opposite to what is normally implemented in code , its still possible ( Achieving phasing in modules )