西工大DSP定點小數(shù)乘法_第1頁
西工大DSP定點小數(shù)乘法_第2頁
西工大DSP定點小數(shù)乘法_第3頁
西工大DSP定點小數(shù)乘法_第4頁
西工大DSP定點小數(shù)乘法_第5頁
已閱讀5頁,還剩5頁未讀, 繼續(xù)免費閱讀

下載本文檔

版權說明:本文檔由用戶提供并上傳,收益歸屬內容提供方,若內容存在侵權,請進行舉報或認領

文檔簡介

1、.DSP實驗報告定點小數(shù)乘法實驗目的1、 自行安裝CCS3.3版本,配置和運行CCS;2、 熟悉CCS開發(fā)環(huán)境,訪問讀寫DSP寄存器AC0-AC3,AR0-AR7,T0-T3;3、 結合c5510的存儲器空間分配,訪問DSP的內部RAM;4、 編寫一個簡單的定點DSP程序,計算一個式子。實驗結果CCS安裝運行后如下:初始界面選擇C5510simulator建立新工程;建立新匯編語言源程序文件;建立CMD文件;訪問讀寫寄存器AC0-AC3,AR0-AR7,PC,T0-T3:計算一個簡單乘加算式ASM源程序如下:.text.global startstart: MOV #0006h,AC0H;Q6

2、 MOV #0026h,AC1H;Q5 MPY AC1,AC0 MOV #0023h,AC1H;Q0 MOV #0014h,AC2H;Q0 MPY AC2,AC1 MOV #03C0h,AC2H;Q6 MOV #0033h,AC3H;Q5 MPY AC3,AC2 SFTSC AC1,#11,AC3 ADD AC0,AC3 ADD AC2,AC3運行后寄存器的結果如下:計算得結果應為724.12,但由于修改小數(shù)點的位置使計算結果有些偏差。CMD文件如下:-e start-stack 500-sysstack 500MEMORY MMR: o = 0x000000 l = 0x0000c0 /*

3、192B Memory Mapped Registers */ DARAM0: o = 0x0000C0 l = 0x001F40 /* 8kB Dual Access RAM 0 */ DARAM1: o = 0x002000 l = 0x002000 /* 8kB Dual Access RAM 1 */ DARAM2: o = 0x004000 l = 0x002000 /* 8kB Dual Access RAM 2 */ DARAM3: o = 0x006000 l = 0x002000 /* 8kB Dual Access RAM 3 */ DARAM4: o = 0x008000

4、 l = 0x002000 /* 8kB Dual Access RAM 4 */ DARAM5: o = 0x00A000 l = 0x002000 /* 8kB Dual Access RAM 5 */ DARAM6: o = 0x00C000 l = 0x002000 /* 8kB Dual Access RAM 6 */ DARAM7: o = 0x00E000 l = 0x002000 /* 8kB Dual Access RAM 7 */ SARAM0: o = 0x010000 l = 0x002000 /* 8kB Single Access RAM 0 */ SARAM1:

5、o = 0x012000 l = 0x002000 /* 8kB Single Access RAM 1 */ SARAM2: o = 0x014000 l = 0x002000 /* 8kB Single Access RAM 2 */ SARAM3: o = 0x016000 l = 0x002000 /* 8kB Single Access RAM 3 */ SARAM4: o = 0x018000 l = 0x002000 /* 8kB Single Access RAM 4 */ SARAM5: o = 0x01A000 l = 0x002000 /* 8kB Single Acce

6、ss RAM 5 */ SARAM6: o = 0x01C000 l = 0x002000 /* 8kB Single Access RAM 6 */ SARAM7: o = 0x01E000 l = 0x002000 /* 8kB Single Access RAM 7 */ SARAM8: o = 0x020000 l = 0x002000 /* 8kB Single Access RAM 8 */ SARAM9: o = 0x022000 l = 0x002000 /* 8kB Single Access RAM 9 */ SARAM10: o = 0x024000 l = 0x0020

7、00 /* 8kB Single Access RAM 10 */ SARAM11: o = 0x026000 l = 0x002000 /* 8kB Single Access RAM 11 */ SARAM12: o = 0x028000 l = 0x002000 /* 8kB Single Access RAM 12 */ SARAM13: o = 0x02A000 l = 0x002000 /* 8kB Single Access RAM 13 */ SARAM14: o = 0x02C000 l = 0x002000 /* 8kB Single Access RAM 14 */ SA

8、RAM15: o = 0x02E000 l = 0x002000 /* 8kB Single Access RAM 15 */ SARAM16: o = 0x030000 l = 0x002000 /* 8kB Single Access RAM 16 */ SARAM17: o = 0x032000 l = 0x002000 /* 8kB Single Access RAM 17 */ SARAM18: o = 0x034000 l = 0x002000 /* 8kB Single Access RAM 18 */ SARAM19: o = 0x036000 l = 0x002000 /*

9、8kB Single Access RAM 19 */ SARAM20: o = 0x038000 l = 0x002000 /* 8kB Single Access RAM 20 */ SARAM21: o = 0x03A000 l = 0x002000 /* 8kB Single Access RAM 21 */ SARAM22: o = 0x03C000 l = 0x002000 /* 8kB Single Access RAM 22 */ SARAM23: o = 0x03E000 l = 0x002000 /* 8kB Single Access RAM 23 */ CE0: o =

10、 0x040000 l = 0x3C0000 /* 4MB CE0 external memory space */ CE1: o = 0x400000 l = 0x400000 /* 4MB CE1 external memory space */ CE2: o = 0x800000 l = 0x400000 /* 4MB CE2 external memory space */ CE3: o = 0xC00000 l = 0x3F0000 /* 4MB CE3 external memory space */ ROM: o = 0xFF0000 l = 0x00FF00 /* 64kB R

11、OM (MPNMC=0) or CE3 (MPNMC=1) */ VECS: o = 0xFFFF00 l = 0x000100 /* reset vector */SECTIONS vectors (NOLOAD) VECS /* If MPNMC = 1, remove the NOLOAD directive */ .cinit DARAM0 .text DARAM1 .stack DARAM0 .sysstack DARAM0 .sysmem DARAM4 .data DARAM4 .cio DARAM0 .bss DARAM5 .const DARAM0MAP文件:* TMS320C

12、55x Linker PC v4.2.3 * Linked Mon Apr 8 19:00:23 2016OUTPUT : ENTRY POINT SYMBOL: start address: 00002000MEMORY CONFIGURATION name origin length used unused attr fill (bytes) (bytes) (bytes) (bytes)- - - - - - - MMR 00000000 000000c0 00000000 000000c0 RWIX DARAM0 000000c0 00001f40 00000000 00001f40

13、RWIX DARAM1 00002000 00002000 00000021 00001fdf RWIX DARAM2 00004000 00002000 00000000 00002000 RWIX DARAM3 00006000 00002000 00000000 00002000 RWIX DARAM4 00008000 00002000 00000000 00002000 RWIX DARAM5 0000a000 00002000 00000000 00002000 RWIX DARAM6 0000c000 00002000 00000000 00002000 RWIX DARAM7

14、0000e000 00002000 00000000 00002000 RWIX SARAM0 00010000 00002000 00000000 00002000 RWIX SARAM1 00012000 00002000 00000000 00002000 RWIX SARAM2 00014000 00002000 00000000 00002000 RWIX SARAM3 00016000 00002000 00000000 00002000 RWIX SARAM4 00018000 00002000 00000000 00002000 RWIX SARAM5 0001a000 000

15、02000 00000000 00002000 RWIX SARAM6 0001c000 00002000 00000000 00002000 RWIX SARAM7 0001e000 00002000 00000000 00002000 RWIX SARAM8 00020000 00002000 00000000 00002000 RWIX SARAM9 00022000 00002000 00000000 00002000 RWIX SARAM10 00024000 00002000 00000000 00002000 RWIX SARAM11 00026000 00002000 0000

16、0000 00002000 RWIX SARAM12 00028000 00002000 00000000 00002000 RWIX SARAM13 0002a000 00002000 00000000 00002000 RWIX SARAM14 0002c000 00002000 00000000 00002000 RWIX SARAM15 0002e000 00002000 00000000 00002000 RWIX SARAM16 00030000 00002000 00000000 00002000 RWIX SARAM17 00032000 00002000 00000000 0

17、0002000 RWIX SARAM18 00034000 00002000 00000000 00002000 RWIX SARAM19 00036000 00002000 00000000 00002000 RWIX SARAM20 00038000 00002000 00000000 00002000 RWIX SARAM21 0003a000 00002000 00000000 00002000 RWIX SARAM22 0003c000 00002000 00000000 00002000 RWIX SARAM23 0003e000 00002000 00000000 0000200

18、0 RWIX CE0 00040000 003c0000 00000000 003c0000 RWIX CE1 00400000 00400000 00000000 00400000 RWIX CE2 00800000 00400000 00000000 00400000 RWIX CE3 00c00000 003f0000 00000000 003f0000 RWIX ROM 00ff0000 0000ff00 00000000 0000ff00 RWIX VECS 00ffff00 00000100 00000000 00000100 RWIXSECTION ALLOCATION MAP(

19、Addresses surrounded by s are displayed for convenience only!)output attributes/section page orgn(bytes) orgn(words) len(bytes) len(words) input sections- - - - - - -.cinit 0 000000c0 00000060 * 00000000 UNINITIALIZED.text 0 00002000 00001000 00000021 * 00002000 00001000 00000020 * test2.obj (.text)

20、 00002020 00001010 00000001 * -HOLE- fill = 20.data 0 00008000 00004000 * 00000000 UNINITIALIZED.bss 0 0000a000 00005000 * 00000000 UNINITIALIZEDGLOBAL SYMBOLS: SORTED ALPHABETICALLY BY Name abs. value/byte addr word addr name- - -00000002 $TI_capability$C5500$CallingConvention00000001 $TI_capability$C5500$MemoryModel00000001 $TI_capability_requires_rev2 00005000 .bss 00004000 .data00002000 .textffffffff _binit_ 00005000 _bss_ffffffff _c_args_ffffffff _cinit_ 00004000 _data_ 0000400

溫馨提示

  • 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內容里面會有圖紙預覽,若沒有圖紙預覽就沒有圖紙。
  • 4. 未經(jīng)權益所有人同意不得將文件中的內容挪作商業(yè)或盈利用途。
  • 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內容的表現(xiàn)方式做保護處理,對用戶上傳分享的文檔內容本身不做任何修改或編輯,并不能對任何下載內容負責。
  • 6. 下載文件中如有侵權或不適當內容,請與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。

評論

0/150

提交評論