西工大DSP定点小数乘法

整理文档很辛苦,赏杯茶钱您下走!

免费阅读已结束,点击下载阅读编辑剩下 ...

阅读已结束,您可以下载文档离线阅读编辑

资源描述

Dsp作业1DSP实验报告———定点小数乘法实验目的1、自行安装CCS3.3版本,配置和运行CCS;2、熟悉CCS开发环境,访问读写DSP寄存器AC0-AC3,AR0-AR7,T0-T3;3、结合c5510的存储器空间分配,访问DSP的内部RAM;4、编写一个简单的定点DSP程序,计算一个式子。实验结果CCS安装运行后如下:初始界面选择C5510simulatorDsp作业1建立新工程;建立新汇编语言源程序文件;建立CMD文件;Dsp作业1访问读写寄存器AC0-AC3,AR0-AR7,PC,T0-T3:计算一个简单乘加算式ASM源程序如下:.text.globalstartDsp作业1start:MOV#0006h,AC0H;Q6MOV#0026h,AC1H;Q5MPYAC1,AC0MOV#0023h,AC1H;Q0MOV#0014h,AC2H;Q0MPYAC2,AC1MOV#03C0h,AC2H;Q6MOV#0033h,AC3H;Q5MPYAC3,AC2SFTSCAC1,#11,AC3ADDAC0,AC3ADDAC2,AC3运行后寄存器的结果如下:计算得结果应为724.12,但由于修改小数点的位置使计算结果有些偏差。CMD文件如下:-estart-stack500-sysstack500MEMORY{Dsp作业1MMR:o=0x000000l=0x0000c0/*192BMemoryMappedRegisters*/DARAM0:o=0x0000C0l=0x001F40/*8kBDualAccessRAM0*/DARAM1:o=0x002000l=0x002000/*8kBDualAccessRAM1*/DARAM2:o=0x004000l=0x002000/*8kBDualAccessRAM2*/DARAM3:o=0x006000l=0x002000/*8kBDualAccessRAM3*/DARAM4:o=0x008000l=0x002000/*8kBDualAccessRAM4*/DARAM5:o=0x00A000l=0x002000/*8kBDualAccessRAM5*/DARAM6:o=0x00C000l=0x002000/*8kBDualAccessRAM6*/DARAM7:o=0x00E000l=0x002000/*8kBDualAccessRAM7*/SARAM0:o=0x010000l=0x002000/*8kBSingleAccessRAM0*/SARAM1:o=0x012000l=0x002000/*8kBSingleAccessRAM1*/SARAM2:o=0x014000l=0x002000/*8kBSingleAccessRAM2*/SARAM3:o=0x016000l=0x002000/*8kBSingleAccessRAM3*/SARAM4:o=0x018000l=0x002000/*8kBSingleAccessRAM4*/SARAM5:o=0x01A000l=0x002000/*8kBSingleAccessRAM5*/SARAM6:o=0x01C000l=0x002000/*8kBSingleAccessRAM6*/SARAM7:o=0x01E000l=0x002000/*8kBSingleAccessRAM7*/SARAM8:o=0x020000l=0x002000/*8kBSingleAccessRAM8*/SARAM9:o=0x022000l=0x002000/*8kBSingleAccessRAM9*/SARAM10:o=0x024000l=0x002000/*8kBSingleAccessRAM10*/SARAM11:o=0x026000l=0x002000/*8kBSingleAccessRAM11*/SARAM12:o=0x028000l=0x002000/*8kBSingleAccessRAM12*/SARAM13:o=0x02A000l=0x002000/*8kBSingleAccessRAM13*/SARAM14:o=0x02C000l=0x002000/*8kBSingleAccessRAM14*/SARAM15:o=0x02E000l=0x002000/*8kBSingleAccessRAM15*/SARAM16:o=0x030000l=0x002000/*8kBSingleAccessRAM16*/SARAM17:o=0x032000l=0x002000/*8kBSingleAccessRAM17*/SARAM18:o=0x034000l=0x002000/*8kBSingleAccessRAM18*/SARAM19:o=0x036000l=0x002000/*8kBSingleAccessRAM19*/SARAM20:o=0x038000l=0x002000/*8kBSingleAccessRAM20*/SARAM21:o=0x03A000l=0x002000/*8kBSingleAccessRAM21*/SARAM22:o=0x03C000l=0x002000/*8kBSingleAccessRAM22*/Dsp作业1SARAM23:o=0x03E000l=0x002000/*8kBSingleAccessRAM23*/CE0:o=0x040000l=0x3C0000/*4MBCE0externalmemoryspace*/CE1:o=0x400000l=0x400000/*4MBCE1externalmemoryspace*/CE2:o=0x800000l=0x400000/*4MBCE2externalmemoryspace*/CE3:o=0xC00000l=0x3F0000/*4MBCE3externalmemoryspace*/ROM:o=0xFF0000l=0x00FF00/*64kBROM(MPNMC=0)orCE3(MPNMC=1)*/VECS:o=0xFFFF00l=0x000100/*resetvector*/}SECTIONS{vectors(NOLOAD)VECS/*IfMPNMC=1,removetheNOLOADdirective*/.cinitDARAM0.textDARAM1.stackDARAM0.sysstackDARAM0.sysmemDARAM4.dataDARAM4.cioDARAM0.bssDARAM5.constDARAM0}MAP文件:******************************************************************************TMS320C55xLinkerPCv4.2.3******************************************************************************LinkedMonApr819:00:232016Dsp作业1OUTPUTFILENAME:./Debug/test2.outENTRYPOINTSYMBOL:startaddress:00002000MEMORYCONFIGURATIONnameoriginlengthusedunusedattrfill(bytes)(bytes)(bytes)(bytes)-------------------------------------------------------------------MMR00000000000000c000000000000000c0RWIXDARAM0000000c000001f400000000000001f40RWIXDARAM100002000000020000000002100001fdfRWIXDARAM200004000000020000000000000002000RWIXDARAM300006000000020000000000000002000RWIXDARAM400008000000020000000000000002000RWIXDARAM50000a000000020000000000000002000RWIXDARAM60000c000000020000000000000002000RWIXDARAM70000e000000020000000000000002000RWIXSARAM000010000000020000000000000002000RWIXSARAM100012000000020000000000000002000RWIXSARAM200014000000020000000000000002000RWIXSARAM300016000000020000000000000002000RWIXSARAM400018000000020000000000000002000RWIXSARAM50001a000000020000000000000002000RWIXSARAM60001c000000020000000000000002000RWIXSARAM70001e000000020000000000000002000RWIXSARAM800020000000020000000000000002000RWIXSARAM900022000000020000000000000002000RWIXSARAM1000024000000020000000000000002000RWIXSARAM1100026000000020000000000000002000RWIXSARAM1200028000000020000000000000002000RWIXSARAM130002a000000020000000000000002000RWIXSARAM140002c000000020000000000000002000RWIXDsp作业1SARAM150002e000000020000000000000002000RWIXSARAM1600030000000020000000000000002000RWIXSARAM1700032000000020000000000000002000RWIXSARAM1800034000000020000000000000002000RWIXSARAM1900036000000020000000000000002000RWIXSARAM2000038000000020000000000000002000RWIXSARAM210003a000000020000000000000002000RWIXSARAM220003c000000020000000000000002000RWIXSARAM230003e000000020000000000000002000RWIXCE000040000003c000000000000003c0000RWIXCE100400000004000000000000000400000RWIXCE200800000004000000000000000400000RWIXCE300c00000003f000000000000003f0000RWIXROM00ff00000000ff00000000000000ff00RWIXVECS00ffff00000001000000000000000100RWIXSECTIONALLOCATIONMAP(Addressessurroundedby[]'saredisplayedforconvenienceonly!)outputattributes/sectionpageorgn(bytes)orgn(words)len(bytes)len(words)inputsections-------------------------------

1 / 10
下载文档,编辑使用

©2015-2020 m.777doc.com 三七文档.

备案号:鲁ICP备2024069028号-1 客服联系 QQ:2149211541

×
保存成功