1. Trang chủ
  2. » Kỹ Thuật - Công Nghệ

xu ly tin hieu so fpga hoang trang dsp fpga htrang chapter1 2slides per page cuuduongthancong com

55 6 0

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

THÔNG TIN TÀI LIỆU

Thông tin cơ bản

Tiêu đề Xử Lý Tín Hiệu Số Với FPGA
Tác giả Hoàng Trang
Người hướng dẫn Thầy Hồ Trung Mỹ
Trường học Vietnam National University Ho Chi Minh City - University of Science and Technology
Chuyên ngành Electrical and Electronic Engineering
Thể loại Giáo trình
Năm xuất bản 2013
Thành phố Ho Chi Minh City
Định dạng
Số trang 55
Dung lượng 9,74 MB

Các công cụ chuyển đổi và chỉnh sửa cho tài liệu này

Nội dung

Hoàng TrangBM Điện Tử-DSP-FPGA-chapter1 01/2013 11 Digital Signal Processing • Signals generated via physical phenomenon are analog in that – Their amplitudes are defined over the ran

Trang 1

ĐẠI HỌC QUỐC GIA TP.HỒ CHÍ MINH TRƯỜNG ĐẠI HỌC BÁCH KHOA

+ Thiết kế giải thuật DSP với FPGA

cuu duong than cong com

Trang 2

2 Homework (textbook) : 10% (team work)

3 Project: 20% (team work)

• Application domain specific

instruction set processors

• Finite-word length effects

• Algorithmic transformations

• FIR filter design

• FFT design

• IIR filter design

• Adaptive filter designcuu duong than cong com

Trang 3

• Assignments with solutions will be provided and

will not be graded

• The exam will be prepared based on lecture

slides, references and assignments

Course Objectives … To

• Understand tradeoffs in implementing DSP

algorithms

• Know basic DSP architectures

• Know some reduced complexity strategies for

algorithms mainly on FPGA.

• Know about commercial DSP solution

• Know and understand system-level design tools

• Understand research topics related to algorithmic

modifications and algorithm-architecture

cuu duong than cong com

Trang 4

Hoàng Trang

BM Điện Tử-DSP-FPGA-chapter1 01/2013 7

Why this course?

There is the demand to derive more information per

signal “More” means

• Faster: Derive more information per unit time;

– Faster hardware

– Newer algorithms with fewer operations

• Cheaper: Derive information at a reduced cost in

processor size, weight, power consumption, or

dollars;

• Better: Derive higher quality information, (higher

precision, finer resolution, higher SNR)

Hardware and software elements

Progress in signal processing capability is the product of

progress in IC devices, architectures, algorithms and

mathematics.

cuu duong than cong com

Trang 5

Hoàng Trang

BM Điện Tử-DSP-FPGA-chapter1 01/2013 9

Moore’s Law

9 http://www.icknowledge.com/trends/uproc.html

Predicts doubling of circuit density every 1.5 to 2 years.

What is Signal Processing?

• Ways to manipulate signal

in its original medium or an

abstract representation.

• Signal can be abstracted as

functions of time or spatial

coordinates.

• Types of processing:

– Transformation– Filtering– Detection– Estimation– Recognition and classification– Coding (compression)– Synthesis and reproduction– Recording, archiving– Analyzing, modelingcuu duong than cong com

Trang 6

Hoàng Trang

BM Điện Tử-DSP-FPGA-chapter1 01/2013 11

Digital Signal Processing

• Signals generated via

physical phenomenon are

analog in that

– Their amplitudes are defined

over the range of

– A continuous time/space

signal must be sampled to

yield countable signal samples

– The real-(complex) valued samples must be quantized to fit into internal word length

Digital Signal Processing applications

cuu duong than cong com

Trang 7

Hoàng Trang

BM Điện Tử-DSP-FPGA-chapter1 01/2013 13

Signal Processing Systems

The task of digital signal processing (DSP) is to process

sampled signals (from A/D analog to digital converter), and

provide its output to the D/A (digital to analog converter) to

be transformed back to physical signals.

Digital Signal Processing A/D

Trang 8

Hoàng Trang

BM Điện Tử-DSP-FPGA-chapter1 01/2013 15

Stratix DSP Development Board

40-Pin Connectors for Analog Devices Texas Instruments Connectors on

Underside of Board

Mictor-Type Connectors for

HP Logic Analyzers MAX 7000 Device

Trang 9

Hoàng Trang

BM Điện Tử-DSP-FPGA-chapter1 01/2013

Implementation of DSP Systems

• Platforms:

– Native signal processing (NSP)

with general purpose processors

– Streamed numerical data

• Sequential processing

• Fast arithmetic processing– High throughput

• Fast data input/output

• Fast manipulation of data

How Fast is Enough for DSP?

• Real time requirements:

– Example: data capture speed must

match sampling rate Otherwise,

data will be lost

– Processing must be done by a

specific deadline

• Different throughput rates for processing different signals– Throughput ∝sampling rate

– CD music: 44.1 kHz– Speech: 8-22 kHz– Video (depends on frame rate, frame size, etc.) range from 100s kHz to MHz

Example:

Processor clocked at 120 MHz and can perform 120MIPS

+ Sampling rate = 48KHz (Digital Audio Tape - DAT)

number of instructions per sample = (120 x 106)/(48 x 103) = 2500

+ Sampling rate = 8KHz (voice-band, telephony)

number of instructions per sample = 15000

+ Sampling rate = 75MHz (CIF 360x288 Video at 30 frames per second)

number of instructions per sample = 1.6

cuu duong than cong com

Trang 10

Hoàng Trang

BM Điện Tử-DSP-FPGA-chapter1 01/2013

ASIC: Application Specific ICs

• Custom or semi-custom IC chip or

chip sets developed for specific

services Fab-less design

houses turn innovative design into profitable chip sets using

CAD tools

• Design automation is a key enabling technology to facilitate fast design cycle and shorter time to market delay.

Programmable Digital Signal Processors (PDSPs)

• Micro-processors designed for

signal processing applications.

• Special hardware support for:

– Multiply-and-Accumulate (MAC) ops

– Saturation arithmetic ops

– Zero-overhead loop ops

– Dedicated data I/O ports

– Complex address calculation and

– GPP flexible, but slow– ASIC fast, but inflexible

• As VLSI technology improves, role of PDSP changed over time.

– Cost: design, sales, maintenance/upgrade– Performance

cuu duong than cong com

Trang 12

Ref: Forward Concepts

http://www.fwdconcepts.com/Pages/press42.htm

Computing using FPGA

• FPGA (Field programmable gate array) is a

derivative of PLD (programmable logic

devices)

They are hardware configurable to behave

differently for different configurations

• Slower than ASIC, but faster than PDSP

• Once configured, it behaves like an ASIC

module

• Use of FPGA– Rapid prototyping: run fractional ASIC speed without fab delay

– Hardware accelerator: using the same hardware to realize different function modules to save hardware

– Low quantity system deployment

cuu duong than cong com

Trang 13

Hoàng Trang

BM Điện Tử-DSP-FPGA-chapter1 01/2013 25

FPGA example: Stratix EP1S10

Altera Corp., Stratix Module 2: Logic Structure & MultiTrack Interconnect, 2004.

IP Cores

• Processor cores

Start-Core

– 16-bit fixed-point VLIW DSP core from Lucent/Motorola (a company is

established by Lucent for DSP section called “Agere”)

– First VLIW machine to target low-power applications

– Pipeline relatively simple

– FFT/IFFT Compiler Transforms

– NCO Compiler Signal Generation

– Reed-Solomon Compiler Error Detection / Correction

– Constellation Mapper/Demapper Modulation / Demodulation

cuu duong than cong com

Trang 14

Hoàng Trang

BM Điện Tử-DSP-FPGA-chapter1 01/2013

SoC (System-on-Chip)

• With the continuing scaling of modern IC

devices, it is now possible to incorporate

– Micro-processor cores + ASIC function

blocks

– Analog + digital components

– Computation + communication functions

– I/O, memory + processor

into the same chip to form a

• Challenge issues in SoC design:

– Interface among IPs from different venders

– Verification of function– Physical design challenges

Design Issues????!!!!

• Given a DSP application, which

implementation option should be

chosen?

• For a particular implementation

option, how to achieve optimal

design? Optimal in terms of what

criteria?

• Software design:

– NSP, PDSP– Algorithms are implemented as programs

• Hardware design:

– ASIC, FPGA– Algorithms are directly implemented in hardware modules

• S/H Co-design: System level design methodology.

A design methodology is the overall strategy to organize and solve the design

tasks at the different steps of the design process

Design methodology is viewed as the development of a sequence of models of

the system, where each version is more refined than the previous one

cuu duong than cong com

Trang 15

Hoàng Trang

BM Điện Tử-DSP-FPGA-chapter1 01/2013

Design Process Model

• Design is the process that links

algorithm to implementation

• Algorithm

– Operations

– Dependency between operations

determines a partial ordering of

• One or more instructions (software)

• One or more function modules (hardware)– Scheduling: Dependence relations and resource constraints leads to a

• Dependency– y(k) depends on y(k-1)– Dependence Graph:

y

1

) ( ) (

Trang 16

Hoàng Trang

BM Điện Tử-DSP-FPGA-chapter1 01/2013

Design Example cont’d …

• Software Implementation:

– Map each * op to a MUL instruction,

and each + op to a ADD instruction

– Allocate memory space for {a(k)},

{x(k)}, and {y(k)}

– Schedule the operation by sequentially

execute y(1)=a(1)*x(1), y(2)=y(1) +

– Interconnect them according

to the dependence graph:

*+

a(1) x(1)

*+

a(2) x(2)

*+

a(n) x(n)

Observations

• Eventually, an implementation is

realized with hardware.

• However, by using the same

hardware to realize different

operations at different time

(scheduling), we have a

software program!

• Bottom line – Hardware/

software co-design There is

a continuation between hardware and software implementation

• A design must explore both simultaneously to achieve best performance/cost trade- off.

cuu duong than cong com

Trang 17

Hoàng Trang

BM Điện Tử-DSP-FPGA-chapter1 01/2013

A Theme

• Matching hardware to algorithm

– Hardware architecture must match

the characteristics of the algorithm

– Example: ASIC architecture is

designed to implement a specific

algorithm, and hence can achieve

– Example: GPP, PDSP architectures are fixed One must formulate the algorithm properly to achieve best performance Eg To minimize number of operations

Algorithm Reformulation

• Algorithmic level equivalence

– Different filter structures implementing the same

specification

• Exploiting parallelism

– Regular iterative algorithms and loop

reformulation

• Well studied in parallel compiler technology

– Signal flow/Data flow representation

• Suitable for specification of pipelining

cuu duong than cong com

Trang 18

Hoàng Trang

BM Điện Tử-DSP-FPGA-chapter1 01/2013 35

Mapping Algorithm to Architecture

• Scheduling and Assignment Problem

– Resources: hardware modules, and time slots

– Demands: operations (algorithm), and throughput

• Constrained optimization problem

– Minimize resources (objective function) to meet

demands (constraints)

• For regular iterative algorithms and regular

processor arrays -> algebraic mapping.

Implementation process for PDSP

cuu duong than cong com

Trang 20

Hoàng Trang

BM Điện Tử-DSP-FPGA-chapter1 01/2013 39

Transposed FIR Filter

Algorithm transform techniques:

– Pipelining and parallelism (Parallelism parallel FIR filter: 3 inputs

are processed at the same time to produce 3 outputs)

– Retiming (Retiming is a transformation technique used to change

location of delay elements: reducing the clock period, reducing the

Trang 22

– ROM based implementation

Floating to fixed point analysis

Overflow of the number range

• Large errors in the output signal occur when the available number range is

exceeded— overflow

Round-off errors

• Rounding or truncation of products must be done in recursive loops so

that the word length does not increase for each iteration

Coefficient errors

• Coefficients can only be represented with finite precision

Design for fixed-point arithmetic:

• Peak value estimation

• Word-length optimization

• Saturation arithmetic

cuu duong than cong com

Trang 23

Hoàng Trang

BM Điện Tử-DSP-FPGA-chapter1 01/2013 1-45

ASIC Design Methodologies

ASIC Design Methodology

 Most ASICs are currently designed using this method

Standard-cell based design

 This approach is fast and less expensive

 ASIC performance are relatively slow

Gate-array based design

 The design process

is very fast and cost effective

 ASIC performance are slow

FPGA based design

Full-Custom Design Methodology

Function Partition

Schematic Design

Function And Timing verification

PassFail

Including transistor sizing

Layout Design

Including placement & routing

Post-Layout simulation

PassFail

Go to fabrication

ASIC Chips

 It is a time consuming manual process, not pre-developed libraries needed.

cuu duong than cong com

Trang 24

Hoàng Trang

BM Điện Tử-DSP-FPGA-chapter1 01/2013 1-47

Full-Custom Design Methodology

 Design a chip from scratch

 Custom mask layers are created in order to fabricate

a full-custom IC

 Engineers design some or all of the logic cells, circuits,

and the chip layout specifically for a full-custom IC

 Advantages: complete flexibility, high degree of

optimization in performance and area

 Disadvantages: large amount of design effort, expensive

Standard-Cell Based Design Methodology

High-level (RTL or behavioral-level) design VHDL or Verilog coding

High-level verification VHDL or Verilog simulation

Logic synthesis Logic gate library

Gate-level verification

Placement & Routing Cell layout library

Post-Layout verification Go to fabrication

Fail

Pass

PassFail

 It is highly automated, but need pre-developed libraries.

cuu duong than cong com

Trang 25

Hoàng Trang

BM Điện Tử-DSP-FPGA-chapter1 01/2013 1-49

Standard-Cell Based Design Methodology

 Use pre-developed logic cells from standard-cell library as

building blocks

 As full-custom design, all mask layers need to be customized to

fabricate a new chip

 Advantages: save design time and money, reduce risk

compared to full-custom design

 Disadvantages: still incurs high non-recurring-engineering

(NRE) cost and long manufacture time

A

AD

Gate-Array Based Design Methodology

Generating schematic (netlist)

The netlist can be designedusing full-custom or standard-cell based design method

Placement & Routing Cell layout library

Post-Layout verification

Pre-fabricated gate array template

Make the final connections for the pre-fabricated gate array base

ASIC Chips

 It contains transistors

without connections

 This approach is faster than the standard-cell based approach because part of

cuu duong than cong com

Trang 26

Hoàng Trang

BM Điện Tử-DSP-FPGA-chapter1 01/2013 1-51

Gate-Array Based Design Methodology

 Parts of the chip (transistors) are pre-fabricated, and other parts

(wires) are custom fabricated for a particular customer’s circuit

 Advantages: cost saving (fabrication cost of a large number of

identical template wafers is amortized over different

customers), shorter manufacture lead time

 Disadvantages: performance not as good as full-custom or

standard-cell-based ICs

FPGA Based Design Methodology

Schematic Capture

Generate FPGA Bit Stream

Trang 27

Hoàng Trang

BM Điện Tử-DSP-FPGA-chapter1 01/2013 1-53

Comparison of Design Methodologies

Full-custom design

Standard-cellbased design

Gate-arraybased design

FPGA-based design

+ desirable; - not desirable

Why do we want FPGAs

 Fast turn-out time

 The ability of re-programming

 The capability of dynamic reconfiguration

 Advantages of using FPGAs

 Ideal platform for prototyping

 Providing fast implementation to reduce time-to-market

 Cost effective solutions for products with small volumes on demand

 Implementing hardware systems requiring re-programming flexibility

 Implementing dynamically re-configurable systems

cuu duong than cong com

Trang 28

Hoàng Trang

BM Điện Tử-DSP-FPGA-chapter1 01/2013

FPGA Market

 Total Revenue is above two billion U.S Dollar

Source from http://www.optimagic.com/

 Market Share in 1998

 Current FPGA revenue is about 3.6B USD

 Major players include: Xilinx, Altera, Actel, Lattice, Atmel, Cypress,

QuickLogic, SiliconBlue

The State-of-Art of FPGAs

 Various types of FPGAs are available for different applications

 Currently, FPGAs are widely used in implementing communication

systems, configurable computers, and DSP applications

 Modern FPGAs are fabricated using the most advanced technology

and are capable to implement very high performance systems

— For example, the latest Xilinx Virtex-II Pro FPGAs are fabricated using

90 nm technology, containing more than one million gates Such devices

also include PowerPC microprocessor, on-chip memories, and

3.125Gbit/s I/O interfaces

cuu duong than cong com

Ngày đăng: 27/12/2022, 08:36

TỪ KHÓA LIÊN QUAN

TÀI LIỆU CÙNG NGƯỜI DÙNG

TÀI LIỆU LIÊN QUAN

🧩 Sản phẩm bạn có thể quan tâm