digital signal processors. von neumann architecture computers to be programmed by codes residing in...

36
DIGITAL SIGNAL PROCESSORS

Upload: elwin-hampton

Post on 17-Jan-2016

230 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: DIGITAL SIGNAL PROCESSORS. Von Neumann Architecture Computers to be programmed by codes residing in memory. Single Memory to store data and program

DIGITAL SIGNAL PROCESSORS

Page 2: DIGITAL SIGNAL PROCESSORS. Von Neumann Architecture Computers to be programmed by codes residing in memory. Single Memory to store data and program
Page 3: DIGITAL SIGNAL PROCESSORS. Von Neumann Architecture Computers to be programmed by codes residing in memory. Single Memory to store data and program

Von Neumann Architecture

• Computers to be programmed by codes residing in memory.

• Single Memory to store data and program.• Single Bus to transport data and program b/w

CPU and memory/pheripherals.

Page 4: DIGITAL SIGNAL PROCESSORS. Von Neumann Architecture Computers to be programmed by codes residing in memory. Single Memory to store data and program

Harvard Architecture

• Separate memory for data and program• Separate program bus for transferring opcode

and immediate operands b/w CPU and program memory.

• Separate data memory bus to transfer data b/w data memory and CPU.

Page 5: DIGITAL SIGNAL PROCESSORS. Von Neumann Architecture Computers to be programmed by codes residing in memory. Single Memory to store data and program

Modified Harvard Architecture

• Multiport memories (one PM, 3 DM and 4 AB)• CPU can access multiple data simultaneously • Increased speed• Dedicated h/w for signal processing

applications.

Page 6: DIGITAL SIGNAL PROCESSORS. Von Neumann Architecture Computers to be programmed by codes residing in memory. Single Memory to store data and program

What Constitutes a Good DSP?What Constitutes a Good DSP?

Page 7: DIGITAL SIGNAL PROCESSORS. Von Neumann Architecture Computers to be programmed by codes residing in memory. Single Memory to store data and program

DSP Requires Multiply and Accumulate

Page 8: DIGITAL SIGNAL PROCESSORS. Von Neumann Architecture Computers to be programmed by codes residing in memory. Single Memory to store data and program

Multiple Buses

Page 9: DIGITAL SIGNAL PROCESSORS. Von Neumann Architecture Computers to be programmed by codes residing in memory. Single Memory to store data and program

Internal Memory for Fast Access

Page 10: DIGITAL SIGNAL PROCESSORS. Von Neumann Architecture Computers to be programmed by codes residing in memory. Single Memory to store data and program

• Most of the early processors execute instructions sequentially.

• After the execution of first instruction the next one starts.

• To improve the efficiency, advanced microprocessors and digital signal processors use an approach called pipelining.

Page 11: DIGITAL SIGNAL PROCESSORS. Von Neumann Architecture Computers to be programmed by codes residing in memory. Single Memory to store data and program

Instruction Pipeline for Fast Execution

Instruction is broken into smaller tasks that can be Instruction is broken into smaller tasks that can be executed in parallelexecuted in parallel

Page 12: DIGITAL SIGNAL PROCESSORS. Von Neumann Architecture Computers to be programmed by codes residing in memory. Single Memory to store data and program

Parallel Processing of Instructions

Page 13: DIGITAL SIGNAL PROCESSORS. Von Neumann Architecture Computers to be programmed by codes residing in memory. Single Memory to store data and program

Less Cycles per InstructionLess Power Consumption

Page 14: DIGITAL SIGNAL PROCESSORS. Von Neumann Architecture Computers to be programmed by codes residing in memory. Single Memory to store data and program

DSP Architecture

Page 15: DIGITAL SIGNAL PROCESSORS. Von Neumann Architecture Computers to be programmed by codes residing in memory. Single Memory to store data and program

Internal Memory Organization

• Program, data and I/O spaces.• RAM and ROM(boot loader).• Types of RAM (DARAM , SARAM and two-way

shared RAM).• DARAM AND SARAM configured as DM or

PM/DM.

Page 16: DIGITAL SIGNAL PROCESSORS. Von Neumann Architecture Computers to be programmed by codes residing in memory. Single Memory to store data and program

DARAM

• Composed of several blocks and can be accessed twice per machine cycle.

• Read and write operation can be done in the same cycle.

• Mapped in data space or program space.

Page 17: DIGITAL SIGNAL PROCESSORS. Von Neumann Architecture Computers to be programmed by codes residing in memory. Single Memory to store data and program

SARAM and two-way shared RAM

• Accessed for once per machine cycle for either read or write.

• Shared memory is write-protected and only DMA can write to the SM.

• RAM efficiently used for executing identical programs( 50% memory space is reduced).

Page 18: DIGITAL SIGNAL PROCESSORS. Von Neumann Architecture Computers to be programmed by codes residing in memory. Single Memory to store data and program
Page 19: DIGITAL SIGNAL PROCESSORS. Von Neumann Architecture Computers to be programmed by codes residing in memory. Single Memory to store data and program
Page 20: DIGITAL SIGNAL PROCESSORS. Von Neumann Architecture Computers to be programmed by codes residing in memory. Single Memory to store data and program
Page 21: DIGITAL SIGNAL PROCESSORS. Von Neumann Architecture Computers to be programmed by codes residing in memory. Single Memory to store data and program
Page 22: DIGITAL SIGNAL PROCESSORS. Von Neumann Architecture Computers to be programmed by codes residing in memory. Single Memory to store data and program
Page 23: DIGITAL SIGNAL PROCESSORS. Von Neumann Architecture Computers to be programmed by codes residing in memory. Single Memory to store data and program
Page 24: DIGITAL SIGNAL PROCESSORS. Von Neumann Architecture Computers to be programmed by codes residing in memory. Single Memory to store data and program
Page 25: DIGITAL SIGNAL PROCESSORS. Von Neumann Architecture Computers to be programmed by codes residing in memory. Single Memory to store data and program
Page 26: DIGITAL SIGNAL PROCESSORS. Von Neumann Architecture Computers to be programmed by codes residing in memory. Single Memory to store data and program

Addressing Modes

Page 27: DIGITAL SIGNAL PROCESSORS. Von Neumann Architecture Computers to be programmed by codes residing in memory. Single Memory to store data and program

Addressing Modes • Immediate addressing• Direct addressing• Indirect addressing by register

– Support for circular indirect addressing

• Access to Memory Mapped Registers MMRs• Dedicated register addressing.• Circular addressing

Page 28: DIGITAL SIGNAL PROCESSORS. Von Neumann Architecture Computers to be programmed by codes residing in memory. Single Memory to store data and program

Immediate Addressing Mode #• Instruction contains the value of the

operand. Value is preceded by #.• Example:

– Add the value 4 to the content of accumulator A.

• Useful for initializations.• Long (16 bits) or short values:

– For long values: instruction uses 2 words.

ADD ADD #4,A#4,A

Page 29: DIGITAL SIGNAL PROCESSORS. Von Neumann Architecture Computers to be programmed by codes residing in memory. Single Memory to store data and program

Immediate Addressing Mode #• 16 bit value

– 2 words, 2 cycles– Initialization of ARi for

example

• Short value– 3, 5, 8, 9 bits constant– 1 word, 1 cycle– To initialize short length

registers or bit fields:• DP, ASM …

– Not always available

Example:

STM #1234h,AR2Load AR2 with the value 1234h.

Example:

LD #6, DPLoad DP with the value 6.

Page 30: DIGITAL SIGNAL PROCESSORS. Von Neumann Architecture Computers to be programmed by codes residing in memory. Single Memory to store data and program

Direct Addressing Mode @• Direct addressing = random access from a

specified base address.– The instruction contains an offset relative to the base

address.

• The base address can be the beginning of a data memory page or the stack pointer.– The data memory is virtually divided in 512 pages of

128 words (512x128 = 216).

• Data Page DP relative direct address– CPL bit (ComPiler Mode bit) = 0 in ST1

• Stack Pointer SP relative direct address– CPL bit = 1 in ST1

Page 31: DIGITAL SIGNAL PROCESSORS. Von Neumann Architecture Computers to be programmed by codes residing in memory. Single Memory to store data and program

Data memory pages

Page 0

Data memory Hex

0000

0080

FFFF

0100

Addresses in Dec

0

128

256

65 535

Page 1

Page 2

Page 511

128 words

128 words

128 words

128 words

512 Pages

Page 32: DIGITAL SIGNAL PROCESSORS. Von Neumann Architecture Computers to be programmed by codes residing in memory. Single Memory to store data and program

MMR Memory Mapped Registers Addressing

• MMRs are in page 0 of data memory.• They can be accessed by some specific MMR

instructions allowing simple access to page 0.• In these cases DP, SP and CPL are ignored• It operates like direct addressing except that

upper 9 bits of the address that is accessed are assumed zeros.

Page 33: DIGITAL SIGNAL PROCESSORS. Von Neumann Architecture Computers to be programmed by codes residing in memory. Single Memory to store data and program

Indirect Addressing Mode *ARi• Compatible with pointers in C.• 8 ARi Auxiliary Registers to store the

addresses of the operands. They are used as pointers.

• 2 ARAU = Auxiliary Registers Arithmetic Units to realize operations on the addresses stored in the ARi.

• Contents of AR by ARP can manually altered by SBRK and ADRK.

• Very efficient for DSP operations.

Page 34: DIGITAL SIGNAL PROCESSORS. Von Neumann Architecture Computers to be programmed by codes residing in memory. Single Memory to store data and program

Dedicated Register Addressing

• Similar long immediate addressing mode except the address comes from the special purpose memory mapped registers in the CPU

• Block Move Address Register(BMAR) and the dynamic bit manipulation register(DBMR).

Page 35: DIGITAL SIGNAL PROCESSORS. Von Neumann Architecture Computers to be programmed by codes residing in memory. Single Memory to store data and program

Circular Addressing• Algorithms such as convolution, correlation and finite

impulse response(FIR) filter use circular buffers operating via Ars.

• CBSR1-Circular buffer 1 start register• CBSR2• CBER1-End register 1• CBER2,CBCR-Control Register(Enables/Disables)• To define circular buffer start & end addresses are

loaded and a value b/w start and end register is loaded into AR.

Page 36: DIGITAL SIGNAL PROCESSORS. Von Neumann Architecture Computers to be programmed by codes residing in memory. Single Memory to store data and program

THANK YOU