I want to use my own RISC-V core in various SoC environments. However, I'm still not confident that my core behaves correctly, so I want to give it a verification interface so that, at least in form, I can run match checking in any SoC environment. It seems better to have a unified interface, so I decided to investigate the RISC-V Verification Interface (RVVI).
As far as I can tell, this doesn't seem to be an official RISC-V specification (?), so keep that in mind. However, RVVI seems to be the only one that makes this kind of specification open, so let's think about what it would take to conform to it.
First, let's look at the following figure.
- The leftmost part is the DUT, written in Verilog. This is the verification target
- The middle part is the interface that connects the DUT to the verification IP. This can be either C++ or Verilog
- The rightmost part is the verification IP. Here it is ImperasDV. What I really want is to be able to connect something like Spike
It seems that three verification interfaces are defined.
- The core's RTL trace interface: RVVI-TRACE
This appears to be intended to be connected to the DUT. It corresponds to the part that connects the Verilog DUT on the left to the interface in the middle. It extracts the appropriate information from the core and builds the trace information. This is then passed on to the DV IP through the RVVI interface.
- The reference model DV subsystem interface: RVVI-API
It further processes the information passed on from RVVI-TRACE and connects it to a verification IP such as ImperasDV. It connects the interface in the middle to the verification IP (the DV on the right).
- Virtual verification peripherals for testbenches: RVVI-VVP
It defines the external interfaces that connect to the DUT. In the figure above, this is what is connected below the DUT on the left. It is for connecting external interfaces such as UART. It can connect timers, interrupts, debug, random event generation, print/log/UART, and so on.
This is an English translation of the original Japanese post: RISC-Vコアの検証インタフェースRVVIについて調べる (1. RVVIの種類について)
