UVM · Medium · SystemVerilog

RISC-V Instruction Transaction

Represent an architectural instruction and its expected retirement information as a reusable verification transaction.

Task

Create a `uvm_sequence_item` with randomized instruction word and PC plus observed rd/writeback fields. Register fields with UVM macros.

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, UVM, transaction

Open RISC-V Instruction Transaction in the HDLForge interactive editor.

Related problems

Explore the UVM Practice & Interview Preparation hub.

Continue practising