Sindhiya C R
Newbie level 4
Hi,
We can use typedef inside the class for include another class. I am having class as base,and interface as network and I have instantiated this interface inside the base class..While compiling this base class it showing error in interface instantiation
I tried as below..But it shows error only
//Interface
interface network();
//input/output
modport mod(cb)
endinterface
//BASE class
typedef network.mod intf;
class base;
virtual interface network.mod intf;
endclass
or any other way to avoid compilation error while compiling this base class with interface?
We can use typedef inside the class for include another class. I am having class as base,and interface as network and I have instantiated this interface inside the base class..While compiling this base class it showing error in interface instantiation
I tried as below..But it shows error only
//Interface
interface network();
//input/output
modport mod(cb)
endinterface
//BASE class
typedef network.mod intf;
class base;
virtual interface network.mod intf;
endclass
or any other way to avoid compilation error while compiling this base class with interface?