Soft CPU Cores for FPGA

来源:互联网 发布:淘宝阿依莲专卖店 编辑:程序博客网 时间:2024/04/29 22:54

In this article popular RISC CPU cores suitable for FPGA implementation are described and compared (LEON, OpenRISC, MicroBlaze, Nios II, Cortex-M1 and others).

Introduction

FPGA and SoC design

1-CORE Technologies provides high-quality and cost-effective FPGA design and SoC integration services. Outsourcing design and verification to Russia will significantly reduce your design costs.

FPGA (Field Programmable Gate Array) devices are particularly suitable for parallel algorithms implementation. However, sequential algorithms, especially those that don't demand huge processing power, are easier to implement as a program for a microprocessor.

In many applications it would be convenient to have both a microprocessor and an FPGA array. Of course, one can have a separate RISC CPU and FPGA chips. But they can be also combined in one chip, leading to less power consumption, simpler board layout and fewer problems with signal integrity and EMI (electromagnetic interference).

Soft CPU cores are usually used to create an FPGA-based system-on-chip (SoC). In this case a CPU core controls the work of the circuit and does some random calculations, and the other parts of the circuit are responsible for interfacing and parallel processing.

Hard vs Soft CPU Cores

There are two types of CPU cores for FPGA: hard and soft. Hard CPU core is a dedicated part of the integrated circuit, whereas soft CPU core is implemented utilizing general-purpose FPGA logic cells.

Examples of FPGA chips with embedded hard CPU cores include:

  • Xilinx Virtex-4 FX and Virtex-5 FXT with PowerPC cores,
  • Atmel FPSLIC with an AVR core.

Altera used to have an Excalibur family with embedded hard ARMv4 core, but it is now discontinued in favor of Altera'sNios-II soft CPU core and Cortex-M1 ARMv6-based CPU core.

Embedded CPU soft cores suitable for FPGA

CPU coreArchitectureBitsLicensePipeline depthCycles per instruction1MMU2MUL3FPU4Area (LEs5)CommentsS1 CoreSPARC-v964Open-source (GPL)61+++37000 - 60000Single-core version of UltraSPARC T1LEON3SPARC-v832Open-source (GPL)71+++3500 LEON2SPARC-v832Open-source (LGPL)51++ext5000Unmaintained in favor of LEON3OpenRISC 1200OpenRISC 100032Open-source (LGPL)51++-6000 MicroBlazeMicroBlaze32Proprietary3, 51optoptopt1324Limited to Xilinx devicesaeMBMicroBlaze32Open-source (LGPL)31-opt-2536Open-source clones of MicroBlazeOpenFireMicroBlaze32Open-source (MIT)31-opt-1928Nios II/fNios II32Proprietary61++opt1800Limited to Altera devicesNios II/sNios II32Proprietary51-+opt1170Nios II/eNios II32Proprietaryno6--opt390LatticeMico32LatticeMico3232Open-source61-opt-1984Not limited to Lattice devices (can be used elsewhere)Cortex-M1ARMv632Proprietary31-+-2600 DSPuva16DSPuva1616Open-sourceno4-+-510 PicoBlazePicoBlaze8Proprietary, zero-costno2---192Limited to Xilinx devicesPacoBlazePicoBlaze8Open-source (BSD)no2---204An open-source clone of PicoBlazeLatticeMico8LatticeMico88Open-sourceno2---200Not limited to Lattice devices (can be used elsewhere)
  1. The specified value can be valid for most of the instructions, but not for all. For example, multiplication often takes more cycles than an ordinary ALU instruction.
  2. Memory Management Unit.
  3. Hardware multiplier.
  4. Floating-point unit.
  5. Area is measured in Logic Elements (LEs) which consist from a 4-input LUT and a flip-flop. The provided area estimates are for reference purposes only.

S1 Core

UltraSPARC T1 logo

S1 Core is an open-source implementation of the SPARCv9 architecture.

On March 21, 2006 Sun Microsystems, the developer of the SPARC architecture, released theirUltraSPARC T1 microprocessor to public under the terms of the GNU General Public License (GPL).

UltraSPARC T1 was an 8-core implementation of the SPARCv9 64-bit architecture, designed to run in power-critical environments.

UltraSPARC T1 itself is too huge to be implemented on FPGA. S1 Core is a cut-down version of the UltraSPARC T1 containing just one CPU core and additional Wishbone bus controller. Even then, S1 Core occupies 37000-60000 Virtex-5 LUTs (depending on the number of supported threads and L1 cache blocks) and is probably too big for most SoC designs. Nevertheless, it is probably the only available 64-bit CPU core for FPGA.

The GPL license ensures that this core can be used for free, but it requires that you give away the source code of the whole design when distributing S1 Core based devices.

  • http://www.srisc.com/?s1

LEON3 and LEON2

LEON3 is an open-source implementation of the SPARCv8 32-bit architecture designed byAeroflex Gaisler AB. It is a part of the GRLIB open-source IP core library available under the terms of the GPL.

LEON3 is a fully functional pipelined SPARCv8 processor contatining an optional floating-point unit. The GRLIB library contains a lot of useful IP blocks such as bus and RAM controllers.

LEON3 uses about 3500 Virtex-4 LUTs and therefore can be easily employed in mid-to-high density applications.

The GPL license allows free usage of the LEON3 CPU core, but only in open-source hardware projects. In order to be able not to distribute sources for the whole design, a special commercial license is required from Aeroflex Gaisler.

There used to be an older LEON2 core (also SPARCv8-compliant) licensed under more permissive LGPL license that allowed to use the core in proprietary projects (though some conditions still have to be fulfilled). When this article was written, there was no link to download LEON2 on the Aeroflex Gaisler website. So 1-CORE Technologies has made LEON2 available from its website for the general public.

  • http://www.gaisler.com/cms/index.php?option=com_content&task=view&id=13&Itemid=53
  • http://www.1-core.com/resources/

OpenRISC 1200

OpenRISC 1200 is an open-source 32-bit processing core that implements the OpenRISC 1000 RISC architecture (there is no mistake: the core is called “OpenRISC 1200” and the architecture “OpenRISC 1000”).

OpenRISC 1200 CPU has been developed by the OpenCores.org community.

The OpenRISC architecture uses a 5-stage pipeline and its own instruction set.

GNU toolchain and Linux operating system has been ported to the OpenRISC architecture.

OpenRISC 1200 is available under the terms of the LGPL license, making it possible to use it in proprietary projects.

  • http://www.opencores.org/projects.cgi/web/or1k/openrisc_1200

MicroBlaze and its clones

MicroBlaze logo

MicroBlaze is a proprietary 32-bit RISC architecture and soft CPU core designed by Xilinx for use in their FPGAs. There are also open-source clones of MicroBlaze, namelyaeMB and OpenFire, which are device-independent and binary compatible with the original.

Being developed specially for FPGA, MicroBlaze designs occupy a few times less area than LEON or OpenRISC-based designs, making it particularly suitable for mid-density FPGAs.

It should be noted that the original MicroBlaze implements features unsupported by the open-source clones, such as floating-point unit or 5-stage pipeline (open-source clones implement only 3-stage pipeline).

There is a port of the ?Clinux operating system to the MicroBlaze architecture.

  • http://www.xilinx.com/products/design_resources/proc_central/microblaze.htm
  • http://www.opencores.org/projects.cgi/web/aemb/overview
  • http://www.ccm.ece.vt.edu/~scraven/openfire.html

Nios II

Nios II logo

Nios II is a proprietary 32-bit RISC architecture and a processor core developed by Altera for use in their FPGAs. It is a successor to the older 16-bitNios embedded processor.

Nios II soft core comes in three flavors:

  1. Nios II/f – optimized for maximum performance, it employs a 6-stage pipeline, executes 1 instruction per cycle and includes separate instruction and data caches, MMU (Memory Management Unit) and MPU (Memory Protection Unit), hardware multiply, divide and shift operations.
  2. Nios II/s – designed as a trade-off, it employs 5-stage pipeline, executes 1 instruction per cycle and includes instruction cache (no data cache) and hardware multiply, divide and shift operations (MMU and MPU are absent).
  3. Nios II/e – designed to occupy as little area as possible, it doesn't use pipeline, executes one instruction in 6 cycles and no supplementary arithmetic blocks.

Number of logic elements occupied by Nios II core is comparable to that of MicroBlaze, except Nios II/e edition which uses significantly less logic elements.

Nios II can only be used on Altera FPGAs (or Altera HardCopy structured ASICs).

GNU toolchain and Linux operating system has been ported to Nios II.

  • http://www.altera.com/products/ip/processors/nios2/ni2-index.html

LatticeMico32

LatticeMico32 logo

LatticeMico32 is an open-source 32-bit RISC architecture and a CPU core developed by Lattice Semiconductor. It should be noted that unlike Xilinx and Altera, Lattice created a portable design that can be used on other manufacturers' FPGAs or even on an ASIC.

Otherwise it is comparable to MicroBlaze and Nios II/s, being designed with the FPGA architecture in mind.

LatticeMico32 doesn't include a floating-point unit.

GNU toolchain and Linux operating system has been ported to LatticeMico32 architecture.

  • http://www.latticesemi.com/products/intellectualproperty/ipcores/mico32/index.cfm

Cortex-M1

Cortex-M1 logo

Cortex-M1 is an implementation of the proprietary 32-bit ARMv6 architecture designed for FPGA. Using Cortex-M1 requires license fromARM Limited. There are Actel flash-based FPGA chips which are shipped with Cortex-M1 license included (no additional license is required). Cortex-M1 can be used with Xilinx and Altera FPGAs as well.

ARM (Advanced RISC Machine) is a popular RISC architecture particularly suitable for applications that demands low power consumption.

Many operating systems has been ported to ARM, including Linux and Windows CE.

  • http://www.arm.com/products/CPUs/ARM_Cortex-M1.html
  • http://www.actel.com/products/mpu/CortexM1/
  • http://www.altera.com/products/ip/processors/32_16bit/m-arm-cortex-m1.html

DSPuva16

DSPuva16 is an open-source 16-bit RISC core designed by Santiago de Pablo, University of Valladolid. It has an interesting feature of having a dedicated hardware multiplier-accumulator (MAC) and still occupying small area, making it possible to use it even in low-density FPGAs.

The downside is that the CPU supports quite a small program memory and no data memory (except internal registers). This processor therefore can be utilized to implement simple algorithms that nevertheless include many multiplication operations. One possible application is automatic control.

By the moment when this article was written, the original project homepage has been unavailable for a long time. 1-CORE Technologies has made DSPuva16 available from its website for the general public.

  • http://www.dte.eis.uva.es/OpenProjects/OpenDSP/index.htm – seems to be unavailable for a long time
  • http://www.1-core.com/resources/

PicoBlaze

PicoBlaze logo

PicoBlaze is a proprietary (but zero-cost) 8-bit RISC architecture and a CPU core developed by Xilinx. Although available free of charge, the core is tied to a Xilinx architecture. There is also an open-source clone namedPacoBlaze, which is a device-independent CPU core binary-compatible with the original PicoBlaze.

PicoBlaze was designed to operate in low-density FPGAs and occupy about 100 Spartan/Virtex slices.

  • http://www.xilinx.com/products/ipcenter/picoblaze-S3-V2-Pro.htm
  • http://bleyer.org/pacoblaze/

LatticeMico8

LatticeMico8 logo

LatticeMico8 is an open-source 8-bit RISC architecture and a CPU core developed by Lattice Semiconductor and written in device-independent HDL (i.e., not tied to Lattice FPGAs).

It is quite comparable with PicoBlaze.

  • http://www.latticesemi.com/products/intellectualproperty/referencedesigns/8bitmicrocontrollermico8.cfm

原创粉丝点击