of 14
8/14/2019 Cs--dsp c Extension to c
1/14
Te
chn
icalS
eminar
Presented by : Bijay Kumar Tripathy CS200117244
THE DSP-C EXTENSION TO C
Technical Seminar Report On
THE DSP-C EXTENSION TO C
under the guidance of
Mr. R.K. Shial
submitted by
Bijay Kumar Tripathy CS200117244
8/14/2019 Cs--dsp c Extension to c
2/14
Te
chn
icalS
eminar
Presented by : Bijay Kumar Tripathy CS200117244
THE DSP-C EXTENSION TO C
Introduction
DSP-C offers DSP developers the opportunity to write
their application in a portable manner. DSP-C is a
language extension to C that provides the programmer
with direct access to performance enhancing features in
DSP processors.
8/14/2019 Cs--dsp c Extension to c
3/14
Te
chn
icalS
em
inar
Presented by : Bijay Kumar Tripathy CS200117244
THE DSP-C EXTENSION TO C
The Glory of DSP-C Emulation
DSP-C emulation allows you to develop, test and debug the
DSP application algorithms on your PC or workstation without
having access to the actual processor.
DSP-C emulation simplifies the design flow significantly,reducing both the headaches associated with maintaining two
sets of code.
It also increases market opportunity by reducing developmenttime.
8/14/2019 Cs--dsp c Extension to c
4/14
Te
chn
icalS
em
inar
Presented by : Bijay Kumar Tripathy CS200117244
THE DSP-C EXTENSION TO C
Typical DSP Architecture
8/14/2019 Cs--dsp c Extension to c
5/14
Te
chn
icalS
em
inar
Presented by : Bijay Kumar Tripathy CS200117244
THE DSP-C EXTENSION TO C
DSP processors have a highly specialized architecture toachieve the performance requirements for signal processingapplications within the limits of cost and power consumptionset for consumer applications.
Unlike a conventional Load-Store (RISC) architecture, DSPprocessors have a data path with memory access units.
A further specialization of the data path is the coupling of
multiplication and addition to form a single cycle multiply-Accumulate MAC unit
8/14/2019 Cs--dsp c Extension to c
6/14
Te
chn
icalS
em
inar
Presented by : Bijay Kumar Tripathy CS200117244
THE DSP-C EXTENSION TO C
DSP-C FEATURES
Arithmetic Features
Multiple Memories
Circular Buffers
Portability Implementation
8/14/2019 Cs--dsp c Extension to c
7/14
Te
chn
icalS
em
inar
Presented by : Bijay Kumar Tripathy CS200117244
THE DSP-C EXTENSION TO C
ArithmeticFeatures
The fixed Type :-The fixed type offers fixed point
arithmetic in the range of [-1.0, +1.0> (-1.0 included but
not +1.0).
The accum Type :-The accum is also a fixed point type
and can also be qualified with short and long.
The sat Qualifier:- It makes that all operations withoperands of sat qualified type are saturated.
8/14/2019 Cs--dsp c Extension to c
8/14
Te
chn
icalS
em
inar
Presented by : Bijay Kumar Tripathy CS200117244
THE DSP-C EXTENSION TO C
The unsigned Qualifier :-The unsigned qualifier can
also be applied to the fixed point types.
Arithmetic Operations :-The arithmetic operations forfixed and accum include all those defined for the int type,
but exclude , ~, &, | and ^.
8/14/2019 Cs--dsp c Extension to c
9/14
Te
chn
icalS
em
inar
Presented by : Bijay Kumar Tripathy CS200117244
THE DSP-C EXTENSION TO C
Portability
By design, a DSP-C implementation is adapted to the
processor for which it is implemented.
The portability of DSP-C programs is not alwaysguaranteed.
As not all processors are equal, not all DSP-C
implementations can be equal.
8/14/2019 Cs--dsp c Extension to c
10/14
Te
chn
icalS
em
inar
Presented by : Bijay Kumar Tripathy CS200117244
THE DSP-C EXTENSION TO C
Multiple Memories
Multiple memory access is implemented as type
qualifiers.
There are no predefined keywords for this, as the actual
memory segmentation is left to the implementation.
As an example, assume that X is a memory qualifier.
The definition:
__X int a[25] ;
Means that a is an array of 25 integers which is locatedin the X memory.
8/14/2019 Cs--dsp c Extension to c
11/14
Te
chn
icalS
em
inar
Presented by : Bijay Kumar Tripathy CS200117244
THE DSP-C EXTENSION TO C
Implementation
DSP-C should consider providing a specification of how
the language features are best used to achieve the
highest performance.
The implementation might also consider that some parts
of DSP-C cannot be implemented at all without
significant performance overheads.
8/14/2019 Cs--dsp c Extension to c
12/14
Te
chn
icalS
em
inar
Presented by : Bijay Kumar Tripathy CS200117244
THE DSP-C EXTENSION TO C
THE FUTURE OF DSP-C
Embedded C :-
Embedded C differs from DSP-C on
details, but it fully subscribes to its design rationale. It
bridges the gap between the signal processing
application, plain C, and signal processing hardware,
instead of introducing abstract notions that have no
counterpart in the processor. Embedded C is important
because it guarantees portability of important common
performance enhancing features of DSP processors
8/14/2019 Cs--dsp c Extension to c
13/14
Te
chn
icalS
em
inar
Presented by : Bijay Kumar Tripathy CS200117244
THE DSP-C EXTENSION TO C
CONCLUSION
DSP-C is a relatively small extension to the C language,
but its impact on the programmability of DSP processors
is enormous. Specialized high performance features are
the reasons why DSP processors exist. The DSP-C
approach will become the standard solution for high levellanguage programming of the many billions of DSP
processors out in the field.
8/14/2019 Cs--dsp c Extension to c
14/14
Techn
icalS
em
inar
Presented by : Bijay Kumar Tripathy CS200117244
THE DSP-C EXTENSION TO C
THANK YOU!!!