1.

What Is The Difference Between A Verilog Task And A Verilog Function?

Answer»

The FOLLOWING rules distinguish tasks from functions:

  1. A function shall execute in one simulation time unit; a task can contain time-controlling statements.
  2. A function cannot enable a task; a task can enable other tasks or functions.
  3. A function shall have at least one input type ARGUMENT and shall not have an output or inout type argument;a task can have ZERO or more arguments of any type.
  4. A function shall return a SINGLE value; a task shall not return a value.

The following rules distinguish tasks from functions:



Discussion

No Comment Found