Scoreboards · Hard · SystemVerilog

RV32I Reference Model

Maintain a simple architectural register model for ADD, SUB and ADDI instructions.

Task

Implement a model class with 32 registers, x0 forced to zero, and an `execute()` method that updates the expected destination register.

Examples

Constraints

Concepts to review

RISC-V, reference model, ISA

Open HDLForge to solve this problem in the interactive editor.

Related problems