下載本文檔
版權(quán)說(shuō)明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)
文檔簡(jiǎn)介
1、Chapter 13 Solutions13.1The ADSP-2181 uses 16 bits for both signed and unsigned formats.(a)0000 1001 1011 0011(b)0000 1001 1011 0011For positive integers, there is no difference between the signed and unsigned formats.13.2(a)(i)The 1.15 representation is given by truncate(0.93207 x 215 + 0.5) = 3054
2、210 = 0 x774E = 0111 0111 0100 11102.(ii)The 6.10 representation is given by truncate(0.93207 x 210 + 0.5) = 95410 = 0 x03BA = 0000 0011 1011 10102.(iii) The 12.4 representation is given by truncate(0.93207 x 24 + 0.5) = 1510 = 0 x000F = 0000 0000 0000 11112. (b)(i)The quantized value is 0.932067871
3、09375, for a quantization error of 0.00000212890625.(ii)The quantized value is 0.931640625, for an error of 0.000429375.(iii)The quantized value is 0.9375, giving a quantization error of 0.00543. 13.3(a)The largest value is 0111 11.11 1111 11112, or 31.9990234375, and the smallest value is 1000 00.0
4、0 0000 0000, or 32, so the range is 63.9990234375. The smallest resolvable difference is 210. Thus, the dynamic range is 20log(full scale range/smallest resolvable difference) = 96.33 dB.(b)The largest value is 0111 1111 1111.11112, or 2047.9375, and the smallest value is 1000 0000 0000.0000, or 204
5、8, so the range is 4095.9375. The smallest resolvable difference is 24. Thus, the dynamic range is 20log(full scale range/smallest resolvable difference) = 96.33 dB.(c)The largest value is 0111 1111 1111 11112, or 32767, and the smallest value is 1000 0000 0000 0000, or 32768, so the range is 65535.
6、 The smallest resolvable difference is 1. Thus, the dynamic range is 20log(full scale range/smallest resolvable difference) = 96.33 dB.Note that all three fixed point formats have the same dynamic range.13.4(a)In 1.3 format, 0.61310 = 0.1012. Therefore, the quantized value is 0.625.In 2.2 format, 1.
7、8510 = 01.112, so the quantized value is 1.75.(b)The product of the quantized numbers is (0.625)(1.75) = 1.0937510 = 01.00 0110 0000 0000. A minimum 2.5 format is needed to represent this product exactly. Note that a format 1.3 number multiplied by a 2.2 number will give at worst a number in (1+2).(
8、3+2) = 3.5 format.(c)The true product is (0.613)(1.85) = 1.13405, 0.0403 (or 3.55%) greater than the quantized product.13.5The coefficients for the filter are 5, 1, 5. To use 1.15 format, the coefficients must be scaled down by a factor of 8, or 23, which gives scaled coefficients 0.625, 0.125, 0.62
9、5. The inputs are too large too be accommodated by 1.15 format. Because they lie between 2 V and 2 V, they must be scaled down by a factor of 2. The scaled filter implementation isxSn = 0.5xnySn = 0.625xSn + 0.125xSn1 + 0.625xSn2yn = 2(8ySn) = 16ySnThe difference equation diagram is shown below. At
10、the right, the scaling factors, 8 for the coefficients and 2 for the inputs, are re-introduced to correct the calculation.xnyn+delay0.625delayxn1xn2821/20.6250.12513.6(a)The direct form 2 equations arewn = xn + 2.0651wn1 1.5200wn2 + 0.3861wn3yn = 0.0086wn + 0.0258wn1 + 0.0258wn2 + 0.0086wn3(b)The bk
11、 coefficients do not require scaling down, as they already fall within the range for a 1.15 representation, but they can benefit from scaling up, to improve the precision of the calculations. The bk coefficients can be scaled up by a factor of 32 and still fit into the 1.15 range. The ak coefficient
12、s must be scaled down by a factor of 4. The inputs do not require scaling, though they are divided by 4 in the process of scaling down the ak coefficients. If the inputs become too small as a result, they can be scaled appropriately by scaling factor C. The new equations are:wSn = 0.25xn + 0.516275w
13、n1 0.3800wn2 + 0.096525wn3wn = 4wSnySn = 0.2752wn + 0.8256wn1 + 0.8256wn2 + 0.2752wn3yn = = 0.03125ySn(c)The difference equation diagram is shown below. To accommodate the limited size of the diagram, the coefficient 0.516275 is rounded to 0.5163, and the coefficient 0.096525 is rounded to 0.0965.yn
14、xnwndelaydelaydelay0.27520.82560.09650.51630.380+0.2540.031250.82560.275213.7No scaling is necessary. b0 = b6 = 0.000 0000 1100 0001 = 0 x00C1b1 = b5 = 1.111 1001 1011 1110 = 0 xF9BEb2 = b4 = 0.001 0101 1111 0111 = 0 x15F7b3 = 0.101 1111 0000 1110 = 0 x5F0E13.8Because register l1 is zero, the buffer
15、 is linear. After ten reads, the my1 register contains the value 0 x000a, or 10.13.9Because register l1 is eight, the buffer is circular. After ten reads, the my1 register contains the value 0 x0002, or 2.13.10(a) 0001 0001 0100 1010 + 0010 0000 0000 00100011 0001 0100 1100 The register ar contains
16、the sum 0 x314C.(b)Subtracting is the same as adding the twos complement. The twos complement of 0 x2002 = 0010 0000 0000 0010 is 1101 1111 1111 1110, or 0 xDFFE. Therefore,0001 0001 0100 10101101 1111 1111 11101111 0001 0100 1000 The register ar contains the sum 0 xF148.(b)The round mode assumes tw
17、o signed operands, so the analysis proceeds in the same manner as in (a). The last step, however, is to round the result to the top 16 bits. The result in (a) was 1.110 1101 0101 0101 1100 0000 0000 0000, with the bottom 16 bits highlighted. Rounding is required because the highlighted bits exceed 0
18、 x8000. To round, a one is added at bit position 15, top left-most highlighted bit, which in this case causes a carry into bit 16 to give a result in mr of 1.110 1101 0101 0110 0 xxx xxxx xxxx xxxx, where the x bits are irrelevant. With sign extension into mr2, the 24-bit result in mr2 mr1 is 0 xFF
19、ED56.(c)Both numbers are unsigned. In this format, bit 16 has the weighting 2013.12The binary representation of the number in register ar is 0010 1110 1001 0110.(a)The number is copied into sr0 and shifted to the right by three positions. After shifting, sr contains 0000 0000 0000 0000 0000 0101 110
20、1 0010, or 0 x0000 05D2.(b)The number is copied into sr0 and shifted to the left by one position. After shifting, sr contains 0000 0000 0000 0000 0101 1101 0010 1100, or 0 x0000 5D2C.(c)The number is copied into sr1 and shifted to the right by two positions. After shifting, sr contains 0000 1011 101
21、0 0101 1000 0000 0000 0000, or 0 x0BA5 8000.(d)The number is copied into sr1 and shifted to the left by three positions. After shifting, sr contains 0111 0100 1011 0000 0000 0000 0000 0000, or 0 x74B0 0000.13.13The loop in this factorial program segment multiplies the values 6, 5, 4, 3, 2 and 1 to g
22、ive a product of 720. Integer arithmetic is used in this program, so results of the multiplications appear in mr0. At the end of the loop, my1 = mr0 = 0 x02D0, or 720, and ar = 0. It would be reasonable to guess that the expired counter has the value 0, but at the conclusion of the loop cntr = undef
23、ined.13.14This program segment computes a single filter output for an FIR filter with four terms. A circular buffer “coeff” contains the decimal values 0.25, 0.5, 0.25 and 0.125. A circular buffer “data_in” contains the values 0.5625, 0.25, 0.75 and 0.625. The filter output is (0.25)(0.5625) + (0.5)(0.25) + (0.25)(0.75) + (0.125)(0.625) = 0.53125. The first three partial sums are 0 x00 1200 0000, 0 x00 2200 0000, and 0 x00 3a00 0000. After the final sum and rounding step, the final answer is stored in register mr1 as 0 x4400, which is the 1.15 representation f
溫馨提示
- 1. 本站所有資源如無(wú)特殊說(shuō)明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁(yè)內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒(méi)有圖紙預(yù)覽就沒(méi)有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫(kù)網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。
最新文檔
- 支付公司財(cái)務(wù)內(nèi)控制度模板
- 塑料制品HSE施工安全合同
- 食品安全的主題班會(huì)教案7篇
- 修通信線路廠智能門(mén)禁管理辦法
- 瑜伽瘦身教練聘用協(xié)議
- 招標(biāo)投標(biāo)質(zhì)量控制手冊(cè)
- 互聯(lián)網(wǎng)公司網(wǎng)絡(luò)安全操作指南
- 裝飾裝修服務(wù)承諾書(shū)
- 房地產(chǎn)策劃解雇協(xié)議
- 員工意見(jiàn)收集指南試點(diǎn)
- 中華民族現(xiàn)代文明有哪些鮮明特質(zhì)?建設(shè)中華民族現(xiàn)代文明的路徑是什么?參考答案四
- 房地產(chǎn)前期顧問(wèn)協(xié)議書(shū)書(shū)
- 部編版道德與法治五年級(jí)上冊(cè)全冊(cè)課件
- 四川省綿陽(yáng)市2023-2024學(xué)年高一下學(xué)期期末教學(xué)質(zhì)量測(cè)試+歷史試卷答案
- 2024年秋一年級(jí)上冊(cè)13 an en in un ün 公開(kāi)課一等獎(jiǎng)創(chuàng)新教案(2課時(shí))
- 光伏發(fā)電安裝質(zhì)量驗(yàn)收評(píng)定表
- Unit 1 You and Me教學(xué)設(shè)計(jì)2024-2025學(xué)年人教版(2024)英語(yǔ)七年級(jí)上冊(cè)(安徽)
- 2024-2030年中國(guó)汽車(chē)鋁合金(OE)行業(yè)市場(chǎng)發(fā)展趨勢(shì)與前景展望戰(zhàn)略分析報(bào)告
- 2024新教科版一年級(jí)科學(xué)上冊(cè)第二單元《我們自己》全部教案
- 初中文言文及古詩(shī)
- 網(wǎng)上書(shū)店設(shè)計(jì)說(shuō)明書(shū)-(含結(jié)構(gòu)圖、流程圖和E-R圖)
評(píng)論
0/150
提交評(píng)論