According to SystemVerilog LRM 3.1a (p. 38), you can pass a dynamic array as an argument to function tasks:
task foo( string arr[] );
Is it possible to assign a default value to this argument (an array of zero size)? Most likely, we can do with other arguments:
task foo2(int i = -1, byte z = 0);
source
share