DescriptionQ252
Q252DVASIC interview problem
Non-blocking global timeout
TechniquesWatchdogforkGlobal timeout
DifficultyMedium
TopicTemporal Checks
LanguageSystemVerilog
Requirements3 checkpoints
01
Problem
Start a background timer that ends the test after a fixed number of clock cycles.
Example input and output
Use this case to check your interpretationInput
start global_timeout(name="smoke",cycles=50)Output
caller returns immediately; detached timer reports smoke fatal after 50 positive edgesExplanation
The forked background branch counts clock cycles without blocking test setup and identifies its configured timer in the failure.
02
Requirements (3)
- Do not block the caller.
- Count positive clock edges.
- Include the timer name and cycle count in the fatal message.
