You are on page 1of 1

Task

Function

May execute on non-zero simulation time

Executes on zero simulation time

May have delay, event or timing control

Not possible as it executes on zero

constructs

simulation time

Cannot return a value

Always return a single value

Pass values (can be multiple) through

Cannot have output or inout

output or inout arguments

arguments
Can enable other functions and not

Can enable other functions and tasks

task
Must have atleast one input. Cannot

Can have input, output or inout

have output or inout

You might also like