Sponsored 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 IIT Kharagpur 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.15pm 2. An Introduction to CCS: 5.15 to 6.30 pm CCS Basic Introduction followed by CCS v2 features Instruction Set Simulator Overview
IIT Kharagpur 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 PBC Using GEL Language Simulating PinConnect and PortConnect DSP/BIOS Demo
IIT Kharagpur 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
-----------------
Department of E & ECE Indian Institute of Technology, Kharagpur Email: rkumar@ece.iitkgp.ernet.in Phone: +91 - 3222 83542 (O) +91 - 3222 83543 (R) Fax: +91 - 3222 - 82263 Introduction to DSP Tools Prof. R. V. Raja Kumar Importance of DSP IIT 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. systems and wireless, motor control, picture compression, robotics, control systems and general purposes. Status of DSP Education DSP found its place in Engineering education both at undergraduate and graduate level, world over . But, the lab. practice in DSP has not gained enough momentum.
Present lab. practice in DSP simulation studies using high level languages like C' and simulation packages like Matlab. good for studying the performance of algorithms and schemes No practical implementation aspects like no. system, finite register length effects, optimization based on proc. Architecture...
Prof. R. V. Raja Kumar Dept. of E & ECE IIT Kharagpur A Typical DSP system Analog Analog O/P I/P Prof. R. V. Raja Kumar Dept. of E & ECE IIT Kharagpur 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 hardware Digital signal processors (DSP's) General purpose processors 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 ops performed 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 purpose microprocessors. Prof. R. V. Raja Kumar Dept. of E & ECE IIT Kharagpur Families of Texas Instruments DSPs IIT Kharagpur Prof. R. V. Raja Kumar Dept. of E & ECE DSP (word size) Clock Speed (MIPS) (MHz) On-chip RAM (ROM) (words) Targeted Applications 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) Communication systems 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 Families of Analog Devices DSPs IIT Kharagpur Prof. R. V. Raja Kumar Dept. of E & ECE DSP (word size) Clock Speed (MIPS) (MHz) On-chip RAM (ROM) (Words) Targeted Applications 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) Security Coprocessors for routers and 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 speech interpolation ADSP- 2106X (32 bit) 40-60 (80-120) 1M-4M General (floating-point) ADSP- 2116X (32 bit) 80-100 (480-600) 1M-4M Multichannel proc. (floating-point) Families of Motorola DSPs IIT Kharagpur Prof. R. V. Raja Kumar Dept. of E & ECE DSP (word size) Clock Speed (MIPS) (MHz) On-chip RAM (ROM) (Words) Targeted Applications DSP566XX (16 - bit) 70 (70) 40K x 24-bit (2K x 24-bit) Cellular phone and 2-way radio handset DSP568XX (16 - bit) 70-80 (35) 128Kx16-bit (32Kx16-bit) Digital Wireless, Modems, Motor control MSC8100 StarCore (4) (16 - bit) 300 (1200) 256Kx16-bit IP Telephony systems, Multi channel xDSL DSP56000 (24 - bit) 40-80 (20 - 40) 512 x 24-bit (512 x 24-bit) Audio applications DSP563XX (24 - bit) 80-150 (66-160) 1K-8K x 24-bit (40Kx24-bit) Audio applications Families of Lucent DSPs IIT 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 and Paging DSP162X (16) (80-120) 6K - 32K (4K - 72K) Base Stations DSP1620 (16) 100-120 (90-120) 32K General DSP1628 (16) 52-80 (52-80) 16K (48K) Digital Wireless Communications DSP1629 (16) 52-100 (80-100) 16K (48K) Terminals & Base Stations DSP32C (32) 12.5 20 1.5K General DSP 16210 (Dual 16) 120 (240 MMACS) 60K (8K) Digital Communications DSP16410 (Dual 16) 200 (800 MMACS) Base Stations & Transcoder units 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 IIT Kharagpur 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 IIT Kharagpur DSP Software Development flow C Compiler Assembler Linker Debugging tools on a PC Cross-reference lister Absolute lister Hex conversion utility Library build utility Archiver To PC for Emulation C Source file Assembler Source COFF Object file Run time supp.Library Exec. COFF file Hexadecimal Object file To TMS320CXX target system Library of Object file IIT Kharagpur Prof. R. V. Raja Kumar Dept. of E & ECE C3X Evaluation Module (EVM) C30 host port
D D TBC host port
D D TBC SN74ACT8990 D Control Logic A
D SRAM 16K x 4 AIC TLC32044 Analog buffer / amp P C
I n t e 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 IIT Kharagpur Prof. R. V. Raja Kumar Dept. of E & ECE Status of DSP Education Status of DSP Education C5X 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 IIT Kharagpur Prof. R. V. Raja Kumar Dept. of E & ECE Status of DSP Education Status of DSP Education C5X 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 IIT Kharagpur Prof. R. V. Raja Kumar Dept. of E & ECE DSP Simulator A DSP simulator simulates DSP environment on a computer 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 IIT Kharagpur C Compiler The C compiler converts a given program written in C language 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 IIT Kharagpur Assembly Language Tools The assembly language tools create and use object files. The constituents are,
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. In linked source files. Prof. R. V. Raja Kumar Dept. of E & ECE IIT Kharagpur Integrated Development Environments IIT 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,219X Windows 95/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 PRO Development Environment (Lucent) 162X Windows 95/98/NT & Solaris 2.5 Compiler, Assembler, Linker, Code Profiling, Simulator, Hardware Trace, RTOS & Simulator Code Composer Studio The CCS is an integrated suite of DSP software development tools efficient 'C6000 C compiler, Assembly Optimizer with the Code Composer IDE, Advanced Data Visualization, standard open 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 IIT Kharagpur C54X CCS Debugger Prof. R. V. Raja Kumar Dept. of E & ECE IIT Kharagpur Memory map Data display Graphics Display Dis-Assembly window (Assembly source) C Source file Project files C54X CCS Debugger Prof. R. V. Raja Kumar Dept. of E & ECE IIT Kharagpur 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 IIT Kharagpur Host PC Code Composer Studio (IDE) or DSP Compiler / Assembler / Linker / Simulator / Debugger I/O through data files 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 IIT Kharagpur O/P I/P Signal gen. Head- phones Host PC CRO Code Composer Studio (IDE) or DSP Compiler / Assembler / Linker / Simulator / Debugger DSP EVM mic 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 IIT Kharagpur Thank You!