📄 exp3.html
字号:
<html xmlns:v="urn:schemas-microsoft-com:vml"xmlns:o="urn:schemas-microsoft-com:office:office"xmlns:w="urn:schemas-microsoft-com:office:word"xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=iso-8859-1"><meta name=ProgId content=Word.Document><meta name=Generator content="Microsoft Word 9"><meta name=Originator content="Microsoft Word 9"><link rel=File-List href="exp3_files/filelist.xml"><link rel=Edit-Time-Data href="exp3_files/editdata.mso"><!--[if !mso]><style>v\:* {behavior:url(#default#VML);}o\:* {behavior:url(#default#VML);}w\:* {behavior:url(#default#VML);}.shape {behavior:url(#default#VML);}</style><![endif]--><!--[if gte mso 9]><xml> <o:DocumentProperties> <o:Author>Bob</o:Author> <o:Template>Normal</o:Template> <o:LastAuthor>Bob</o:LastAuthor> <o:Revision>2</o:Revision> <o:TotalTime>3</o:TotalTime> <o:Created>2001-03-18T01:20:00Z</o:Created> <o:LastSaved>2001-03-18T01:23:00Z</o:LastSaved> <o:Pages>5</o:Pages> <o:Words>1060</o:Words> <o:Characters>6045</o:Characters> <o:Lines>50</o:Lines> <o:Paragraphs>12</o:Paragraphs> <o:CharactersWithSpaces>7423</o:CharactersWithSpaces> <o:Version>9.3821</o:Version> </o:DocumentProperties></xml><![endif]--><style><!-- /* Style Definitions */p.MsoNormal, li.MsoNormal, div.MsoNormal {mso-style-parent:""; margin:0pt; margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:12.0pt; font-family:"Times New Roman"; mso-fareast-font-family:"Times New Roman";}p {font-size:12.0pt; font-family:"Times New Roman"; mso-fareast-font-family:"Times New Roman";}@page Section1 {size:612.0pt 792.0pt; margin:72.0pt 90.0pt 72.0pt 90.0pt; mso-header-margin:36.0pt; mso-footer-margin:36.0pt; mso-paper-source:0;}div.Section1 {page:Section1;} /* List Definitions */@list l0 {mso-list-id:236593630; mso-list-type:hybrid; mso-list-template-ids:-63013202 1294496748 -1416213116 677007556 -764670658 1130763226 358784806 396264388 -1840069418 -299601018;}@list l1 {mso-list-id:531070855; mso-list-type:hybrid; mso-list-template-ids:1705686316 74483810 -1927774814 787630548 -1427481482 -1668231650 -792806054 -743161684 -1800753738 -1976957132;}@list l2 {mso-list-id:678629224; mso-list-type:hybrid; mso-list-template-ids:2027993070 -1692505414 -38643666 870743034 -1571008558 -1852926772 -57539992 -819555834 1992600230 994852210;}@list l3 {mso-list-id:850023202; mso-list-type:hybrid; mso-list-template-ids:546052772 -2001563826 909287050 -1885300494 203069260 -1440290202 -385463264 -191831274 1557674128 1021838438;}@list l4 {mso-list-id:1365137399; mso-list-type:hybrid; mso-list-template-ids:-565312328 1193674276 -159755346 -1143952480 -1295355644 1116341810 557906112 -1909289348 -906356090 133081740;}@list l5 {mso-list-id:1397509300; mso-list-type:hybrid; mso-list-template-ids:-1574015666 -344302462 1894555950 -315466468 1436957700 -610266100 1912123530 1234836772 1222798138 96908850;}ol {margin-bottom:0pt;}ul {margin-bottom:0pt;}--></style><!--[if gte mso 9]><xml> <o:shapedefaults v:ext="edit" spidmax="1026"/></xml><![endif]--><!--[if gte mso 9]><xml> <o:shapelayout v:ext="edit"> <o:idmap v:ext="edit" data="1"/> </o:shapelayout></xml><![endif]--></head><body lang=EN-US link=blue vlink=blue style='tab-interval:36.0pt'><div class=Section1><p><strong><span style='font-size:18.0pt'>Experiments for Chapter 3</span></strong></p><p style='margin-right:36.0pt;margin-left:36.0pt'><a href="exp3.zip">DownloadChapter 3 experimental software programs</a></p><p><a href="#top"><span style='font-size:7.5pt'>Back to Top</span></a> <input type=button value="go back" onclick="history.go(-1)"></p><div class=MsoNormal align=center style='text-align:center'><hr size=3 width="100%" align=center></div><p><strong><span style='font-size:13.5pt'>Fixed-Point Implementation</span></strong></p><p style='margin-right:72.0pt;margin-left:72.0pt'>There are 5 experiments inthis chapter:</p><p style='margin-right:108.0pt;margin-left:144.0pt;text-indent:-18.0pt;mso-list:l2 level1 lfo1;tab-stops:list 36.0pt'><![if !supportLists]>1.<spanstyle='font:7.0pt "Times New Roman"'> </span><![endif]>Experiment3A - Quantization of Sinusoid Signals</p><p style='margin-right:108.0pt;margin-left:144.0pt;text-indent:-18.0pt;mso-list:l2 level1 lfo1;tab-stops:list 36.0pt'><![if !supportLists]>2.<spanstyle='font:7.0pt "Times New Roman"'> </span><![endif]>Experiment3B - Quantization of Speech Signals</p><p style='margin-right:108.0pt;margin-left:144.0pt;text-indent:-18.0pt;mso-list:l2 level1 lfo1;tab-stops:list 36.0pt'><![if !supportLists]>3.<spanstyle='font:7.0pt "Times New Roman"'> </span><![endif]>Experiment3C - Overflow and Saturation Arithmetic</p><p style='margin-right:108.0pt;margin-left:144.0pt;text-indent:-18.0pt;mso-list:l2 level1 lfo1;tab-stops:list 36.0pt'><![if !supportLists]>4.<spanstyle='font:7.0pt "Times New Roman"'> </span><![endif]>Experiment3D - Quantization of Coefficients</p><p style='margin-right:108.0pt;margin-left:144.0pt;text-indent:-18.0pt;mso-list:l2 level1 lfo1;tab-stops:list 36.0pt'><![if !supportLists]>5.<spanstyle='font:7.0pt "Times New Roman"'> </span><![endif]>Experiment3C - Function Approximation in Fixed-point Number Representation</p><p style='margin-right:72.0pt;margin-left:72.0pt'>The purpose of theexperiments in this section are to learn input quantization effects and todetermine the proper fixed-point representation for a fixed-point DSP system.</p><div class=MsoNormal align=center style='text-align:center'><hr size=3 width="100%" align=center></div><form><p align=center style='text-align:center'><strong><span style='font-size:13.5pt;color:blue'>Experiment 3A - Quantization of Sinusoid Signals</span></strong></p><p style='margin-right:72.0pt;margin-left:72.0pt'>To experiment with the inputquantization effects, we altering the number of bits of the input samples into16-bit, 12-bit, and so on. The C function <a href="exp3/exp3a.c"><spanstyle='font-family:"Courier New"'>exp3a.c</span></a> is listed in Table E3-1for reference. The linker command file used for the experiments are identicalto the previous experiments. </p><p align=center style='text-align:center'> </p><p align=center style='text-align:center'>Table E3-1 List of C function forExperiment 3A.</p><p align=center style='text-align:center'><TEXTAREA ROWS="7" COLS="70" NAME="exp3a.c">/*-------------------------------------------------------------- exp3a.c - Output tabled data with different wordlength. ----------------------------------------------------------------*/ #define	BUF_SIZE 40 const int sineTable[BUF_SIZE]= {0x0000,0x01E0,0x03C0,0x05A0,0x0740,0x08C0,0x0A00,0x0B20, 0x0BE0,0x0C40,0x0C60,0x0C40,0x0BE0,0x0B20,0x0A00,0x08C0, 0x0740,0x05A0,0x03C0,0x01E0,0x0000,0xFE20,0xFC40,0xFA60, 0xF8C0,0xF740,0xF600,0xF4E0,0xF420,0xF3C0,0xF3A0,0xF3C0, 0xF420,0xF4E0,0xF600,0xF740,0xF8C0,0xFA60,0xFC40,0x0000};		 int out16[BUF_SIZE]; 	/* 16 bits output sample buffer */ int out12[BUF_SIZE]; /* 12 bits output sample buffer */ int out8[BUF_SIZE]; /* 8 bits output sample buffer */ int out6[BUF_SIZE]; /* 6 bits output sample buffer */ void main() { int i; 	 for (i = 0; i < BUF_SIZE-1; i++) { out16[i] = 0; out12[i] = 0; out8[i] = 0; out6[i] = 0; } 		 	 for (i = 0; i < BUF_SIZE-1; i++) { out16[i] = sineTable[i]; out12[i] = sineTable[i]&0xfff0; out8[i] = sineTable[i]&0xff00; out6[i] = sineTable[i]&0xfc00; } } </TEXTAREA></p><p align=center style='text-align:center'> </p><p style='margin-right:72.0pt;margin-left:72.0pt'>To conduct Experiment 3A,following these steps:</p><p class=MsoNormal style='margin-right:72.0pt;mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;margin-left:108.0pt;text-indent:-18.0pt;mso-list:l5 level1 lfo2;tab-stops:list 36.0pt'><![if !supportLists]>1.<spanstyle='font:7.0pt "Times New Roman"'> </span><![endif]>Createthe project, <span style='font-family:"Courier New"'>exp3a</span> and includethe linker command file <span style='font-family:"Courier New"'>exp3.cmd</span>,the function <span style='font-family:"Courier New"'>exp3a()</span>.</p>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -