arXiv:2610.21552cs.AROct 2026

Manuscript Offprint

arXiv:2610.21552

Minimum RISC-V: Maximum FPGA Efficiency

Martin Langhammer, Bogdan Pasca, Gregg Baeckler

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

RISC-V processors are now widely available for FPGAs, with most FPGA vendors replacing their proprietary soft-CPU architectures with this instruction-set architecture (ISA). Although contemporary FPGAs are increasingly resource- and feature-rich, a soft processor system—including memory—often occupies a disproportionately large footprint and delivers only modest performance relative to the potential of the target device. In this work we first design a lightweight but deeply pipelined RISC-V core that can run above 700 MHz in a mid-range device and that is capable of retiring one instruction per clock under ideal conditions. We then develop and demonstrate a new optimization method that compiles the final application binary and a specialized processor instance contemporaneously. The method expands each instruction into an application-specific encoding, removes unused datapath and decode logic during synthesis, and yields cores that remain assembler-compatible with the original program while no longer being binary-compatible with a general-purpose RISC-V. We implement example designs on RV32I (base integer), RV32M (integer multiply), and RV32F (single-precision floating-point) configurations. Our optimized RISC-V is as small as 170 ALMs and closes timing at 775 MHz in an Altera Agilex 5 device. Finally, we show that these processors can be packed into a deterministic area and stepped-and-repeated continuously without material impact on performance, enabling predictable multi-core density planning.

Keywords: FPGA, RISC-V, soft processor, application-specific processor, high-frequency design, synthesis.

1 Introduction

The RISC-V ISA [1] is increasingly common in both research and commercial contexts, and is now directly supported by most FPGA vendors [2, 3, 4] in soft and, increasingly, hard processor offerings. The Altera Nios II [5] processor has been replaced by Nios V [6]; Xilinx/AMD has similarly replaced MicroBlaze [7] with MicroBlaze V [8]. Continued investment by FPGA vendors in soft CPUs underscores their utility, even on devices that already contain hard processor subsystems [9, 10], typically ARM-based.

There are many good reasons to adopt RISC-V—notably standard tooling and a growing software ecosystem. However, RISC-V was not architected specifically for FPGAs, and several aspects of the ISA map poorly onto FPGA fabrics. Some of these mapping issues become concrete in Section 3, where we detail the design of a lightweight RV32I core.

Many FPGA applications demand a small, inexpensive device in which a full-featured CPU would be too expensive. Often these cases involve only a small code size, with applications such as motor control or complex state machines. In other cases the CPU may only monitor or manage dedicated IP blocks, or perform a slower offline task that is too complex (or large) to

Figure

Figure 1: Lightweight RISC-V cores. Yellow register stages are skipped in the 5-stage pipeline architecture.

implement conveniently in RTL. The processor then becomes an expensive, unwieldy part of the solution—out of proportion to its functional contribution.

In this work we introduce an application-specific soft-processor methodology. The design can be developed and iterated with standard RISC-V tools. In the final stage, an additional processing step compiles a processor version that supports only the associated software application. This can reduce processor size by 50% to 70%, partially by removing portions of the datapath that are unused by the remaining instruction mix. Although we start from the RV32I instruction set, the specialized core will not run a generic RISC-V program: forwarding has been removed (and replaced with NOP insertion) to save logic.

The resulting optimized processor is not only smaller in resource count, but also uses the FPGA more efficiently. Small application spaces—for example an RV32I core with roughly 500 assembly instructions and around 1000 32-bit data words—can be compiled into a structure with a balanced use of resources, i.e., where the ratio of memory to logic mirrors that of the FPGA. This enables very efficient placement of the CPU onto the device.

Contributions. We make the following contributions:

  • We develop and evaluate an optimization method for the RISC-V ISA that greatly reduces logic and other resources for application-specific code examples. The method is not RISC-V-specific and can be applied to other processor architectures.

  • We benchmark the effect of processor complexity features—notably forwarding and hardware interlocks—against performance and code size.

  • We describe the true cost of optimized processors as footprint on the FPGA, rather than as an unstructured list of resources. This cost measure is also applicable to other FPGA designs.

Paper organization. Section 2 surveys contemporary FPGA soft RISC-V cores and related optimization approaches. Section 3 presents our lightweight baseline RV32I microarchitecture. Section 4 describes the contemporaneous application/processor optimization flow. Sections 5–7 evaluate the method on RV32I Quicksort, an RV32M FFT profile, and an RV32F Gaussian matrix solver. Section 8 analyzes placement footprint and multi-core packing. Section 9 concludes.

Figure

Figure 2: Detail of the ALU section of our lightweight RISC-V processor.