, Sweat-proof “smart skin” takes reliable vitals, even during workouts and spicy meals
, Sweat-proof “smart skin” takes reliable vitals, even during workouts and spicy meals

Know your FPGA

The field programmable gate array (FPGA) has become a key component in many designs. Their flexibility makes it possible to individually customise hardware for very low volume applications. The FPGA’s scalability within each device family allows for options with low density, low cost and relatively high performance. These options keep FPGAs competitive alongside custom silicon in high-volume consumer applications such as digital cameras and entertainment hubs for automotive dashboards.

The sheer range of FPGA applications has led to the development of an array of different devices each with individual strengths and weaknesses. It has never been more important to know your FPGA.

The first FPGAs to arrive on the market had a relatively simple architecture. They employed static random access memory (SRAM) cells as their circuit-configuration and lookup-table (LUT) elements. The LUT, most often a four-input, single-output element, is the core logic element of many FPGAs on the market and, together with programmable routing, provides the device with flexibility and scalability. The LUT allows arbitrary truth tables to be built in each one, providing the basis for complex logic functions that can be reprogrammed as requirements change.

The SRAM memory elements used in most FPGAs are volatile: the configuration and LUT contents are lost when the system is powered down. As a result, the devices are designed to automatically retrieve the configuration from non-volatile memory on device power up. This reconfigurability can be leveraged in designs that need high flexibility at runtime. A growing number of devices, such as the latest generation of SRAM-based FPGAs from Lattice, Altera and Xilinx, support partial-reconfiguration to allow different hardware configurations to be uploaded on-the-fly. In practice partial reconfiguration can be used to upgrade portions of the FPGA while the rest of the system stays up and running or to optimize the use of programmable logic cells within the FPGA fabric.

Partial reconfiguration has proven popular in fields such as audio and video signal processing as it allows hardware-accelerated algorithms to be tuned to the incoming stream of data. This means that a smaller device can be used to support the full range of required system tasks by reconfiguring modular circuits, set within an area of the fabric. If partial reconfiguration were not used, each circuit would need to be loaded into a larger fixed-configuration device in parallel, thus requiring more fabric resources.

Not all FPGAs use volatile memory for configuration. The first non-volatile devices were based on antifuse technology – a one-time programmable element that forms a connection when the fuse is ‘blown’ electronically by an external programmer. Supplied by Microsemi, antifuse FPGAs have greater natural immunity to high-energy radiation than memory-based devices as the permanent connection formed by the antifuse cannot be altered by single-event upsets.

Microsemi has a reprogrammable non-volatile option in the form of its SmartFusion, ProAsic3 and Igloo series of FPGAs. These devices combine a LUT-based architecture with configuration cells built on flash-memory technology. This allows the entire system to shut down but still provide for immediate power-up because the FPGA fabric preserves its configuration state. This also eliminates inrush configuration current and saves energy when the device power source is cycled. Unlike antifuse technology the flash memory cells are also reprogrammable. If a mistake is made during development, or the system needs to be upgraded in the field, the devices’ hardware configuration can be altered.

The Microsemi Igloo, ProAsic3 and SmartFusion devices further leverage flash-memory technology for low-energy operation. Igloo’s Flash*Freeze technology puts the device into an ultralow-power state when not in use by storing data normally held in volatile registers and SRAM arrays into an area of flash backup memory. Once stored, the Igloo device no longer needs the current to retain the state of the volatile memories. By withdrawing power to these elements and I/Os, consumption can be reduced to as little as 5µW.

Flash memory has enabled hybrid architectures, as well as providing features such as enhanced security. The Lattice Mach XO2, for example, has its own on-chip flash storage for configuration data thus reducing the risk of hackers tapping into and recovering the configuration bit-stream during power-up. This feature removes the need for an external configuration PROM. The flash contents of the XO2 can be loaded into SRAM across a very wide internal bus, this enables a power-up time within 1ms. An additional area of on-chip flash allows designers to use the memory for non-volatile data storage, reducing the need for external memories.

The first FPGAs were almost completely comprised of purely “soft” logic, strictly fabric with no ASIC-gate based blocks. As FPGA applications have widened, with an increased demand for technology in areas such as communications and signal processing, manufacturers have added higher performance dedicated logic blocks to make for a more efficient use of die area. One of the most common elements is the Serialiser/Deserialiser (SerDes) interface. The SerDes block is now included in many FPGA architectures.

The power consumption of I/O has become a critical challenge in system design. Although sending data in parallel can offer high bandwidth, the use of multiple data lines sending bits simultaneously can demand a lot of energy and also present signal-integrity challenges, particularly as clock speeds increase. Serial I/O can offer better signal integrity at high bitrates through the use of adaptive equalisation and other signal-conditioning techniques. As they typically use low voltage-swing logic levels, serial interfaces can improve power efficiency. For example, the Lattice ECP3 consumes just 110mW at a datarate of 3.2Gb/s. As a result, serial channels are now used widely for high-speed memory interface as well as chip-to-chip and board-to-board communications.

Serial I/O requires the support of relatively complex logic blocks that would be costly to implement purely in programmable logic. Dedicated SerDes logic blocks based on “hard” ASIC gates allow for quicker signal transmission and a higher-speed circuit. Logic is needed to convert the signals that come from an internal parallel bus into a clocked serial representation and recover the data from an incoming serial link. By offering this kind of SerDes function in dedicated hardware, today’s FPGA allow more of the programmable logic to be used for the end application.

SerDes blocks are common in many of the mid-grade and all of the high-end FPGA families. Products that provide SerDes blocks include the Altera Stratix, Lattice ECP3 and Xilinx Virtex devices. Some of these FPGAs support serial data rates up to 28Gbit/s using a combination of signal-conditioning techniques. Cost-optimised FPGAs such as the Altera Cyclone, Lattice Mach XO2, Microsemi SoC Igloo and Xilinx Spartan families often provide support for low voltage signaling interfaces such as LVDS, but largely leave the implementation of the SerDes functionality to programmable-logic blocks.

Altera Cyclone V devices provide support for serial communication at speeds up to 5Gb/s, per port with a maximum of 12 ports, depending on the model. To ease the implementation of SerDes functions, the parts include 8B/10B encoding and decoding functions within the hardware to ensure that the most widely used form of data serialisation and error protection is supported in hardwired ASIC logic. On-chip support for PCIe, Gen1 and Gen2, make for easier implementation where systems need to interface with PC and server hardware.

Dedicated communications and utility cores appear on cost-optimised FPGAs to allow their use in higher-volume industrial and consumer applications. For example, Lattice’s MachXO2 family includes hardened functions such as I2C and SPI ports as well as timers and counters, providing similar functions to those found in off-the-shelf microcontrollers but with the much greater flexibility of uncommitted logic in the rest of the array.

Microsemi SoCs SmartFusion is a hybrid FPGA, analog and microcontroller architecture. This architecture combines a complete ASIC-gate based ARM Cortex-M3 processor core and analog compute engine (ACE) with an FPGA fabric. The hybrid architecture allows the developer to run software within the ARM supported by custom peripherals loaded into the FPGA’s fabric. The SmartFusion architecture includes an intelligent I/O controller that optimises the performance of sensor-oriented applications. Integrated analogue I/O blocks, under the control of the ACE, ensure offloading of the processor for parallelising system operations. The ACE is instrumental in applications such as motor control where accurate and timely position readings need to be taken to ensure outputs that control power electronics are updated with high precision.

As FPGA signal-processing applications increased, vendors began to add hardened blocks based on ASIC gates for high-speed arithmetic. The most efficient way to implement multiplication in programmable cells is to use bit-serial arithmetic. However, this approach is very slow and only provides benefits if many arithmetic operations can be performed in parallel.

The first step beyond bit-serial arithmetic was to add dedicated carry-chain logic, which is expensive to implement in the FPGA’s fabric. This allowed the use of much faster carry-lookahead and carry-save adders, both of which allow the implementation of faster multipliers. The next step was to provide complete multiplier blocks in hardwired logic. These blocks can be quite narrow to reduce their die consumption but they can easily be tied together to form more sophisticated 32bit and 64bit multipliers, using the FPGA’s fabric to add support for more sophisticated features such as floating-point arithmetic. Some FPGAs provide a variety of DSP cores to suit target applications, with multiple narrower 9bit units, favoured for image and video processing, and wider cores used for audio and communications signals.

DSP blocks appeared first in the high-end devices from suppliers such as Altera and Xilinx, but have now migrated to cost-optimised architectures such as the Cyclone V and Spartan-6. For applications where the arithmetic processing does not suit standard arithmetic operations, such as cryptography or specialised video operations, an architecture that has a higher ratio of programmable logic to DSP cores may be a better choice.

One thing is for certain, there is an FPGA that is well suited to your application. A distributor with experience and knowledge of these options is ideally placed to help you get to know your FPGA.

Comments are closed.