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

1 Answer

Answer :

The following rules distinguish tasks from functions:

A function shall execute in one simulation time unit; a task can contain time-controlling statements.
A function cannot enable a task; a task can enable other tasks or functions.
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.
A function shall return a single value; a task shall not return a value.

Related questions

Description : Work that continues throughout the project and does not relate to  any specific phase of development is termed a(n) a) Milestone b) Project function c) Activity d) Task e) Baseline.

Last Answer : b) Project function

Description : Which key is used in combination with another key to perform a specific task? 1) function 2) space bar 3) arrow 4) control

Last Answer : 4) control

Description : Which of the following statements is incorrect for Parallel Virtual Machine (PVM)? (A) The PVM Communication model provides asynchronous blocking send, asynchronous blocking receive and non-blocking receive function. ... of such messages. (D) In PVM Model, the message order is not preserved. 

Last Answer : (D) In PVM Model, the message order is not preserved.

Description : What is the difference between a task bar and status bar?

Last Answer : A task bare is a place from which various application may beinitiated.A status bar show you progress for a particular application.

Description : What is the difference between a task chair and a desk chair?

Last Answer : The difference between a task chair and a desk chair is the users' work that they need to do. For example, an architect may need a specific chair to work at his/her drafting table. A desk chair will typically be the height of a desk.