Vengineerの妄想

人生を妄想しています。

protected function new は、あり?

Verification Engineerの戯言

Verification GuildのSV constructorによると、
    protected function new(args);
    endfunction 
というのがありのようです。ただし、VCSではNG....ということです。

このようにすると、
    a_inst = new(); 
newが呼べないというエラーになります。protectedを指定しているので外部からは呼べないからです!

検証、Verification、SystemVerilog