Jump to content

Are task and function belong to process?


Recommended Posts

is task and function belong to process?

In SV-2009, section 9.5 refer to as follows:

9.5 Process execution threads

SystemVerilog creates a thread of execution for the following:

— Each initial procedure

— Each final procedure

— Each always, always_comb, always_latch and always_ff procedure

— Each parallel statement in a fork-join (or join_any or join_none) statement group

— Each dynamic process

Are task and function belong to process?

Link to comment
Share on other sites

The is really a SystemVerilog question, not a base class library question. Next time please use the appropriate forum.

A task or function call does not create a new process; it is executed by the same process that calls it.

Some people think that the task calls below are creating new processes:

fork

task_call1;

task_call2;

join

But the way to read this is that each statement inside fork creates a new process. In this example, a process is created for each statement, and then each process executes a task call.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...