Vengineerの妄想(準備期間)

人生は短いけど、長いです。人生を楽しみましょう!

protected function new は、あり?

Verification Engineerの戯言

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

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

検証、Verification、SystemVerilog