qinhailiang Posted June 1, 2011 Report Share Posted June 1, 2011 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? Quote Link to comment Share on other sites More sharing options...
dave_59 Posted June 1, 2011 Report Share Posted June 1, 2011 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. Quote Link to comment Share on other sites More sharing options...
qinhailiang Posted June 2, 2011 Author Report Share Posted June 2, 2011 thanks for your reply! if i has similar questions above, i will post it into appropriate forum block. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.