lecture no.1-1

34
7/23/2019 Lecture no.1-1 http://slidepdf.com/reader/full/lecture-no1-1 1/34 DSP Development System GULAM AMER HEAD, EIE

Upload: amer

Post on 18-Feb-2018

215 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Lecture no.1-1

7/23/2019 Lecture no.1-1

http://slidepdf.com/reader/full/lecture-no1-1 1/34

DSP Development System

GULAM AMER

HEAD, EIE

Page 2: Lecture no.1-1

7/23/2019 Lecture no.1-1

http://slidepdf.com/reader/full/lecture-no1-1 2/34

Outline

Introduction

Common feature of DSP Processor 

TI TMS320 Development Kit

Philips Trimedia Development Kit

Page 3: Lecture no.1-1

7/23/2019 Lecture no.1-1

http://slidepdf.com/reader/full/lecture-no1-1 3/34

Introduction What is DSP

DSP!Di"ital si"nal processor# is used to manipulate

real$%orld si"nals after the& have 'een converted into adi"ital form(

Page 4: Lecture no.1-1

7/23/2019 Lecture no.1-1

http://slidepdf.com/reader/full/lecture-no1-1 4/34

Introduction !cont(# Wh& is DSP processor

Mathematical calculation vs( data manipulation(

Data Manipulation Math calculation

 TypicalApplication

Wo! pocessin",Data#aseMana"ement,spea!

sheet,$%S etc%%

Di"ital Si"nalpocessin",motioncontol%% Etc%

Main$peations

Data Move&'A() *+

alue testin"& I- A(*then )

Sotin", seachin"%%

A!!tion&A.*(/

Multiplication&A0*(/

Sum o1 po!uct%%

Page 5: Lecture no.1-1

7/23/2019 Lecture no.1-1

http://slidepdf.com/reader/full/lecture-no1-1 5/34

Introduction !cont(# Off$line processin"

The entire input si"nal resides in the computer as the

same time( *ll of the information is simultaneousl& availa'le to the

 processin" pro"ram(

+,ample - medical ima"in". such as computed

tomo"raph& and M/I( PC and mainframes.

Page 6: Lecture no.1-1

7/23/2019 Lecture no.1-1

http://slidepdf.com/reader/full/lecture-no1-1 6/34

Introduction !cont(# On$line processin"

The output si"nal is produced at the same time that the

input si"nal is 'ein" acuired( +("( telephone. radar.hearin" aids(

/eal$time applications must 'e have the information

immediatel& availa'le.althou"h it can 'e dela&ed '& a

short amount(

/eal$time applications is input a sample. perform the

al"orithm. and output a sample. over$and$over(

This is the %orld of Digital Signal Processors.

Page 7: Lecture no.1-1

7/23/2019 Lecture no.1-1

http://slidepdf.com/reader/full/lecture-no1-1 7/34

Introduction !cont(# The definition of real$time depends on the applications. for

instance. an *udio application /euires a samplin" freuenc& of 10 K(

 4eedin" 500 serial instructions to complete and usin" a DSP

 processor %ith 30 ns c&cle time(

Then in 3 microseconds the calculation is completed(

Sample n

Time 'et%een samples 6 5710K 628 microseconds

500 instructions

3 microseconds Waitin" time Sample n95

Page 8: Lecture no.1-1

7/23/2019 Lecture no.1-1

http://slidepdf.com/reader/full/lecture-no1-1 8/34

Introduction !cont:d(# What applications DSP can do

Comple, s&stem control(

Multimedia processin"!;ideo.*udio.Speech.Ima"e.etc(#

Intelli"ent si"nal processin" usin" soft

computin"!<u& inference. 4eural net%or=s. etc(#

Page 9: Lecture no.1-1

7/23/2019 Lecture no.1-1

http://slidepdf.com/reader/full/lecture-no1-1 9/34

Common feature of DSP Processor  Multiple$access Memor& architecture

*dvance arvard architecture to achieve separate pro"ram and dualaccess data memor& space(

Specialied addressin" modes Circular 'uffer. 'it$reversed addressin"(

<ast multipl&$accumulate!M*C# i"h performance interrupt handlin"( Sin"le and 'loc= instructions '& pipeline structure to perform one

instruction per c&cle( On$chip peripherals and I7O interfaces

Multi$channels direct memor& access!DM*#( i"h performance serial and parallel I7O port( i"h resolution timer(

Page 10: Lecture no.1-1

7/23/2019 Lecture no.1-1

http://slidepdf.com/reader/full/lecture-no1-1 10/34

Common feature of DSP Processor !cont(#

 Processor Core

 Address Bus

 Data Bus

 Memory

 Processor Core

 Address Bus

 Data Bus

 Data Bus

 Address Bus

 Memory A Memory B

Von-Neumann Harvard 

Page 11: Lecture no.1-1

7/23/2019 Lecture no.1-1

http://slidepdf.com/reader/full/lecture-no1-1 11/34

Common feature of DSP Processor !cont(# *dvance arvard The processor core can

simultaneousl& perform

t%o access to memor& 'an=* and one access tomemor& 'an= > usin" threeindependent sets of 'uses( Dual$ported data

memor&( Sin"le ported pro"ram

memor&(

 Processor Core

 Memory A Memory B

 Address Bus 1

 Data Bus 1

 Data Bus 2

 Address Bus 2

 Data Bus 3

 Address Bus 3

Page 12: Lecture no.1-1

7/23/2019 Lecture no.1-1

http://slidepdf.com/reader/full/lecture-no1-1 12/34

Common feature of DSP Processor !cont(# Data address "enerator!D?*# for

PM and DM Circular 'uffers. 'it$reversed

address for <<T(

Data re"ister sets ?eneral purpose re"isters.special

 purpose re"isters( Math processin" units

Multiplier( *rithmetic lo"ic unit!*@A#( >arrel shifter(

Pro"ram seuencer and instructioncache(

S&stem 'uses(

 Program

 Memoryinstructions and

 secondary data

 Data

 Memory Data only

 I!Controller 

"DMA#

 s$i%ter 

 A&' 

 Multi(lier 

 Data

register 

 Program se)uencer 

 Instruction

ca$e

 Data

register 

 Data

register 

 Hig$

 s(eed I!

Page 13: Lecture no.1-1

7/23/2019 Lecture no.1-1

http://slidepdf.com/reader/full/lecture-no1-1 13/34

Common feature of DSP Processor !cont(# The difference 'et%een DSP and CPA-

DSP processor is possi'le to do several accesses to memor& in a

sin"le instruction c&cle( i(e(. DSP processor have a relativel& hi"h

 'and%idth 'et%een their Core CPA and memor&( DSP processor are optimied to cope %ith repetition or loopin" of

operations common in si"nal processin" applications(

DSP allo%s specialied addressin" modes. such as

indirect.circular. and 'it reverse addressin"( These are efficient

addressin" mechanisms to implement man& si"nal processin"al"orithms(

Page 14: Lecture no.1-1

7/23/2019 Lecture no.1-1

http://slidepdf.com/reader/full/lecture-no1-1 14/34

TI TMS320 Development Kit ;@IW architecture

;er& @on" Instruction Word(

Parallel processin" %ith multiple function units( TMS320CB000 famil&

<i,ed$Point CB DSP- TMS320CB2.TMS320CB1(

<loatin"$Point CB DSP- TMS320CB(

Page 15: Lecture no.1-1

7/23/2019 Lecture no.1-1

http://slidepdf.com/reader/full/lecture-no1-1 15/34

TI TMS320 Development Kit !cont(# *dvanta"es of ;@IW architectures

Increased performance(

>etter compiler tar"ets( Potentiall& scala'le(

Disadvanta"es of ;@IW architectures

Increased memor& use(

i"h po%er consumption( Misleadin" MIPS ratin"s(

Page 16: Lecture no.1-1

7/23/2019 Lecture no.1-1

http://slidepdf.com/reader/full/lecture-no1-1 16/34

TI TMS320 Development Kit !cont(#

CB2, <i,ed$Point

DSP ?eneration

CB1, <i,ed$Point

DSP ?eneration

CB, <loatin"$Point

DSP ?eneration

Cloc= /ate!M#

MIPS7M<@OPS

5B$'it MM*CS

E$'it MM*CS

>road'and

Communications

Ima"in"

580$300 B00$5500 580$5B

5200$2100 MIPS 1E00$EE00 MIPS B00$5000 M<@OPS

300$B00 3100$1100 300$333

300$B00

?eneral

?eneral

1E00$EE00

Special$purpose

InstructionsSpecial$purpose

Instructions

300$333

?eneral

?eneral

Page 17: Lecture no.1-1

7/23/2019 Lecture no.1-1

http://slidepdf.com/reader/full/lecture-no1-1 17/34

TI TMS320 Development Kit !cont(#EMI-

Host Pot

Mc*SP

Mc*SP

 Time

 Time

DiectMemoyAccess'DMA+

/ontolle'2 channels+

Pro"ram Memor&

B1K >&tes

CB27CB

CPA

Data Memor&

B1K >&tes

 TMS345/645786957 DSP *loc: Dia"am

Page 18: Lecture no.1-1

7/23/2019 Lecture no.1-1

http://slidepdf.com/reader/full/lecture-no1-1 18/34

TI TMS320 Development Kit !cont(# TMS320CB2057B05 =e& features-

@aunched at 200MF5B00 MIPS(

52E K /*M on$chip !split B1K pro"ram7B1K data#( 32 32$'it re"isters file(

*ll instructions ma& 'e conditional(

+fficient compilation of *4SI$C code(

Data is '&te$addressa'le !it can 'e E$'it.5B$'it or 32$ 'it#(

Page 19: Lecture no.1-1

7/23/2019 Lecture no.1-1

http://slidepdf.com/reader/full/lecture-no1-1 19/34

TI TMS320 Development Kit !cont(#

Te,t

+dit

*ssem'ler 

Optimier 

Compiler 

*ssem'ler @in=er  De'u""er 

Simulator 

%c

%sa

%asm

%o#; %out

Lin:%cm!

(c6C source file

(sa6linear assem'l& source file

(asm6assem'l& source file

(o'G6o'Gect file

(out6e,ecuta'le CO<< file

(cmd6lin=er command file

Page 20: Lecture no.1-1

7/23/2019 Lecture no.1-1

http://slidepdf.com/reader/full/lecture-no1-1 20/34

TI TMS320 Development Kit !cont(# The tools for three sta"es-

5(*l"orithms development-

Te,tual$'ased tools- C and *ssem'l&(

M*T@*> %ith DSP tool'o,es(

2(S&stem$level desi"n-

M*T@*> and simulin= DSP tool'o,es( /ID+ or ;*> rapid tool( 

Page 21: Lecture no.1-1

7/23/2019 Lecture no.1-1

http://slidepdf.com/reader/full/lecture-no1-1 21/34

TI TMS320 Development Kit !cont:d(# 3(ard%are and em'edded soft%are implementation-

Code Composer Studio !CCS# %ith developer:s =it for TI CB,

+;M(

/ID+ %ith DSP 'oard from third$part& of DSP venders(

;*> %ith TI or third$part& DSP 'oard(

Page 22: Lecture no.1-1

7/23/2019 Lecture no.1-1

http://slidepdf.com/reader/full/lecture-no1-1 22/34

Philips Trimedia Development Kit This is a soft%are and hard%are supported development

environment(

ard%are architecture

Com'ine *7D. D7*. Memor&. *SIC. ;@IW CPA to

 'uild up a multimedia development platform(

Soft%are operation environment

Support different pro"ram lan"ra"e for developer  i"h performance compiler. scheduler. anal&er.

optimier. even a ?AI de'u""er(

Page 23: Lecture no.1-1

7/23/2019 Lecture no.1-1

http://slidepdf.com/reader/full/lecture-no1-1 23/34

Philips Trimedia Development Kit !cont(# TM5300 feature-

Implements popular multimedia standards such as MP+?$5 and

MP+?$2.

Operations from C and C99 source code( <reuenc& up 5BB M(

Memor& E M> SD/*M(

Immediate. <loatin"$Point Compute and Multimedia

Operations(

8 operations each cloc= c&cle(

Page 24: Lecture no.1-1

7/23/2019 Lecture no.1-1

http://slidepdf.com/reader/full/lecture-no1-1 24/34

Philips Trimedia Development Kit !cont(# ard%are architecture-

Page 25: Lecture no.1-1

7/23/2019 Lecture no.1-1

http://slidepdf.com/reader/full/lecture-no1-1 25/34

Philips Trimedia Development Kit !cont(# ard%are architecture-

Page 26: Lecture no.1-1

7/23/2019 Lecture no.1-1

http://slidepdf.com/reader/full/lecture-no1-1 26/34

Philips Trimedia Development Kit !cont(# Soft%are development flo%-

Page 27: Lecture no.1-1

7/23/2019 Lecture no.1-1

http://slidepdf.com/reader/full/lecture-no1-1 27/34

Philips Trimedia Development Kit !cont(#

Soft%are Component Soft%are Tools

Page 28: Lecture no.1-1

7/23/2019 Lecture no.1-1

http://slidepdf.com/reader/full/lecture-no1-1 28/34

Philips Trimedia Development Kit !cont(# *ll of e,ecuta'le tools %as stored under

installHpath7'in)(. in our s&stem as 'elo%

Page 29: Lecture no.1-1

7/23/2019 Lecture no.1-1

http://slidepdf.com/reader/full/lecture-no1-1 29/34

Philips Trimedia Development Kit !cont(# <ree A4I$li=e environment . and ma=e tool is compati'le

%ith A4I(

C&"%in tool

Trimedia ?AI

/unnin" tool

Trimedia ?AI

 de'u""er 

Page 30: Lecture no.1-1

7/23/2019 Lecture no.1-1

http://slidepdf.com/reader/full/lecture-no1-1 30/34

Philips Trimedia Development Kit !cont(#  4O %e can use MS$DOS mode to compile our pro"ram.

%hen &ou put tmcc(e,e or tmCC(e,e in the the same

director&(

Asin" J>ash. C&"%in:s environment. is eas& to compile

and run. even de'u" our pro"ram(

Page 31: Lecture no.1-1

7/23/2019 Lecture no.1-1

http://slidepdf.com/reader/full/lecture-no1-1 31/34

Philips Trimedia Development Kit !cont(# Ma=efile e,ample- L usa"e- ma=e TCS6pathN L OST 6 Win8 +4DI*4 6 el CC 6 !TCS#7'in7tmcc $host !OST# $

!+4DI*4# vivot(out- C+CK vivot(c !CC# !C<@*?S# $o Q vivot(c

!@D<@*?S# C+CK- Qif R ,!TCS# 6 , F then echo UAsa"e- ma=e TCS6pathNUF

falseF fi clean- rm $rf vivot(out vivot(o

Page 32: Lecture no.1-1

7/23/2019 Lecture no.1-1

http://slidepdf.com/reader/full/lecture-no1-1 32/34

Philips Trimedia Development Kit !cont(# Usin" GUI to un DSP<po"am

Page 33: Lecture no.1-1

7/23/2019 Lecture no.1-1

http://slidepdf.com/reader/full/lecture-no1-1 33/34

Philips Trimedia Development Kit !cont(# tmcc $p fdct(c $o fdct(out

tmsim $ns $nomm fdct(out 7V

"enerates dtprof(out V7

tmcc $r fdct(c $o fdct(out tmsim $mm $ns $statfile fdct(stat

fdct(out

tmprof Nfdctrpt $scale 5

$threshold 0(05 $detail $func

fdct(stat fdct(out

Page 34: Lecture no.1-1

7/23/2019 Lecture no.1-1

http://slidepdf.com/reader/full/lecture-no1-1 34/34

Philips Trimedia Development Kit !cont:d(# Performance *nal&sis-