RXV:RISC-V RV32IMA CPU

The RXV core is an Apache 2.0 licensed RISC-V RV32IMA CPU that successfully runs mainline Linux with a CoreMark score of 2.97/MHz. The core is in-order with a 7 stage pipeline, out of order completion, register renaming, dynamic branch prediction and indirect branch target prediction, set-associative caches, fully associative TLBs and AXI4 support. A design for the Digilent Arty S7 board uses 32KB 8-way associated cache and 16 way fully associative TLB each for instruction and data paths. Externally, Xilinx IP provides AXI4 interconnect, SPI controller, interrupt controller, DDR3 controller and 16550A.

On top of the RV32IMA base, the following extensions are implemented:

The pipeline consists of:

Atomic operations are broken down into multiple micro-ops using register rename.

Block diagram of the RXV core architecture
Diagram of the RXV pipeline stages

Caches

Instruction Cache

Block diagram of the RXV instruction cache

Data Cache

Block diagram of the RXV data cache

Branch Prediction

Block diagram of the RXV branch predictor

Performance Counters

There are a configurable number of performance counters in addition to the mcycle+minstret fixed counters which can be used for profiling:

- PMU_CYCLES
- PMU_INSTRET
- PMU_BRANCH
- PMU_BRANCH_MISPRED
- PMU_FE_STALL
- PMU_BE_STALL
- PMU_L1D_READ
- PMU_L1D_READ_MISS
- PMU_L1D_WRITE
- PMU_L1D_WRITE_MISS
- PMU_L1I_READ
- PMU_L1I_READ_MISS
- PMU_DTLB_READ
- PMU_DTLB_READ_MISS
- PMU_ITLB_READ
- PMU_ITLB_READ_MISS

FPGA Implementation

The default Arty S7 configuration has:

The bootrom fetches the generic platform build of OpenSBI and a flattened device tree from a FAT partition on the micro SD along with a gzip compressed Linux kernel before transferring control to OpenSBI.

Trial layout plot of the RXV core on the SKY130A process
Trial layout on SKY130A
Vivado block design of the FPGA SoC: the RXV core connected through an AXI SmartConnect to the boot ROM, CLINT, DDR3 controller, interrupt controller, UART and SPI
FPGA SoC Diagram

Reference Images