Skip to the selected question
ASIC.FYI

ASIC Question Bank

1,000+ hardware interview questions
DescriptionQ019
Page ↗
Q019DVDesignASIC interview problem

Nested disable fork

TechniquesSystemVerilogAdvanced scheduling
DifficultyHard
TopicSV
LanguageSystemVerilog
Format4 choices
01

Problem

Which print sequence is produced?

Starting declarationSystemVerilog
initial begin
  fork
    begin #2 $display("A"); end
    begin
      fork
        #4 $display("B");
        #6 $display("C");
      join_none
      #3;
      disable fork;
      $display("D");
    end
  join
  $display("E");
end
02

Answer choices (4)