Presentation is loading. Please wait.

Presentation is loading. Please wait.

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

Similar presentations


Presentation on theme: "DIGITAL SIGNAL PROCESSORS. Von Neumann Architecture Computers to be programmed by codes residing in memory. Single Memory to store data and program."— Presentation transcript:

1 DIGITAL SIGNAL PROCESSORS

2

3 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.

4 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.

5 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.

6 What Constitutes a Good DSP?

7 DSP Requires Multiply and Accumulate

8 Multiple Buses

9 Internal Memory for Fast Access

10 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.

11 Instruction Pipeline for Fast Execution Instruction is broken into smaller tasks that can be executed in parallel

12 Parallel Processing of Instructions

13 Less Cycles per Instruction Less Power Consumption

14 DSP Architecture

15 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.

16 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.

17 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).

18

19

20

21

22

23

24

25

26 Addressing Modes

27 Immediate addressing Direct addressing Indirect addressing by register – Support for circular indirect addressing Access to Memory Mapped Registers MMRs Dedicated register addressing. Circular addressing

28 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 #4,A

29 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,AR2 Load AR2 with the value 1234h. Example: LD#6, DP Load DP with the value 6.

30 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 = 2 16 ). 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

31 Data memory pages

32 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.

33 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.

34 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).

35 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.

36 THANK YOU


Download ppt "DIGITAL SIGNAL PROCESSORS. Von Neumann Architecture Computers to be programmed by codes residing in memory. Single Memory to store data and program."

Similar presentations


Ads by Google