Skip to the selected question
ASIC.FYI

ASIC Question Bank

1,000+ hardware interview questions
DescriptionQ345
Page ↗
Q345DVASIC interview problem

Drive random back-pressure

TechniquesStimulusReady/validProbability
DifficultyEasy
TopicVerification Utilities
LanguageSystemVerilog
Requirements3 checkpoints
01

Problem

Drive ready high on approximately pct_ready percent of cycles to create randomized back-pressure.

Example input and output

Use this case to check your interpretation
Input
pct_ready=25; random draws over four clock edges=[12,80,24,60] from 0..99
Output
ready=[1,0,1,0]
Explanation

A fresh clocked draw is high only below the clamped 25-percent threshold; pct_ready 0 and 100 become deterministic low and high limits.

02

Requirements (3)

  • Update ready on the interface clock.
  • Accept a percentage from 0 through 100.
  • Generate a fresh decision each cycle.