Skip to the selected question
ASIC.FYI

ASIC Question Bank

1,000+ hardware interview questions
DescriptionQ199
Page ↗
Q199DVDesignASIC interview problem

Inactive, nonblocking assignment (NBA), and postponed regions

TechniquesSystemVerilogAdvanced scheduling
DifficultyHard
TopicSV
LanguageSystemVerilog
Format4 choices
01

Problem

What do the two messages print at the rising edge?

Starting declarationSystemVerilog
logic clk = 0, a = 0, b = 0;
always @(posedge clk) begin
  a <= 1;
  b <= a;
  #0 $display("D %0b %0b", a, b);
  $strobe("S %0b %0b", a, b);
end
initial #5 clk = 1;
02

Answer choices (4)