Search the Community

Showing results for tags 'fork_join'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Accellera Systems Initiative
    • Information
    • Announcements
    • In the News
  • SystemC
    • SystemC Language
    • SystemC AMS (Analog/Mixed-Signal)
    • SystemC TLM (Transaction-level Modeling)
    • SystemC Synthesizable Subset v1.4 Public Review
    • SystemC Verification (UVM-SystemC, SCV)
  • UVM (Universal Verification Methodology)
    • UVM 1.2 Public Review
    • Methodology and BCL Forum
    • UVM SystemVerilog Discussions
    • Simulator Specific Issues
    • UVM Commercial Announcements
  • Portable Stimulus
    • Portable Stimulus Discussion
  • IP-XACT
    • IP-XACT Discussion
  • IEEE 1735/IP Encryption
    • IEEE 1735/IP Encryption Discussion
  • OCP (Open Core Protocol)
  • UCIS (Unified Coverage Interoperability Standard)
  • Commercial Announcements
    • Announcements

Categories

  • SystemC
  • UVM
  • UCIS
  • IEEE 1735/IP Encryption

Calendars

  • Community Calendar

Found 1 result

  1. Hi , Please help me the following code, module fork_join_any_process(); int me[3]; task automatic print_value; input [7:0] value; input [7:0] delay; begin $display("Waiting Passed value %d",value); #(delay) $display("@%g Passed Value %d Delay %d", $time, value, delay); end endtask initial begin me[0] = 1; me[1] = 2; me[2] = 3; repeat(5) begin fork foreach(me[i]) fork automatic int id = me[i]; print_value (10+id,id); join_none foreach(me[i]) fork automatic int id = me[i]; print_value (20+id,id); join_none // wait fork; join_any disable fork; $display(" Disable Fork "); // for (int i = 0 ; i < 3 ;i++) begin // fork // print_value (10+i,7); // print_value (20+i,7); // print_value (30+i,7); // join_any // if ( i < 2 ) begin // print_value (50+i,7); // print_value (60+i,7); // end // end end $display("@%g Came out of fork-join", $time); #20 $finish; end endmodule Expecting the output as: Waiting Passed value 11 Waiting Passed value 12 Waiting Passed value 13 Waiting Passed value 21 Waiting Passed value 22 Waiting Passed value 23 @1 Passed Value 11 Delay 1 Disable fork Waiting Passed value 11 Waiting Passed value 12 Waiting Passed value 13 Waiting Passed value 21 Waiting Passed value 22 Waiting Passed value 23 @1 Passed Value 11 Delay 1 But unable to get that, Please help me with this. Thanks a lot !!