I'm a relative newbie to SystemVerilog.
I have a package with class A defined in it. This class uses a virtual interface, since it's a driver (BFM) in a testbench. I'm using a package so I can use the same BFM in other designs.
In my testbench, I import the A class and pass to it an instance of the virtual interface. However, when a task in the class tries to assign a value to a signal in the interface, I'm getting a compilation error.
What am I doing wrong? How can one package a BFM with a virtual interface?