PDA

View Full Version : Events and functions of Virtual interface



GGL
02-11-2008, 12:15 AM
Hi all,

I want to access the events and functions of interface , in my ovm_scoreboard class for scoreboarding.

But when I tried it it is giving error as below....

ncelab: *E,CUDVIO

Is there any solution for it ?

Thanks & Regards:
GG

dlong
02-11-2008, 02:48 AM
Hi GG,

Although SystemVerilog interfaces can contain functions and events, IUS does not currently allow you to access these via a virtual interface.

I would suggest restricting the interface to simple variables and putting the functions, events, etc that react to those variables inside the monitor class instead. If you have used any SV sequences and properties to detect transactions inside your interface, you will have to recode them as procedural state machines in your monitor (since you cannot put concurrent properties inside a class).

You can also declare a clocking block and corresponding modport inside your interface and access it in the monitor via a virtual interface.

Hope that helps.
Regards,
Dave