Hi
In my SV env I have the below code
`define MY_DEF $root.u1.u2.u3
This code is placed in one of the sv packge .
I compile the package first and then the top tb in which u1.u2.u3 is present. If I use questasim 10.1d I do not get this error message but if I use questasim 10.2c I am getting the error message “$root access from within packages is not allowed.”
I know hierachical access is a bad way of coding the env , but it has been done for some back door acess . I cannot afford to change the env now but want to use the same env with 10.2c version .
Can you please suggest some solution here ?