title: SystemVerilog: Using packages with classes and virtual interfaces
body: <p>I'm a relative newbie to SystemVerilog.</p>
  
  <p>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.</p>
  
  <p>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.</p>
  
  <p>What am I doing wrong? 
  How can one package a BFM with a virtual interface?</p>
  
  <p>Thanks,
  Ran</p>