-1
未知のサイズのベクトル/配列を返す関数を定義できますか?systemVerilog - 未知のサイズのベクトル/配列を返す関数を定義しますか?
戻り値を指定できます
ビット[15:0]、ビット[10:0]、ビット[2:0] ....私が欲しい
のようなものを定義することができます。
function bit [] foo (int size, int mem, string mem_name);
endfunction: foo