Skip to question
asic.fyi
DesignVerificationSystemVerilogFirmwareArchitectureInterviews
asic.fyi/Interview questions/Verify a nested microcode decoder

Hardware interview practice

Verify a nested microcode decoder

MediumUVM ComponentsSystemVerilog

Write the bounded parser oracle and two core streaming properties for a token decoder that expands nested repeat groups up to depth four and 64 output bytes.

Try it in the question bankReason first. Then compare.

Keep this exact question selected while you check your answer and review the full solution.

Practice this question →
Reviewed example

Work through one case

Input
token frame encodes COUNT 2 OPEN, literal A, COUNT 2 OPEN, literal B, CLOSE, CLOSE
Expected output
decoded bytes="ABBABB"

The inner group expands B twice to BB, then the outer group repeats ABB twice without exceeding depth or output limits.

What to cover

Requirements

  1. Predict exact legal bytes or one all-zero error beat using the earliest accepted-token fault and the specified code priority for simultaneous conditions.
  2. Enforce at most 32 input tokens, nesting depth four, repeat counts 1 through 4, nonempty groups, and decoded length 1 through 64.
  3. Require first output availability within two cycles of an accepted final token and keep every stalled output field stable.
  4. Explain legal-tree generation, one-fault mutation, response scoreboarding, reset, and coverage as follow-up verification work.
asic.fyi · Learn silicon end to end.info@asic.fyi