fpga based embeded system seminar pt

Embed Size (px)

Citation preview

  • 7/31/2019 fpga based embeded system seminar pt

    1/23

    INTRODUCTION FPGA Embedded Processors Advantages of an FPGA embedded processor Disadvantages Manufacturers benc

    FPGA BASED EMBED SYSTEM

    Presented by

    JERIN K ANTONYM2 AEI

    EMBEDED SYSTEM SEMINAR College of Engineering, Trivandrum

    http://find/http://goback/
  • 7/31/2019 fpga based embeded system seminar pt

    2/23

    INTRODUCTION FPGA Embedded Processors Advantages of an FPGA embedded processor Disadvantages Manufacturers benc

    Overview

    1 INTRODUCTION

    EMBEDED SYSTEM SEMINAR College of Engineering, Trivandrum

    http://find/http://goback/
  • 7/31/2019 fpga based embeded system seminar pt

    3/23

    INTRODUCTION FPGA Embedded Processors Advantages of an FPGA embedded processor Disadvantages Manufacturers benc

    Overview

    1 INTRODUCTION

    2 FPGA Embedded Processors

    EMBEDED SYSTEM SEMINAR College of Engineering, Trivandrum

    http://find/http://goback/
  • 7/31/2019 fpga based embeded system seminar pt

    4/23

    INTRODUCTION FPGA Embedded Processors Advantages of an FPGA embedded processor Disadvantages Manufacturers benc

    Overview

    1 INTRODUCTION

    2 FPGA Embedded Processors

    3 Advantages of an FPGA embedded processor

    EMBEDED SYSTEM SEMINAR College of Engineering, Trivandrum

    http://find/http://goback/
  • 7/31/2019 fpga based embeded system seminar pt

    5/23

    INTRODUCTION FPGA Embedded Processors Advantages of an FPGA embedded processor Disadvantages Manufacturers benc

    Overview

    1 INTRODUCTION

    2 FPGA Embedded Processors

    3 Advantages of an FPGA embedded processor

    4 Disadvantages

    EMBEDED SYSTEM SEMINAR College of Engineering, Trivandrum

    O C O G G

    http://find/http://goback/
  • 7/31/2019 fpga based embeded system seminar pt

    6/23

    INTRODUCTION FPGA Embedded Processors Advantages of an FPGA embedded processor Disadvantages Manufacturers benc

    Overview

    1 INTRODUCTION

    2 FPGA Embedded Processors

    3 Advantages of an FPGA embedded processor

    4 Disadvantages

    5 Manufacturers benchmarks

    EMBEDED SYSTEM SEMINAR College of Engineering, Trivandrum

    INTRODUCTION FPGA E b dd d P Ad f FPGA b dd d Di d M f b

    http://find/http://goback/
  • 7/31/2019 fpga based embeded system seminar pt

    7/23

    INTRODUCTION FPGA Embedded Processors Advantages of an FPGA embedded processor Disadvantages Manufacturers benc

    Overview

    1 INTRODUCTION

    2 FPGA Embedded Processors

    3 Advantages of an FPGA embedded processor

    4 Disadvantages

    5 Manufacturers benchmarks

    6 Performance Enhancing Techniques

    EMBEDED SYSTEM SEMINAR College of Engineering, Trivandrum

    INTRODUCTION FPGA E b dd d P Ad t f FPGA b dd d Di d t M f t b

    http://find/http://goback/
  • 7/31/2019 fpga based embeded system seminar pt

    8/23

    INTRODUCTION FPGA Embedded Processors Advantages of an FPGA embedded processor Disadvantages Manufacturers benc

    Overview

    1 INTRODUCTION

    2 FPGA Embedded Processors

    3 Advantages of an FPGA embedded processor

    4 Disadvantages

    5 Manufacturers benchmarks

    6 Performance Enhancing Techniques

    7 Optimization techniques that are not FPGA specific

    EMBEDED SYSTEM SEMINAR College of Engineering, Trivandrum

    INTRODUCTION FPGA Embedded Processors Advantages of an FPGA embedded processor Disadvantages Manufacturers benc

    http://find/http://goback/
  • 7/31/2019 fpga based embeded system seminar pt

    9/23

    INTRODUCTION FPGA Embedded Processors Advantages of an FPGA embedded processor Disadvantages Manufacturers benc

    Overview

    1 INTRODUCTION

    2 FPGA Embedded Processors

    3 Advantages of an FPGA embedded processor

    4 Disadvantages

    5 Manufacturers benchmarks

    6 Performance Enhancing Techniques

    7 Optimization techniques that are not FPGA specific

    8 FPGA specific optimization techniques

    EMBEDED SYSTEM SEMINAR College of Engineering, Trivandrum

    INTRODUCTION FPGA Embedded Processors Advantages of an FPGA embedded processor Disadvantages Manufacturers benc

    http://find/http://goback/
  • 7/31/2019 fpga based embeded system seminar pt

    10/23

    INTRODUCTION FPGA Embedded Processors Advantages of an FPGA embedded processor Disadvantages Manufacturers benc

    INTRODUCTION

    Embedding a processor inside an FPGA has many advantages.

    Unique user-designed peripherals being easily attached. A variety ofmemory controllers enhance the FPGA embedded processor systems

    interface capabilities.FPGA embedded processors use general-purpose FPGA logic toconstruct internal memory, processor busses, internal peripherals, andexternal peripheral controllers.

    As more pieces (busses, memory, memory controllers, peripherals, andperipheral controllers) are added to the embedded processor system,the system becomes increasingly more powerful and useful.

    EMBEDED SYSTEM SEMINAR College of Engineering, Trivandrum

    INTRODUCTION FPGA Embedded Processors Advantages of an FPGA embedded processor Disadvantages Manufacturers benc

    http://find/http://goback/
  • 7/31/2019 fpga based embeded system seminar pt

    11/23

    INTRODUCTION FPGA Embedded Processors Advantages of an FPGA embedded processor Disadvantages Manufacturers benc

    FPGA Embedded Processors

    The Field Programmable Gate Array (FPGA) is a general-purposedevice filled with digital logic building blocks.

    The two market leaders in the FPGA industry, Altera and Xilinx, arethe focus of this study. Many

    The most primitive FPGA building block is called either a Logic Cell(LC) by Xilinx or a Logic Element (LE) by Altera.

    In either case, this building block consists of a look-up table (LUT)for logical functions and a flip-flop for storage.

    In addition to the LC/LE block, FPGAs also contain memory, clockmanagement, input/output (I/O), and multiplication blocks. For thepurposes of this study, LC/LE consumption is used in determiningsystem cost.

    EMBEDED SYSTEM SEMINAR College of Engineering, Trivandrum

    INTRODUCTION FPGA Embedded Processors Advantages of an FPGA embedded processor Disadvantages Manufacturers benc

    http://find/http://goback/
  • 7/31/2019 fpga based embeded system seminar pt

    12/23

    INTRODUCTION FPGA Embedded Processors Advantages of an FPGA embedded processor Disadvantages Manufacturers benc

    Advantages of an FPGA embedded processor

    An FPGA embedded processor system offers many exceptional advantagescompared to typical microprocessors including:

    1) customization

    2) obsolescence mitigation

    3) component and cost reduction

    4) hardware acceleration

    EMBEDED SYSTEM SEMINAR College of Engineering, Trivandrum

    INTRODUCTION FPGA Embedded Processors Advantages of an FPGA embedded processor Disadvantages Manufacturers benc

    http://find/http://goback/
  • 7/31/2019 fpga based embeded system seminar pt

    13/23

    g p g

    Customization

    The designer of an FPGA embedded processor system has completeflexibility to select any combination of peripherals and controllers.

    In fact, the designer can invent new, unique peripherals that can beconnected directly to the processors bus.

    For example, a designer would not easily find an off-the-shelfprocessor with ten UARTs. However, in an FPGA, this configuration

    is very easily accomplished.

    EMBEDED SYSTEM SEMINAR College of Engineering, Trivandrum

    INTRODUCTION FPGA Embedded Processors Advantages of an FPGA embedded processor Disadvantages Manufacturers benc

    http://find/http://goback/
  • 7/31/2019 fpga based embeded system seminar pt

    14/23

    Obsolescence mitigation

    Some companies, in particular those supporting military contracts,

    have a design requirement to ensure a product lifespan that is muchlonger than the lifespan of a standard electronics product.Component obsolescence mitigation is a difficult issue.

    FPGA soft-processors are an excellent solution in this case since thesource HDL for the soft-processor can be purchased.

    EMBEDED SYSTEM SEMINAR College of Engineering, Trivandrum

    INTRODUCTION FPGA Embedded Processors Advantages of an FPGA embedded processor Disadvantages Manufacturers benc

    http://find/http://goback/
  • 7/31/2019 fpga based embeded system seminar pt

    15/23

    Component and cost reduction

    With the versatility of the FPGA, previous systems that requiredmultiple components can be replaced with a single FPGA. Certainly

    this is the case when an auxiliary I/O chip or a co-processor isrequired next to an off-the-shelf processor.

    By reducing the component count in a design, a company can reduceboard size and inventory management, both of which will save design

    time and cost.

    EMBEDED SYSTEM SEMINAR College of Engineering, Trivandrum

    INTRODUCTION FPGA Embedded Processors Advantages of an FPGA embedded processor Disadvantages Manufacturers benc

    http://find/http://goback/
  • 7/31/2019 fpga based embeded system seminar pt

    16/23

    Hardware acceleration

    Perhaps the most compelling reason to choose an FPGA embeddedprocessor is the ability to make tradeoffs between hardware andsoftware to maximize efficiency and performance.

    If an algorithm is identified as a software bottleneck, a customco-processing engine can be designed in the FPGA specifically for thatalgorithm.

    With modern FPGA hardware design tools, transitioning software

    bottlenecks from software to hardware is much easier since thesoftware C code can be readily adapted into hardware with only minorchanges to the C code.1

    EMBEDED SYSTEM SEMINAR College of Engineering, Trivandrum

    INTRODUCTION FPGA Embedded Processors Advantages of an FPGA embedded processor Disadvantages Manufacturers benc

    http://find/http://goback/
  • 7/31/2019 fpga based embeded system seminar pt

    17/23

    Disadvantages

    Unlike an off-the-shelf processor, the hardware platform for the FPGAembedded processor must be designed.

    Because of the integration of the hardware and software platform

    design, the design tools are more complex.Since FPGA embedded processor software design is relatively newcompared to software design for standard processors, the softwaredesign tools are likewise relatively immature, although workable.

    If a standard, off-the-shelf processor can do the job, that processorwill be less expensive in a head-to-head comparison with the FPGAcapable of an equivalent processor design.

    EMBEDED SYSTEM SEMINAR College of Engineering, Trivandrum

    INTRODUCTION FPGA Embedded Processors Advantages of an FPGA embedded processor Disadvantages Manufacturers benc

    http://find/http://goback/
  • 7/31/2019 fpga based embeded system seminar pt

    18/23

    Manufacturers benchmarks

    The industry standard benchmark for FPGA embedded processors isDhrystone MIPs (DMIPs). Both Altera and Xilinx quote DMIPs for most,if not all, of the available embedded processors.

    The achieved DMIPs reported by the manufacturers are based onseveral things that maximize the benchmark results. Some of thesefactors include the following:

    Optimal compiler optimization levelFastest available device family (unless otherwise noted)

    Fastest speed grade in that device familyExecuting from fastest, lowest latency memory, typically on-chipOptimization of processors parameterizable feature

    EMBEDED SYSTEM SEMINAR College of Engineering, Trivandrum

    INTRODUCTION FPGA Embedded Processors Advantages of an FPGA embedded processor Disadvantages Manufacturers benc

    http://find/http://goback/
  • 7/31/2019 fpga based embeded system seminar pt

    19/23

    Performance Enhancing Techniques

    Performance degradation can be caused by the designer not enactingall of the performance enhancing techniques available to FPGAembedded processors.

    Need to learn which software optimization techniques apply to FPGAembedded processors. Designers must also learnperformance-enhancing techniques that apply specifically to FPGAs.

    Increased design complexity is overwhelming to many, includingexperienced embedded or FPGA designers.

    As an introduction to this type of design, a fewperformance-enhancing techniques are highlighted..

    EMBEDED SYSTEM SEMINAR College of Engineering, Trivandrum

    INTRODUCTION FPGA Embedded Processors Advantages of an FPGA embedded processor Disadvantages Manufacturers benc

    http://find/http://goback/
  • 7/31/2019 fpga based embeded system seminar pt

    20/23

    Optimization techniques that are not FPGA specific

    The main objective of this section is to emphasize that many standardmicroprocessor design optimization techniques apply to FPGA embeddedprocessor design and can have excellent benefits.

    Code manipulation- Many optimizations are available to affect theapplication code. Some techniques apply to how the code is written.

    Other techniques affect how the compiler handles the code.Optimization level- These compilers have several levels of optimization,including: Levels 0, 1, 2, and 3 and also a size reduction optimization.Use of manufacturers optimized instructions-Xilinx provides severalcustomized instructions that have been streamlined for Xilinxembedded processors.

    Assembly-Assembly, including in-line assembly, is supported by GCC.As with any microprocessor, assembly becomes very useful in fullyoptimizing time critical functions.Miscellaneous-locality of reference,code profiling,careful definition ofvariables (Xilinx provides a Basic Types definition) strategic use of

    small data sections, with accesses that can be twice as fast as largedata sectionsEMBEDED SYSTEM SEMINAR College of Engineering, Trivandrum

    INTRODUCTION FPGA Embedded Processors Advantages of an FPGA embedded processor Disadvantages Manufacturers benc

    http://find/http://goback/
  • 7/31/2019 fpga based embeded system seminar pt

    21/23

    Memory Usage

    The way this memory is used has a significant affect on performance.

    Local memory only- The fastest possible memory option is to puteverything in local memory. Xilinx local memory is made up of largeFPGA memory blocks called BlockRAM (BRAM). Embeddedprocessor accesses to BRAM happen in a single bus cycle.

    External memory only- Xilinx provides several memory controllers thatinterface with a variety of external memory devices. These memorycontrollers are connected to the processors peripheral bus. The threetypes of volatile memory supported by Xilinx are SRAM,single-data-rate.

    Cache external memory

    Combination: code partitioning in internal, external, and cachedmemory.

    EMBEDED SYSTEM SEMINAR College of Engineering, Trivandrum

    INTRODUCTION FPGA Embedded Processors Advantages of an FPGA embedded processor Disadvantages Manufacturers benc

    http://find/http://goback/
  • 7/31/2019 fpga based embeded system seminar pt

    22/23

    FPGA specific optimization techniques

    Since the designer is actually building and creating the embeddedprocessor system hardware in an FPGA, much can be done to improve theperformance of the hardware.

    Increase FPGAs operating frequency

    Logic optimization and reductionArea and timing constraints

    Hardware acceleration

    Turn on the hardware divider and barrel-shifterSoftware bottlenecks converted to co-processing hardware

    EMBEDED SYSTEM SEMINAR College of Engineering, Trivandrum

    INTRODUCTION FPGA Embedded Processors Advantages of an FPGA embedded processor Disadvantages Manufacturers benc

    http://find/http://goback/
  • 7/31/2019 fpga based embeded system seminar pt

    23/23

    THANKS

    EMBEDED SYSTEM SEMINAR College of Engineering, Trivandrum

    http://find/http://goback/