Logic Design - Functions and Tasks [Verilog]