Upload
sagar-mahajan
View
214
Download
0
Embed Size (px)
Citation preview
7/27/2019 Dsp Tools
1/30
Organized by
DSP Lab, Dept. of E & ECE, IIT, KharagpurSponsored by
Texas Instruments (India), Bangalore
A Training Programme on
TIs DSP Tools
Lectures and Demonstrations by:
Prof. R. V. Raja Kumar, IIT, Kharagpur
Mr. S. V. V. Narayana Rao, TI, Bangalore
Mr. G. Prakash, TI, Bangalore
7/27/2019 Dsp Tools
2/30
IITKharagpur
Prof. R. V. Raja Kumar Dept. of E & ECE
Schedule of the Training Programme
Date:11-1-2002 (Friday)
Time: 4.30 to 6.30pm;
Venue:F-127
1. An Introduction to DSP tools: 4.30 to 5.15pm2. An Introduction to CCS: 5.15 to 6.30 pm
CCS Basic Introduction followed by CCS v2
features
Instruction Set Simulator Overview
7/27/2019 Dsp Tools
3/30
IITKharagpur
Prof. R. V. Raja Kumar Dept. of E & ECE
Training Prog. Schedule (Contd.)
Date:12-1-2002 (Saturday)
Time: 9.00 to 12.30pm;
Venue:F-127
3. CCS Features Demonstration : 9.00 - 10.45 am
Configuring Target Devices
Developing a Simple Program
Project Management
Editing Techniques
Debugging Tools
Data Visualization
Tea: 10.45 to 11.00 am
Profiling Code Execution: 11.00am - 12.30 pm
PBCUsing GEL Language
Simulating PinConnect and PortConnect
DSP/BIOS Demo
7/27/2019 Dsp Tools
4/30
IITKharagpur
Prof. R. V. Raja Kumar Dept. of E & ECE
Training Prog. Schedule (Contd.)
Date:12-1-2002 (Saterday)
Time: 1.30 to 4.45pm;Venue:F-127
4. TMS320C5000: The Personal DSP : 1:30 - 2:30 pm
(World's Most Power-Efficient DSPs for Wireless
Applications, C55x Architecture)
5. Demonstration Using DSK: 2.30 - 3.30pm
Tea: 3.30 to 3.45pm
Demonstration Using DSK(contd.): 3.45 - 4.45pm
-----------------
7/27/2019 Dsp Tools
5/30
Department of E & ECEIndian Institute of Technology, Kharagpur
Email: [email protected]
Phone: +91 - 3222 83542 (O)
+91 - 3222 83543 (R)
Fax: +91 - 3222 - 82263
Introduction to DSP Tools
Prof. R. V. Raja Kumar
7/27/2019 Dsp Tools
6/30
Importance of DSPIIT
Kharagpur
Prof. R. V. Raja Kumar Dept. of E & ECE
Advantages of dig. Implementations:
Flexibility of the hardware; high accuracy; large dynamic range,miniaturization; low power consumption.
Developments in IC technology
No. of high speed and low power DSPs at low prices .
Result
Increased use of DSPs for digital implementations
DSPs are targeted for speech processing, comm. systemsand wireless, motor control, picture compression, robotics,
control systems and general purposes.
7/27/2019 Dsp Tools
7/30
Status of DSP Education
DSP found its place in Engineering education both atundergraduate and graduate level, world over .
But, the lab. practice in DSP has not gained enough momentum.
Present lab. practice in DSP simulation studies using highlevel languages like C'and simulation
packages like Matlab.
good for studying the performance of
algorithms and schemes
No practical implementation aspects like no. system, finiteregister length effects, optimization based on proc. Architecture...
Prof. R. V. Raja Kumar Dept. of E & ECE
IITKharagpur
7/27/2019 Dsp Tools
8/30
A Typical DSP system
Analog Analog O/P
I/P
Prof. R. V. Raja Kumar Dept. of E & ECE
IITKharagpur
Anti-
Aliasing
filter
Sample
&
Hold
ADC DSP DAC LPF
Sampling
frequency
x (t) x (nTs) x (n) y (n) y (t) y (t)
A DSP system can be
Special purpose custom hardwareDigital signal processors (DSP's)
General purpose processors
7/27/2019 Dsp Tools
9/30
Digital Signal Processors (DSPs)
A hardware MAC MAC Ops in single cycle of the processor.
Simultaneous accessing of instructions and data
Hardware to facilitate low overhead looping or it. computation
On chip programmable and data RAM which are often accessi-
ble from two different data buses
Hardware for multiple opsperformed in parallel in single cycle.
Fast interrupt and sequential and parallel input-output support
Application specific architecture
Some of these features are in common with general purposemicroprocessors.
Prof. R. V. Raja Kumar Dept. of E & ECE
IITKharagpur
7/27/2019 Dsp Tools
10/30
Families of Texas Instruments DSPsIIT
Kharagpur
Prof. R. V. Raja Kumar Dept. of E & ECE
DSP(word size)
Clock Speed(MIPS)
(MHz)
On-chipRAM(ROM)
(words)
TargetedApplications
TMS320C1X(16 bit)
5(8.77)
144 - 256(1.5K - 8K)
General
TMS320C2X(16 bit)
8.33 - 12.5(10)
544 - 1568(256 - 8K)
Control system
TMS320C3X(32 bit)
33 80(16.667 - 40)
2K(1K)
Speech proc.,equalization(floating-point)
TMS320C4X(32 bit)
50 60(25 30)
2K(2K)
Speech proc.,equalization(floating-point)
TMS320C5X(16 bit)
20 - 50(28.57 50)
1K-9K(2K-32K)
General
TMS320C54X(16 bit)
40 - 100(40 - 200)
128K(28K)
Communicationsystems
TMS320C62X(16 bit)
150 - 167(1200 1333)
64K(4K)
Wireless, video
TMS320C67X(32 bit)
100 - 150(1200 1333)
64K(4K)
Speech proc.,wireless(floating-point)
TMS320C8X(32 bit)
50(100)
44K - 50K Video
7/27/2019 Dsp Tools
11/30
Families of Analog Devices DSPsIIT
Kharagpur
Prof. R. V. Raja Kumar Dept. of E & ECE
DSP(word size)
Clock
Speed(MIPS)(MHz)
On-chip RAM
(ROM)(Words)
TargetedApplications
ADSP - 210X (16 bit)
10-25(25)
1K(2K)
General
ADSP- 211X (16 bit)
10.2-25(25)
1K(2K)
General
ADSP- 214X
(16 bit)
25
(25)
4K
(32K)
SecurityCoprocessors
for routersand Hubs
ADSP- 216X (16 bit)
25(25)
1/2K(4K-8K)
General
ADSP- 217X (16 bit)
20-33(33.33)
2K(8K)
General
ADSP- 218X (16 bit)
33-75(33)
16K(32K)
Digital speechinterpolation
ADSP- 2106X (32 bit)
40-60(80-120)
1M-4M General(floating-point)
ADSP- 2116X (32 bit)
80-100(480-600)
1M-4MMultichannelproc.(floating-point)
7/27/2019 Dsp Tools
12/30
Families of Motorola DSPsIIT
Kharagpur
Prof. R. V. Raja Kumar Dept. of E & ECE
DSP(wordsize)
Clock
Speed(MIPS)(MHz)
On-chip RAM(ROM)(Words)
TargetedApplications
DSP566XX(16 - bit)
70(70)
40K x 24-bit(2K x 24-bit)
Cellular phoneand 2-way radiohandset
DSP568XX(16 - bit) 70-80(35) 128Kx16-bit(32Kx16-bit)
Digital Wireless,
Modems, Motorcontrol
MSC8100StarCore(4)(16 - bit)
300(1200)
256Kx16-bitIP Telephonysystems, Multichannel xDSL
DSP56000
(24 - bit)
40-80
(20 - 40)
512 x 24-bit
(512 x 24-bit)
Audio
applicationsDSP563XX(24 - bit)
80-150(66-160)
1K-8K x 24-bit(40Kx24-bit)
Audioapplications
7/27/2019 Dsp Tools
13/30
Families of Lucent DSPsIIT
Kharagpur
Prof. R. V. Raja Kumar Dept. of E & ECE
DSP
(word size)
Clock Speed
(MIPS)(MHz)
On-chip RAM
(ROM) (Words)
Targeted
Applications
DSP161X(16) (20-50)
2K - 4K(12K - 24K)
Wireless andPaging
DSP162X(16) (80-120)
6K - 32K(4K - 72K)
Base Stations
DSP1620
(16)
100-120
(90-120)
32KGeneral
DSP1628(16)
52-80(52-80)
16K(48K)
Digital WirelessCommunications
DSP1629(16)
52-100(80-100)
16K(48K)
Terminals &Base Stations
DSP32C(32)
12.5 20 1.5KGeneral
DSP 16210(Dual 16)
120(240 MMACS)
60K(8K)
DigitalCommunications
DSP16410(Dual 16)
200(800 MMACS)
Base Stations &Transcoder units
7/27/2019 Dsp Tools
14/30
DSP Processor Options for Lab.
Fixed point processors:
TMS320c2X, TMS320c5X and TMS320c62X
(Modulators, demodulators, carrier and clock recovery etc.,)
Floating point processors: TMS320c3X and TMS320c67X
(Speech processing, control systems, equalization etc.,)
one of C3X or C67X floating point DSPs and
one of C5X or C62X may be the min. requirement for lab. practice.
Prof. R. V. Raja Kumar Dept. of E & ECE
IITKharagpur
7/27/2019 Dsp Tools
15/30
DSP Lab Tools (TI)
Hardware tools:
DSP (DSKs), evaluation modules (EVMs) and other DSP boards
For real-time DSP experiments, a DSK/EVM/Emu. is
suitable along with a host system, which can be a typical PC.
Software tools:
Assembly language tools, DSP simulator, C compiler
and C source debugger.
Code Composer Studio (CCS) IDE:Simulates, C compiles and works with a DSK
Prof. R. V. Raja Kumar Dept. of E & ECE
IITKharagpur
7/27/2019 Dsp Tools
16/30
DSP Software Development flow
C Compiler
Assembler
Linker
Debugging
tools on a PC
Cross-reference
lister
Absolute
lister
Hex conversion
utility
Library build
utilityArchiver
To PC for
Emulation
C Source
file
Assembler
Source
COFF
Object fileRun time
supp.Library
Exec.
COFF file
Hexadecimal
Object file
To TMS320CXX
target system
Library of
Object file
IITKharagpur
Prof. R. V. Raja Kumar Dept. of E & ECE
7/27/2019 Dsp Tools
17/30
C3X Evaluation Module (EVM)
C30 host
port
D D
TBC host
port
D D
TBC
SN74ACT8990D
Control Logic
A
D
SRAM
16K x 4
AIC
TLC32044
Analog buffer
/ amp
P
C
I
n
te
r
f
a
c
e
b
u
s
TMS320C30
Expansion bus Primary bus
External flags Serial port 0
INT0 - INT2
Emulation Control Serial port 1
In Out
10-pin header
16
32
16
16
8
IITKharagpur
Prof. R. V. Raja Kumar Dept. of E & ECE
7/27/2019 Dsp Tools
18/30
Status of DSP EducationStatus of DSP EducationC5X Evaluation Module (EVM)
I/O Expansion
Connector
64K SRAM
Program / Data
Host / Target
Message Interface
Analog Interface
TLC32046
Emulation
SN74ACT8990 (TBC)
PC / AT Bus
Interface
TMS320C5X
Control Serial Port
D0-D15
A0-A15 TDM Port
JTAG
Emulation Port
TDM port
10-pin header
RCA Jack
Analog Out
RCA Jack
Analog In
IITKharagpur
Prof. R. V. Raja Kumar Dept. of E & ECE
7/27/2019 Dsp Tools
19/30
Status of DSP EducationStatus of DSP EducationC5X DSP Starter Kit (DSK)
Expansion
Connector
32K X 8 PROM
Bootcode
Analog
Interface
TLC32040
XDS510 Port
14-Pin Header
TMS320C5X
Control Serial Port
D0-D15
A0-A15 TDM Port
JTAG
Emulation Port
RCA Jack
Analog Out
RCA Jack
Analog In
IITKharagpur
Prof. R. V. Raja Kumar Dept. of E & ECE
7/27/2019 Dsp Tools
20/30
DSP Simulator
A DSP simulator simulates DSP environment on acomputer like a PC without the actual DSP chip or hardware.
It can accept DSP assembly language programs. The assembly
language programs developed using the assembly language tools
can be executed using a simulator, off-line.
DSP based systems can be developed and tested using a
simulator:
Low cost
Off-line testing
Prof. R. V. Raja Kumar Dept. of E & ECE
IITKharagpur
7/27/2019 Dsp Tools
21/30
C Compiler
The C compiler converts a given program written in Clanguage and produces the equivalent assembly language
code.
No manual assembly language coding
The so converted assembly code can be assembled,
linked and used for implementing a system.
Although, code generation can be done quickly, the
code so generated is less efficient.
Prof. R. V. Raja Kumar Dept. of E & ECE
IITKharagpur
7/27/2019 Dsp Tools
22/30
Assembly Language Tools
The assembly language tools create and use object files. Theconstituents are,
Assembler:assembly lang. source files m/c lang. obj. files(instructions, assembler and macro directives).
Linker:Combines obj. files into single exe. Module.
Archiver:Collects a group of files into a single archive file.
Absolute lister:listing of absolute addresses of obj. file
Cross-ref. Lister:shows symbols, their definitions and ref. Inlinked source files.
Prof. R. V. Raja Kumar Dept. of E & ECE
IITKharagpur
7/27/2019 Dsp Tools
23/30
Integrated Development EnvironmentsIIT
Kharagpur
Prof. R. V. Raja Kumar Dept. of E & ECE
IDE Processor Host
specification
Constituent tools
Code Composer
Studio (Texas
Instruments)
C24X,C54X,
C62X, C67X
Windows
95/98/NT
Editor, builder, Debugger, C
Compiler, Assembly
Optimizer, visual Linker,
TAP 5000, IDE Simulator,
DSP/BIOS and RTDX, and
visualization.
Visual DSP(Analog
Devices)
218X,219XWindows95/98/2000/ NT,
Sun Solaris
Editor, Builder, Debugger ,
C++ compiler, Linker,Optimizer, Simulator,
enhanced user interface,
and advanced plotting tools,
Code Warrior
(Motorola)568XX
Windows
95/98/NT
C Compiler, Assembler,
Linker, Debugger, Simulator,
Project Management System
LuxWORKS
STAR PRODevelopment
Environment
(Lucent)
162XWindows95/98/NT &
Solaris 2.5
Compiler, Assembler,
Linker, Code Profiling,
Simulator, Hardware Trace,
RTOS & Simulator
7/27/2019 Dsp Tools
24/30
Code Composer Studio
The CCS is an integrated suite of DSP software development tools
efficient 'C6000 C compiler, Assembly Optimizer with theCode Composer IDE, Advanced Data Visualization, standardopen APIs, DSP/BIOS and Real-Time Data Exchange(RTDX)
Optimizing C compiler fully exploits the architecture's instruction-level
parallelism and orthogonal instruction set
Assembly optimization supports automatic scheduling, optimizing and
separation of parallel tasks from linear assembly code
Debugger Conditional or hardware breakpoints are based on full C-
expressions, local variables or CPU register symbols.
Real-Time Analysis Using RTDX technology, DSP/BIOS provides a real-
time window into the target system
Prof. R. V. Raja Kumar Dept. of E & ECE
IITKharagpur
7/27/2019 Dsp Tools
25/30
C54X CCS Debugger
Prof. R. V. Raja Kumar Dept. of E & ECE
IITKharagpur Memory map
Data display Graphics Display Dis-Assembly window
(Assembly source)
C Source fileProject files
7/27/2019 Dsp Tools
26/30
C54X CCS Debugger
Prof. R. V. Raja Kumar Dept. of E & ECE
IITKharagpur
7/27/2019 Dsp Tools
27/30
A Setup for Non-real-time Experiments
Assembly language code and implementation flavor is present, but
real-time experiments cannot be carried out using this setup.
Prof. R. V. Raja Kumar Dept. of E & ECE
IITKharagpur
Host PC
Code Composer Studio (IDE)
orDSP Compiler / Assembler /
Linker / Simulator / Debugger
I/O through data files
7/27/2019 Dsp Tools
28/30
A Setup for Real-time Experiments
Assembly language code and implementation flavor is present. Real-
time experiments can be carried out using this setup.
Prof. R. V. Raja Kumar Dept. of E & ECE
IITKharagpur
O/PI/P
Signalgen.
Head-phones
Host PC
CRO
Code Composer Studio (IDE)
or
DSP Compiler / Assembler /Linker / Simulator / Debugger
DSP EVM
mic
7/27/2019 Dsp Tools
29/30
Experiments on Familiarization with Tools
Familiarization with floating point and fixed-point processor tools:
DSP Simulator, C compiler, Assembly language tools and C
source debugger
and / or
Code generation studio (CCS)
DSK and or EVM along with any one or both of the above.
Experiments:
I/O signal handling through files, interrupt based processing,
initialization of the DSK/EVM and I/O signal handling
processor specific experiments involving registers etc.
Prof. R. V. Raja Kumar Dept. of E & ECE
IITKharagpur
7/27/2019 Dsp Tools
30/30
Thank You!