Site icon Hardware Design and Verification

What is fork join ? uses of fork join?

In this post I will talk about how  fork join works

So when The process has to be run in parallel , fork join method is used

 

So there are three type of join after fork are available in system verilog

  1. fork join
  2. fork join_any
  3. fork join_none

 

So I will explain in terms of diagram , diagram are shown below

 

  1. fork join : All Thread gets forked out and has to finish all its thread before proceeding next function
  2. fork join_any :  All Thread gets forked out and has to finish  at-least one  thread before proceeding next function
  3. fork join_none: All Thread gets forked out and none of them has to finish  before proceeding next function

 

 

 

Exit mobile version