Instruction Stream Generation
TechniqueInstruction Stream Generation is a test-generation technique for processor verification in which streams of instructions are produced and supplied to a processor model, simulator, or RTL core. In the cited RISC-V cross-level verification evidence, the stated goal is to generate an endless and unrestricted instruction stream for co-simulation, with the RTL core and instruction-set simulator (ISS) expected to behave identically in their observable architectural state, especially register updates. Generation begins from a fully randomized 32-bit word and layers on opcode injection, field mutations, and instruction sequences to bias output toward legal and interesting cases. Generated instructions are matched against the ISS using a pending (PC, instruction) queue, while a core adapter observes RTL pipeline signals to detect instruction completion. The article also contrasts this approach with RISC-V Torture, ISS-level coverage-guided fuzzing, and the open-source riscv-dv tool, and describes how the technique is positioned in industry CPU verification curricula.
WIKI
Overview
Instruction Stream Generation is a test-generation technique for processor verification in which streams of instructions are produced and supplied to a processor model, simulator, or RTL core. In the cited RISC-V cross-level verification evidence, the stated goal is to generate an endless and unrestricted instruction stream for co-simulation, with the RTL core and instruction-set simulator (ISS) expected to behave identically in their observable architectural state, especially register updates. [c1] [c2]