Dear Forum,
Please help understand one issue connected with virtual interface usage in package.
So I have a package in which I want to declare the interface instance. When I am declaring it, than simulator gives error.
However if I declare the interface as virtual than no error comes up:
package defsPkg; // Simulator gives ERROR
...
fifoPortsItf tiFifoItf;
endpacakge
package defsPkg;
...
virtual fifoPortsItf tiFifoItf; // No ERROR
endpacakge
I want to understand why there is a need to use virtual interface in the package, as it is static object?
In the class we need to use virtual interface because class is dynamic object but interface is static object, to make the connection.
However here we have 2 static objects interface and package, why we need to use virtual interface here?