Function
|
Task
|
A Function must execute in one simulation time
unit.
|
A Task may execute in non-zero simulation time.
|
A function can’t contain time-controlling event.
|
A task can contain time-controlling event.
|
A function can enable only function, not task.
|
A task can enable function and task.
|
A function must have at least one input argument.
|
A task can have zero or more arguments of any
type.
|
A function returns a single value that is of bit
or vector.
|
A task doesn’t return a value.
|
Search This Blog
Wednesday, 4 December 2013
Difference between Function and Task in Verilog
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment