DSP for FPGA - PowerPoint PPT Presentation

About This Presentation
Title:

DSP for FPGA

Description:

DSP for FPGA. SYSC5603 (ELG6163) Digital Signal Processing Microprocessors, ... Quartus II Fitter. Step 7 Program Device. Download Design to DSP Development Kits ... – PowerPoint PPT presentation

Number of Views:707
Avg rating:3.0/5.0
Slides: 48
Provided by: Miod
Category:
Tags: dsp | fpga | fitter

less

Transcript and Presenter's Notes

Title: DSP for FPGA


1
DSP for FPGA
  • SYSC5603 (ELG6163) Digital Signal Processing
    Microprocessors, Software and Applications
  • Miodrag Bolic

2
Objectives
  • Comparison between PDSP and FPGA
  • Virtex II Pro
  • Altera Stratix FPGA
  • Stratix DSP Block and its configuration
  • Altera design flow

3
What Is an FPGA?
  • Field Programmable Gate Array
  • Device that Has a Regular Architecture (Set of
    Blocks) that Can Be Programmed for Various
    Functions
  • Glue Logic
  • Customizable Hardware Solution
  • Configurable Processors

4
Why Use FPGAs in DSP Applications?
  • 10x More DSP Throughput Than DSP Processors
  • Parallel vs. Serial Architecture
  • Cost-Effective for Multi-Channel Applications
  • Flexible Hardware Implementation
  • Single-Chip Solution
  • System (Hardware/Software) Integration Benefits

FPGA
SoftwareEmbeddedProcessor
5
DSP Processors vs. FPGAs
High Speed DSP Processor
High Level of Parallel Processing in FPGA
  • Can implement hundreds of MAC functions in an
    FPGA
  • Parallel implementation allows for faster
    throughput
  • 200 Tap FIR Filter would need 1 clock cycle per
    sample
  • 1-8 Multipliers
  • Needs looping for more than 8 multiplications
  • Needs multiple clock cycles because of serial
    computation
  • 200 Tap FIR Filter would need 25 clock cycles
    per sample with an 8 MAC unit processor

6
Extending Range of Altera Reconfigurable DSP
Solutions
New!
600 -
Performance (MMACs/sec)
100 -
Complete Hardware Implementation
Embedded Processors
Embedded Processors Hardware Acceleration
7
Comparison of DSP Devices
Data Programmable DSP Processors Reconfigurable DSP
Benefits Easy to Use Programmed Via C-Code or Assembly Fast Development Time Easy to Use Programmed via C-Code, Assembly, or HDL Efficient for Recursive Algorithms Using DSP IP Cores Higher Levels of Integration
Weaknesses Fixed Architecture Inefficient for Highly Recursive Algorithms Unless Hardware Accelerated Potential Bus Bottlenecks Other Devices (FPGAs) Often Used on Board for Other Functions Longer Development Time (But Getting Shorter!)
8
Objectives
  • Comparison between PDSP and FPGA
  • Virtex II Pro
  • Altera Stratix FPGA
  • Stratix DSP Block and its configuration
  • Altera design flow

9
Stratix EP1S10 2
10
(No Transcript)
11
(No Transcript)
12
TriMatrix Memory 1
Dedicated External Memory Interface
M512 Blocks
M4K Blocks
M-RAM
  • Small FIFOs
  • Shift Register
  • Rake Receiver Correlator
  • FIR Filter Delay Line
  • Packet / Data Storage
  • Nios Program Memory
  • System Cache
  • Video Frame Buffers
  • Echo Canceller Data Storage
  • Header / Cell Storage
  • Channelized Functions
  • ATM cellpacket processing
  • Nios Program Memory
  • Look-Up Schemes
  • Packet Cell Buffering
  • Cache

More Bits For Larger Memory Buffering
512 Kbits per block parity
4 Kbits per block parity
512 bits per block parity
More Data Ports for Greater Memory Bandwidth
13
Memory Bandwidth SummaryStratix Device Family 1
Device Total RAM Bits M-RAM Blocks M4K Blocks M512 Blocks MaximumBandwidth (Mbps)
EP1S10 920,448 1 60 94 1,245,024
EP1S20 1,669,248 2 82 194 2,096,928
EP1S25 1,944,576 2 138 224 2,894,400
EP1S30 3,317,184 4 171 295 3,750,192
EP1S40 3,423,744 4 183 384 4,384,800
EP1S60 5,215,104 6 292 574 6,762,528
EP1S80 7,427,520 9 364 767 8,784,720
14
Logic Element (LE) 2
LUT Chain Input
Register Chain Input
Register Control Signals
addnsub
cin
(2)
data1
4-Input LUT
Sync Load Clear Logic
data2
Row, Column DirectLink Routing
data3
data4
Local Routing
Register Feedback
Register Chain Output
LUT Chain Output
  • Note
  • Functional Diagram Only. Please See Datasheet
    for more Details.
  • Addnsum data1 connected via XOR logic

15
Dynamic Arithmetic Mode
Register Chain Input
Register Control Signals
LAB Carry-In
Carry-In Logic
Carry-In0
Carry-In1
addnsub
data1
Sum Calculator
Sync Load Clear Logic
data2
Row, Column DirectLink Routing
data3
Carry Calculator
Local Routing
Carry-Out Logic
Carry-In0
Carry-In1
Register Chain Output
Carry-Out1
Carry-Out0
Note Functional Diagram Only. Please See
Datasheet for more Details.
16
Logic Array Blocks (LAB) 2
Control Signals
  • 10 LEs
  • Local Interconnect
  • LAB-Wide Control Signals

4
4
4
4
30 LAB Input Lines 10 LE Feedback Lines
4
Local Interconnect
4
4
4
4
4
17
Avalon Switch Fabric Contents
  • Avalon Switch Fabric provides the following to
    peripherals it connects
  • Data-Path Multiplexing
  • Address Decoding
  • Wait-State Generation
  • Dynamic Bus Sizing
  • Interrupt-Priority Assignment
  • Latent Transfer Capabilities
  • Streaming Read and Write Capabilities
  • Avalon Switch Fabric tailors transactions to the
    characteristic of peripherals that are attached

18
SOPC Design Example
CPU 32 Bit
Inst Master
Data Master
Avalon Switch Fabric
Allows for Masters and Slaves to communicate
without knowledge of each others interface
details
UART
Instruction Memory 32-bit Data path
Avalon Tri-State Bridge
VGA Controller
Data Memory 32-bit Data path
External FLASH 1 MB 16-bit Datapath
External SRAM 256 KB 32-bit Datapath
19
Data Path Multiplexing Slave Arbitration
  1. Data-Path Multiplexing

Avalon Switch Fabric
MUX
2- Slave Arbitration
Arbiter
UART
Instruction Memory 32-bit Data path
Avalon Tri-State Bridge
VGA Controller
Data Memory 32-bit Data path
External FLASH 1 MB 16-bit Datapath
External SRAM 256 KB 32-bit Datapath
3- Address Decoding
20
Objectives
  • Comparison between PDSP and FPGA
  • Virtex II Pro
  • Altera Stratix FPGA
  • Stratix DSP Block and its configuration
  • Altera design flow

21
DSP Blocks
  • Eight 9 9 bit multipliers
  • Four 18 18 bit multipliers
  • One 36 36 bit multiplier

22
DSP Blocks (cont.)
  • The DSP block consists of
  • A multiplier block
  • An adder/subtractor/accumulator block
  • A summation block
  • An output interface
  • Output registers
  • Routing and control signals

23
Stratix DSP Blocks
  • High Performance Dedicated Multiplier Circuitry
  • 18x18 Functions at 280 MHz
  • Variable Operand Widths with Full Precision
    Outputs
  • 9x9 (8 Max.)
  • 18x18 (4 Max.)
  • 36x36 (1 Max.)
  • Add, Accumulate orSubtract
  • Signed UnsignedOperations
  • Dynamically Changebetween Add Subtract
  • Supports DSP RequirementsIncluding Complex
    Numbers

24
DSP Block for 18 x 18-bit Mode
25
Shift Register Chain
26
Adder/Output Block
27
Time-Domain Multiplexed FIR Filters
28
Operation of TDM Filter
29
(No Transcript)
30
Resource Savings with DSP Blocks
  • DSP Block
  • Reduces LE Usage
  • Reduces Routing Congestion
  • Reduces Power
  • Maintains Performance

90 of your problems are hidden under the surface!
18
18
18
18
SAVES 652 ROUTING NETS!
X
X
36
36
36
36



38
31
Design Flow
32
Design Flow Overview
  1. Create Design in Simulink Using Altera Libraries
  2. Simulate in Simulink
  3. Add SignalCompiler to Model
  4. Create HDL Code Generate Testbench
  5. Perform RTL Simulation
  6. Synthesize HDL Code Place Route
  7. Program Device
  8. Signal Tap II Logic Analyzer

33
Step 1- Create Design in Simulink Using Altera
Libraries
  • Drag Drop Library Blocks into Simulink Design
    Parameterize Each Block

34
Parameterization of IP Megacores
35
Step 2 - Simulate in Simulink
36
Step 3 - Add Signal Compiler to Model to
Generate HDL code
  • APEX20K/E/C
  • APEX II
  • Stratix Stratix GX
  • Cyclone ACEX 1K
  • Mercury
  • FLEX10K FLEX 6000
  • DSP Boards
  • Leonardo Spectrum
  • Synplify
  • Quartus II

Speed vs. Area
Testbench Generation
Message Window
37
Step 4 - Create HDL Code Generate Testbench
AltrFir32.mdl
Enable "Generate Stimuli for VHDL Testbench"
Button
AltrFir32.vhd
38
HDL Code Generation
39
DSP Builder Report File
  • Lists All Converted Blocks
  • Port Widths
  • Sampling Frequencies
  • Warnings Messages

40
Step 5 Perform RTL Simulation ( ModelSim )
  1. Set working directory (File gt Change Directory)
  2. Run TCL file (Tools gt Execute Macro)

41
Perform Verification
ModelSim vs Simulink
42
Step 6 - Synthesize HDL Place Route
  • Leonardo Spectrum
  • Synplify
  • Quartus II

Synthesis
Quartus II Fitter
43
Step 7 Program Device
Download Design to DSP Development Kits
44
Stratix DSP Development Board
Nios Expansion Prototype Connector
MAX 7000 Device
Prototyping Area
D/A Converters
Mictor-Type Connectors for HP Logic Analyzers
A/D Converters
Analog SMA Connectors
40-Pin Connectors for Analog Devices
Texas Instruments Connectors on Underside of Board
45
Stratix DSP Board Key Features
  • Stratix EP1S25F780C5 Device (Starter Version)
  • Stratix EP1S80B956C7 Device (Professional
    Version)
  • Analog I/O
  • Two 12-bit, 125 MHz A/D Converters
  • Two 14-bit, 165 MHz D/A Converters
  • Digital I/O
  • Two 40-pin Connectors for Analog Devices A/D
    Converter Evaluation Boards
  • Connector for TI TMS320 Cross-Platform Daughter
    Card
  • 3.3V Expansion/Prototype Headers
  • RS-232 Serial Port
  • Memory
  • 2 Mbytes of 7.5-ns Synchronous SRAM
  • 32 Mbytes of FLASH

46
Step 8 - SignalTap II Logic Analyzer
  • Embedded Logic Analyzer
  • Downloads into Device with Design
  • Captures State of Internal Nodes
  • Uses JTAG for Communication

47
SignalTap II Logic Analyzer
Analysis of Imported Data
Imported Data
Imported Plot
Write a Comment
User Comments (0)
About PowerShow.com