Regarding Root access

Hi,
For back door access i am using $root in my env. which it shows error like “$root access from within packages is not allowed”.
after that i have added switch “-permissive”, now the error is gone.
Whether the above method is correct or not.

Thanks,
Raja

Packages are not supposed to have any dependencies outside of other imported packages, so this usage is not legal according to the IEEE 1800-2012 LRM. Adding hierarchical references anywhere makes your code less reusable if the design hierarchy changes.

We recommend hierarchical references only from a module in your testbench fixture.

In reply to dave_59:

Hi dave,
Thanks for your valuable reply.
Is there any alternate solution for this issue?

Thanks,
Raja

In reply to arasupotri.natarajan90:

There are a number of alternatives: