- 0
- 0
- 约4.4千字
- 约 18页
- 2016-08-22 发布于河南
- 举报
Digital Filters lab3 slides 2of2 数字滤波器实验幻灯片之2
* * * * EE 345S Real-Time Digital Signal Processing Lab Spring 2009 Lab #3.2 3.3Digital FiltersAkshaya Srivatsa * Outline More About Circular Buffers C Code v/s Assembly How Function Makes Call Using Assembly in C Linear Assembly Code How To Read Assembly Files IIR Filters DF-I and Implementation IIR Filter DF-II and Implementation Task List for Lab #3.2 Task List for Lab #3.3 * More About Circular Buffers 8 registers: A4-A7 and B4-B7 can be used as circular buffers. Number of words in the buffer = Block Size 2 bits BK0 and BK1 (each 5 bit fields) of AMR (Address Mode register) BUF_LEN = 2NBlock+1 where BUF_LEN is total no. of bytes. * More About Circular Buffers Buffer must be aligned to byte boundaries i.e. multiples of block size Implementation: #define Nblock 6 #define BUF_LEN_WORD 1(Nbloack-1) # define BUF_LEN 1(Nblock+1) #pragma DATA_ALIGN(x, BUF_LEN) x[] should be global. This prevents carries and borrows in address calculation between blocks to access data. * C Code v/s Assembly We use C coding over Assembly for the following reasons Rapid Software development Applications can be easily ported to DSP’s Assembly Code is tough to write because Multiple levels of pipelining. Multiple Execution Units Different instructions take different execution times * How Function Makes Call In function call, first argument is the left most one. Registers A0-A9 and B0-B9 are saved on the stack. The first 10 arguments are saved in registers A and B. Other ones are saved on stack. The caller branches to the function. Returned values are stored in B3. Upon returning, the stack is popped and loaded back into the register. * Using Assembly in C Every variable in C is prefixed with an underscore in assembly. (x in C is _x in assembly) B3 (Return value) and A3 (Structure Register) must not be used freely. Objects or functions declared in assembly that is called by C needs to be declared with .def or .global. Must start with .cproc and end with .endproc to mark the s
您可能关注的文档
- 2016考研翻译硕士缩略词精选.docx
- 2014-2015学年高中生物+第4章+第3节+物质跨膜运输的方式优质课件+新人教版必修1(共27张PPT).ppt
- 3 AD1新.ppt
- 31 digital signature support HostingCon2014.docx
- 3、Structure and Technology.ppt
- 5 Semiconductive Devices.ppt
- 5、Parasitic Internal Currents.ppt
- 5-2药动学.ppt
- 6000词汇超纲词汇.doc
- 6_1DA转换器.ppt
- 小区绿化施工协议书.docx
- 墙面施工协议书.docx
- 1 古诗二首(课件)--2025-2026学年统编版语文二年级下册.pptx
- (2026春新版)部编版八年级道德与法治下册《3.1《公民基本权利》PPT课件.pptx
- (2026春新版)部编版八年级道德与法治下册《4.3《依法履行义务》PPT课件.pptx
- (2026春新版)部编版八年级道德与法治下册《6.2《按劳分配为主体、多种分配方式并存》PPT课件.pptx
- (2026春新版)部编版八年级道德与法治下册《6.1《公有制为主体、多种所有制经济共同发展》PPT课件.pptx
- 初三教学管理交流发言稿.docx
- 小学生课外阅读总结.docx
- 餐饮门店夜经济运营的社会责任报告(夜间贡献)撰写流程试题库及答案.doc
最近下载
- ISO9001-2026质量管理体系标准版中英文及变化点解析.pdf VIP
- HGT 21629-1999 管架标准图(四).docx VIP
- 广州市民办学校申办审批表.doc VIP
- 无人机测绘技术与应用课件21--无人机驾驶员职业规划.ppt
- 2025年袋鼠数学LevelB试卷及答案.pdf VIP
- 《重症凝血病标准化评估中国专家共识(2025)》解读PPT课件.pptx VIP
- 《动物防疫法》培训解读课件.pptx VIP
- 无人机测绘技术与应用课件20--无人机飞行原理.ppt
- 先进控制技术及其应用.docx VIP
- 2025-2026学年济南版(2024)初中生物八年级上册《血液是物质运输的载体》教学设计.docx
原创力文档

文档评论(0)