RVFI-DII is the TestRIG-compatible combination of RVFI-style per-instruction state observation with Direct Instruction Injection, used to compare RISC-V models, simulators, and simulated hardware implementations through generated instruction streams and trace comparison.
First seen5/27/2026
Last seen6/8/2026
Evidence14 chunks
Wikiv1
01
WIKI
Overview
RVFI-DII refers to the instrumentation style used by TestRIG-compatible RISC-V models, simulators, and implementations: RVFI is used to observe architectural state changes after each instruction, while Direct Instruction Injection (DII) supplies the next instruction from the test harness rather than from program memory. The TestRIG paper describes this approach in the context of randomized RISC-V CPU testing and later refers to “models, simulators, and implementations supporting RVFI-DII.”
[1]TestRIG checks equivalence by generating random instruction sequences, executing them on a model and an implementation under test, and comparing execution traces; this can demonstrate divergence but does not prove equivalence.Randomized Testing of RISC-V CPUs using Direct
[2]TestRIG uses the RISC-V Formal Interface standard to observe the change in state after each instruction of the implementation under test.Randomized Testing of RISC-V CPUs using Direct
[3]Direct Instruction Injection provides the next instruction from the test harness regardless of the CPU program counter, unlike normal execution where the next instruction is fetched from program memory at an address determined by the program counter.Randomized Testing of RISC-V CPUs using Direct
[4]The TestRIG work compares executable formal models, software ISA simulators, and simulated execution of hardware designs rather than completed fabricated chips.Randomized Testing of RISC-V CPUs using Direct
[6]A proposed future TestRIG direction is memory-model testing using RVFI-DII instruction streams injected with specified timestamps into multiple shared-memory cores, with checking against higher-level memory-model semantics.Randomized Testing of RISC-V CPUs using Direct