D
Davy
Guest
Hi all,
When studying SystemVerilog, some book said 'virtual' is used to get
the reference of the interface. But why the language not use 'ref' to
get interface reference? And what's 'virtual interface' actually mean?
Thanks!
For example,
class eth_mii_mac;
local virtual eth_mii_if sigs;
task new (virtual eth_mii_if sigs);
this.sigs = sigs;
endtask: new
.... ...
endclass: eth_mii_mac
Best regards,
Davy
When studying SystemVerilog, some book said 'virtual' is used to get
the reference of the interface. But why the language not use 'ref' to
get interface reference? And what's 'virtual interface' actually mean?
Thanks!
For example,
class eth_mii_mac;
local virtual eth_mii_if sigs;
task new (virtual eth_mii_if sigs);
this.sigs = sigs;
endtask: new
.... ...
endclass: eth_mii_mac
Best regards,
Davy