In reply to milinraijada:
Sometimes, when in doubt, see what tools give you as a result
But, another point, a function is something that happens in zero time, has no delays or current processes. Tasks will do this.
KISS is a good philosophy!
:)
Ben Cohen SystemVerilog.us