Building a Custom Soft-Core Processor on an FPGA

When you are designing with a field-programmable gate array (FPGA), one of the first decisions is whether you need a soft-core processor, a hard processor, or custom logic to handle the job. A soft-core processor is a CPU built entirely from the FPGA’s programmable logic, while a hard processor, such as the processing system in an AMD Zynq device, is already built into the chip. The third option skips processors altogether and implements the entire function in custom register-transfer level (RTL) logic.

A soft-core processor sits between those approaches. It gives you sequential, software-driven control alongside the parallel hardware that an FPGA is built to provide. It can also be implemented on FPGA families that do not include a built-in processor.

This guide explains how soft cores work, how MicroBlaze and RISC-V cores compare with hard processor systems, and what to consider when choosing a Digilent FPGA board. If you are new to programmable logic, our introduction to FPGAs is a good place to start.

What Is a Soft-Core Processor on an FPGA?

A soft-core processor is a CPU described in a hardware description language or delivered as a configurable intellectual property core. The processor is implemented in the FPGA’s programmable logic using resources such as look-up tables, flip-flops, block RAM, and DSP slices.

AMD MicroBlaze, AMD MicroBlaze V, and open-source RISC-V cores are common examples. Unlike a hard processor, a soft core consumes FPGA fabric, but it gives you more control over the processor configuration and the peripherals included in the system. You may also see a soft-core processor described as an FPGA CPU, soft processor, or softcore processor.

The main FPGA resources serve different roles in a soft-core design:

  • Look-up tables and flip-flops implement the processor’s datapath and control logic, including the arithmetic logic unit, instruction decoder, register file, and pipeline control.
  • Block RAM stores instructions and data. Small bare-metal programs may run entirely from on-chip block RAM without requiring external DDR memory.
  • DSP slices can support hardware multiplication, signal-processing instructions, and other arithmetic operations, depending on the processor configuration.
  • Programmable interconnects connect the processor to memory, peripherals, and custom logic.

A UART console, configuration interface, or protocol handler can be difficult to build entirely as an RTL state machine. With a soft core, you can implement the control behavior in software while leaving parallel or timing-critical functions in custom logic.

On AMD FPGAs, MicroBlaze-based systems commonly connect memory, peripherals, and custom IP through AXI, the on-chip interface standard used throughout Vivado IP Integrator. This makes it possible to connect the processor to UART, GPIO, memory controllers, timers, and custom hardware blocks.

A microcontroller works differently. Its CPU, memory interfaces, and peripherals are fixed in silicon. A soft core is part of the programmable FPGA design, so you can select its features, add or remove peripherals, and replace the processor when the design changes. Our FPGA vs. microcontroller comparison explains this distinction in more detail.

What Is the Difference Between a Soft-Core Processor and a Hard Processor?

A soft-core processor is implemented in FPGA fabric. A hard processor system is built from dedicated silicon on the same device as the programmable logic. The Zynq-7000 processing system is an example of a hard processor system. On the Arty Z7, it provides a 650 MHz dual-core Arm Cortex-A9 processor next to the programmable logic.

Factor Soft-core processor Hard processor system
Implementation Built from look-up tables, flip-flops, block RAM, and other FPGA resources Dedicated processor silicon integrated beside the programmable logic
Processor speed Depends on the processor core, configuration, FPGA, and timing closure Fixed by the processor hardware
Configurability Pipeline, caches, multiplier, floating-point unit, and peripherals may be selected during design Processor architecture is fixed, but custom logic can be added in the programmable logic
FPGA resource use Consumes fabric that could otherwise be used for custom logic Does not consume programmable logic resources
Device support Can run on compatible FPGAs without a built-in CPU Available only on devices that include the processor system
Digilent examples Basys 3, Arty S7, Arty A7, and Nexys A7 Arty Z7 with Zynq-7000

The Basys 3, Arty S7, Arty A7, and Nexys A7 can all support soft-core processor designs. A soft core can also be implemented in the programmable logic of the Arty Z7, even though the device already includes a hard processor.

The hard processing system and programmable logic in a Zynq-7000 device communicate through AXI interfaces. This lets the processor access peripherals and accelerators implemented in the programmable logic. A soft core may still be useful in the programmable logic of a Zynq device when a small control function needs to operate separately from the main application processor. However, that soft core will consume programmable logic resources.

For more help choosing between these architectures, read our FPGA vs. SoC comparison and our guide to Zynq devices.

Which Soft-Core Processors Can Run on an AMD FPGA?

The main AMD-supported options are MicroBlaze and MicroBlaze V. Both are included as processor IP in the Vivado Design Suite and use Vitis for software development.

Open-source RISC-V processors, such as NEORV32 and PicoRV32, can also be integrated into FPGA designs. These processors provide access to the RTL and use RISC-V software toolchains, but they require more manual integration and verification.

What Is AMD MicroBlaze?

AMD MicroBlaze is a configurable soft processor designed for AMD FPGAs and adaptive SoCs. It is included in the Vivado IP catalog and supports 32-bit and 64-bit configurations.

Depending on the configuration, MicroBlaze can include:

  • Instruction and data caches
  • A hardware multiplier
  • A floating-point unit
  • A memory management unit
  • AXI interfaces
  • Debugging support
  • Different pipeline options

Because these features are configurable, MicroBlaze does not have one fixed resource footprint or maximum clock speed. Enabling caches, floating-point support, or memory-management features increases resource use but may provide functionality required by larger software applications.

A typical MicroBlaze workflow starts by adding the processor to a Vivado IP Integrator block design. You then connect memory, peripherals, and custom IP before developing and debugging the software in Vitis.

The Arty A7 and Arty S7 are designed to support MicroBlaze-based embedded systems and include external DDR3L memory for larger programs.

The MicroBlaze Processor Reference Guide covers the processor architecture, caches, floating-point support, debugging, and memory-management options. Digilent’s older guide to getting MicroBlaze running on a Nexys 4 board also provides a useful overview of the process. It uses Vivado 2014.1 and the original Nexys 4, so the exact software steps differ from the current Vivado and Vitis workflow.

What Is AMD MicroBlaze V?

AMD MicroBlaze V is a configurable soft processor based on the RISC-V instruction set architecture. It was introduced with Vivado 2024.1 and is integrated into the Vivado and Vitis development flow.

MicroBlaze V is hardware-compatible with classic MicroBlaze, which can simplify the process of reusing an existing hardware block design. The processor architecture and instruction set are different, however, so existing MicroBlaze software must be rebuilt and validated for MicroBlaze V.

The production MicroBlaze V microcontroller configuration uses a 32-bit RISC-V architecture. AMD also documents a 64-bit RV64I configuration, which remains an Early Access option. MicroBlaze V provides configurable support for RISC-V extensions, including multiplication and division, floating-point operations, compressed instructions, atomic instructions, and bit manipulation.

You can find the complete architecture and configuration details in the MicroBlaze V Processor Reference Guide and on the AMD MicroBlaze V product page.

What Open-Source RISC-V Soft Cores Are Available?

NEORV32 and PicoRV32 are two open-source RISC-V soft cores that can be used in FPGA designs.

NEORV32 is an actively developed, 32-bit RISC-V processor and microcontroller-style system-on-chip written in platform-independent VHDL. It includes a software framework, configurable peripherals, memory options, debugging support, and a Vivado IP package. NEORV32 is available under the BSD-3-Clause license and can use a RISC-V GCC toolchain. It is intended for both standalone microcontroller-style designs and auxiliary control tasks within a larger FPGA system.

PicoRV32 is a compact 32-bit RISC-V processor written in Verilog. It supports several RV32 configurations and includes native, AXI4-Lite, and Wishbone interface variants. PicoRV32 is available under the ISC license, and its published implementation results describe configurations using approximately 750 to 2,000 look-up tables on AMD 7-series devices.

However, the PicoRV32 repository is now archived and the project is no longer under active development. It may still be useful for existing designs, experiments, and learning, but new projects should account for its maintenance status.

Unlike MicroBlaze and MicroBlaze V, open-source RISC-V cores do not use the standard Vitis application flow by default. You must configure a compatible RISC-V compiler toolchain and manage the core’s hardware integration, memory map, peripherals, software framework, and verification process.

Core Architecture Tool flow Current positioning
AMD MicroBlaze AMD MicroBlaze ISA, 32-bit and 64-bit configurations Vivado IP Integrator and Vitis Mature AMD soft processor with extensive configuration options
AMD MicroBlaze V RISC-V, with production 32-bit and Early Access 64-bit configurations Vivado IP Integrator and Vitis AMD-supported RISC-V processor with familiar MicroBlaze hardware integration
NEORV32 Configurable 32-bit RISC-V CPU and microcontroller-style SoC RISC-V toolchain, VHDL, and optional Vivado IP integration Actively developed open-source processor with a complete software framework
PicoRV32 Configurable 32-bit RISC-V core RISC-V toolchain and Verilog Compact archived core suited to existing projects and learning

What Are the Resource and Timing Trade-Offs?

A soft-core processor provides flexibility, but it consumes FPGA resources. Adding caches, a hardware multiplier, floating-point support, or a memory management unit requires additional logic and may make timing more difficult to meet. A simpler processor configuration leaves more resources available for custom logic but may execute software more slowly or lack features needed by the application.

Resource use and clock speed depend on several connected factors:

  • The processor core
  • Enabled processor features
  • Memory configuration
  • Connected peripherals
  • FPGA family and speed grade
  • Placement and routing
  • Timing constraints
  • The rest of the FPGA design

Results from one processor configuration or FPGA device should not be treated as guaranteed performance on another device.

How Much Logic and Block RAM Does a Soft-Core Processor Use?

A small soft-core processor can fit on an entry-level FPGA. PicoRV32, for example, published implementation results ranging from approximately 750 to 2,000 look-up tables on AMD 7-series devices, depending on the configuration.

Memory can become the limiting factor before logic resources do. Instruction memory, data memory, stack space, and software buffers all require block RAM or external memory.

The Basys 3 has 33,280 logic cells, 1,800 Kbits of block RAM, and 90 DSP slices. This is enough for a small soft-core processor and supporting logic, but the board does not include external DDR memory.

The Arty S7 and Arty A7-100T include 256 MB of DDR3L memory, making them better suited to larger applications and data buffers.

How Fast Can a Soft-Core Processor Run?

A soft-core processor’s clock speed depends on the processor design, its configuration, the FPGA family and speed grade, and how well the complete design meets timing requirements. The published PicoRV32 results cite frequencies from 250 to 450 MHz on specific Kintex-7 and Virtex-7 devices. Those numbers should not be treated as expected performance on boards using different FPGA families or speed grades.

MicroBlaze and MicroBlaze V performance also depends on the processor configuration and surrounding design. Enabling additional features can increase functionality while reducing the maximum achievable clock frequency.

The processor clock should not be confused with the FPGA’s maximum internal fabric speed. The FPGA may support higher internal frequencies than a particular processor configuration can achieve after synthesis and implementation.

By comparison, the Arty Z7 includes a hard 650 MHz dual-core Cortex-A9 processor. Its processor clock is fixed by the Zynq processing system rather than determined by timing closure in the programmable logic. Clock frequency alone does not determine software performance, though. Processor architecture, instruction efficiency, caches, memory latency, peripheral access, and software design also affect the result.

When Should You Build Custom IP Instead?

A processor is best suited to sequential control, configuration, communication, and decision-making. Custom IP is usually a better choice for tasks that are parallel, repetitive, timing-critical, or data-intensive.

Examples include:

  • Pulse-width modulation
  • Digital filtering
  • High-rate sensor acquisition
  • Protocol timing
  • Video or image processing
  • Data-stream transformations
  • Hardware acceleration

Pulse-width modulation is a simple example. Instead of generating each transition in software, you can build a PWM controller in RTL and expose control registers to the processor. The software writes the desired duty cycle, while the custom hardware produces the waveform with consistent timing.

The same approach applies to filters, communication interfaces, and data-processing pipelines. Software manages configuration and high-level behavior, while custom logic handles operations that benefit from deterministic timing or parallel execution.

The processor and custom IP can communicate through an AXI interface. Digilent’s tutorial on creating a custom IP core in Vivado IP Integrator demonstrates this approach on a Zybo board. The tutorial uses an older software workflow, but the architecture remains useful for understanding how processor software and programmable logic work together.

Which Digilent FPGA Board Fits a Soft-Core Processor Design?

Choosing a board depends on the size of the processor, the amount of memory required, the peripherals you need, and whether you want a soft processor or a built-in hard processor.

Board Main logic resources Block RAM DSP slices External memory Processor fit
Basys 3 33,280 logic cells 1,800 Kbits 90 None Small block-RAM-based soft-core processors and coursework
Arty S7-25 23,360 logic cells 1,620 Kbits 80 256 MB DDR3L Entry-level MicroBlaze and RISC-V systems with external memory
Arty S7-50 52,160 logic cells 2,700 Kbits 120 256 MB DDR3L Larger soft-core processor systems and custom peripherals
Arty A7-100T 101,440 logic cells 4,860 Kbits 240 256 MB DDR3L MicroBlaze or RISC-V systems that need more logic and memory
Nexys A7-100T 15,850 logic slices 4,860 Kbits 240 128 MiB DDR2 Embedded-processor coursework with extensive onboard peripherals
Arty Z7-10 28,000 programmable logic cells 2.1 Mbits 80 512 MB DDR3 Zynq hard processor with space for smaller custom logic or a soft-core controller
Arty Z7-20 85,000 programmable logic cells 4.9 Mbits 220 512 MB DDR3 Zynq hard processor with more programmable logic for accelerators and peripherals

The Basys 3 is a good starting point when the software and data fit within on-chip block RAM. Its switches, LEDs, buttons, and seven-segment display are useful for coursework and processor experiments.

The Arty S7 and Arty A7 add external DDR3L memory, making them better choices for larger programs and data buffers. The Arty A7-100T provides considerably more logic, block RAM, and DSP resources than the Arty S7 variants.

The Nexys A7-100T combines an Artix-7 FPGA with DDR2 memory and a broad selection of onboard peripherals, including Ethernet, VGA, sensors, audio, switches, LEDs, and displays. This makes it useful for embedded-system coursework and processor-based projects that need built-in I/O.

The Arty Z7 is the alternative when you need a hard processor alongside programmable logic. Both variants include the same 650 MHz dual-core Cortex-A9 processing system, while the Arty Z7-20 provides a larger programmable logic device.

The Vivado and Vitis getting-started guide walks through the bare-metal development flow for Digilent FPGA and Zynq boards. You can also browse the full range of Digilent FPGA boards before selecting a platform.

How Do You Build a Soft-Core Processor in Vivado and Vitis?

A MicroBlaze or MicroBlaze V design typically starts as a block design in Vivado IP Integrator. The processor is connected to memory, peripherals, clocks, resets, and any custom hardware included in the system.

The general workflow is:

  1. Create a Vivado project for your FPGA board.
  2. Create a block design in IP Integrator.
  3. Add MicroBlaze, MicroBlaze V, or an integrated open-source processor core.
  4. Add instruction and data memory.
  5. Add peripherals such as UART, GPIO, timers, interrupt controllers, and memory controllers.
  6. Connect the processor to memory and peripherals through the supported interfaces.
  7. Add any custom IP required by the design.
  8. Validate the block design.
  9. Generate the HDL wrapper.
  10. Run synthesis and implementation.
  11. Generate the FPGA bitstream.
  12. For MicroBlaze or MicroBlaze V, export the hardware platform to Vitis.
  13. Create, build, and debug the software application.
  14. Program the FPGA and test the complete hardware and software system.

For an open-source RISC-V processor, the hardware stages are similar, but the integration details depend on the core. Software is usually compiled with a RISC-V GCC toolchain instead of the standard MicroBlaze Vitis flow.

Digilent’s Getting Started with Vivado and Vitis for Bare-Metal Software Projects guide provides step-by-step instructions for MicroBlaze on FPGA boards and the Zynq processor on SoC boards. Our article explaining the differences between Vivado and Vitis can also help clarify the role of each development tool.

Frequently Asked Questions

Do You Need External DDR Memory to Run a Soft-Core Processor?

No. A soft-core processor can run entirely from on-chip block RAM. This works well for small bare-metal applications with limited program code and data. The Basys 3 can support this type of design without external DDR memory.

External memory becomes useful when the application, stack, heap, data buffers, or operating environment outgrows the available block RAM. Boards such as the Arty A7 and Arty S7 include DDR3L memory for larger systems. A memory controller must be included in the FPGA design to connect a soft-core processor to external memory.

Can You Use a Soft-Core Processor and the Zynq Processing System Together?

Yes. A Zynq device includes a hard processor system and programmable logic. You can implement a soft-core processor in the programmable logic and run it alongside the hard Arm processor.

The soft core could handle an isolated control function, manage a custom hardware subsystem, or perform a task that should operate independently from the primary application processor. It will still consume programmable logic resources, so the benefit should be weighed against the area needed for accelerators and other custom hardware.

Read our What Is Zynq? guide for more information about the relationship between the processing system and programmable logic.

Can MicroBlaze Use a Memory Management Unit?

Yes. Classic MicroBlaze can be configured with a memory management unit. AMD documents a virtual mode that supports demand-paged virtual memory when MicroBlaze is optimized for Performance or Frequency rather than Area.

The MMU consumes additional FPGA resources, so it is typically unnecessary for small bare-metal applications. The MicroBlaze virtual memory management documentation explains the available modes and configuration requirements.

Is MicroBlaze V Software Compatible With Classic MicroBlaze?

Not at the binary level. MicroBlaze V is hardware-compatible with classic MicroBlaze, but it uses the RISC-V instruction set instead of the classic MicroBlaze instruction set.

Existing software must be rebuilt for the new target and tested with the appropriate libraries, drivers, and compiler settings. Hardware compatibility can make it easier to reuse peripherals and portions of an existing block design, but it does not eliminate the software migration work.

Where to Go Next

A soft-core processor lets you run software alongside custom FPGA logic without requiring a device with a built-in processor. It uses programmable logic and memory resources, but it gives you control over the processor configuration, peripherals, memory system, and relationship between software and custom hardware.

MicroBlaze provides a mature AMD-supported processor and development flow. MicroBlaze V brings RISC-V into the same Vivado and Vitis environment. NEORV32 provides an actively developed open-source alternative, while archived processors such as PicoRV32 can still be useful for existing designs and learning.

If you need higher processor performance without consuming programmable logic resources, a Zynq-based board such as the Arty Z7 may be a better fit.

Explore the full selection of Digilent FPGA boards to compare logic capacity, memory, connectivity, and onboard peripherals. If you want to go beyond configuring an existing processor, our guide on where to start when building your own processor explains the next steps for designing a datapath and control unit from scratch.

Be the 1st to vote.

Leave a Reply

Your email address will not be published. Required fields are marked *