Skip to the selected question
ASIC.FYI

ASIC Question Bank

1,000+ hardware interview questions
DescriptionQ033
Page ↗
Q033DVASIC interview problem

Clocking-block output timing

TechniquesSystemVerilogRace-free interfaces
DifficultyHard
TopicVerification Utilities
LanguageSystemVerilog
Format4 choices
01

Problem

A DUT always_ff samples raw req on each posedge. The driver uses a #0 clocking-block output and holds req at 1 through the following posedge. At which posedge can the DUT first sample 1?

Starting declarationSystemVerilog
clocking cb @(posedge clk);
  output #0 req;
endclocking

// Driver: req remains 1 through the following posedge.
@(vif.cb);
vif.cb.req <= 1;
02

Answer choices (4)