UVM · Hard · SystemVerilog

Constrained RV32I Instruction Sequence

Generate legal randomized RV32I arithmetic instructions for processor regression.

Task

Create a UVM sequence that repeatedly randomizes transactions while constraining opcode to OP-IMM or OP.

Examples

Constraints

What this problem is testing

UVM interview problems test transaction flow, ownership, phasing, TLM connections, checking strategy, and whether components remain reusable and debuggable.

Interview habit: before coding, state reset behavior, the state that must be stored, and the conditions that update each output.

Verification plan

Common mistakes

Interview follow-up questions

Concepts to review

RISC-V, constrained random, UVM

Open Constrained RV32I Instruction Sequence in the HDLForge interactive editor.

Related problems

Explore the UVM Practice & Interview Preparation hub.

Continue practising