In reply to milin parekh:
`define EC env_cfg EC is the name of class, please point to the instance, it will work