SV: fork join - EDA Playground
Warning! This exercise has been opened in another tab; autosave has been disabled. Close this tab or refresh to reactivate.

 Languages & Libraries

 Tools & Simulators

 Examples

203


26
 
1
// Code your testbench here
2
// or browse Examples
3
4
module fork_join_example;
5
6
  initial begin
7
    fork
8
      begin // process A
9
        $display("Process A started at time = %0t", $time);
10
        #10;
11
        $display("Process A completed at time = %0t", $time);
12
      end
13
      begin // process B
14
        $display("Process B started at time = %0t", $time);
15
        #15;
16
        $display("Process B completed at time = %0t", $time);
17
      end
18
      begin // process C
19
        $display("Process C started at time = %0t", $time);
20
        #20;
21
        $display("Process C completed at time = %0t", $time);
22
      end
23
    join
24
    $display("fork-join completed at time = %0t", $time);
25
  end
26
endmodule
xxxxxxxxxx
1
 
1
// Code your design here
2
653 views and 0 likes     
 
fork join example

fork join example

130:0