Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

System Verilog For Join

Status
Not open for further replies.

kansagaratushar

Newbie level 5
Joined
Jan 7, 2013
Messages
8
Helped
1
Reputation
2
Reaction score
1
Trophy points
1,283
Activity points
1,338
with use of fork join /fork join_none/ fork join_any how can I complete exact 2 concuttent processes out of 4 processes...?

It means..

fork
process1;
process2;
process3;
process4;
join/join_any/join_none

output:
process1
process2
 

I am assuming you want ANY 2 processes out of 4
Code:
begin
  int N = 4;
  fork
     begin process1; N--; end
     begin process2; N--; end
     begin process3; N--; end
     begin process4; N--; end
   join_none
   wait(N==2);
   disable fork; // kills remaining process if that is what you want to do
end
 
Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top