資源簡介
數字通信同步技術的Matlab與FPGA實現——AlteraVerilog版,配套光盤第2-8章 杜勇
代碼片段和文件信息
%E2_2_QuantArith.m
x=[7/8?zeros(115)];
y=zeros(1length(x));???%存放原始運算結果
B=2;????????????????????%量化位數
Qy=zeros(1length(x));???%存放量化運算結果
Qy2=zeros(1length(x));??%存放量化運算結果
Qy4=zeros(1length(x));??%存放量化運算結果
Qy6=zeros(1length(x));??%存放量化運算結果
%系統系數
A=0.5;
b=[1];
a=[1A];
%未經過量化處理的運算
for?i=1:length(x);
????if?i==1
????????y(i)=x(i);
????else
????????y(i)=-A*y(i-1)+x(i);
????end
end
%經過量化處理的運算
for?i=1:length(x);
????if?i==1
????????Qy(i)=x(i);
????????Qy(i)=round(Qy(i)*(2^(B-1)))/2^(B-1);
????else
????????Qy(i)=-A*Qy(i-1)+x(i);
????????Qy(i)=round(Qy(i)*(2^(B-1)))/2^(B-1);
????end
end
Qy2=Qy;
B=4;
%經過量化處理的運算
for?i=1:length(x);
????if?i==1
????????Qy(i)=x(i);
????????Qy(i)=round(Qy(i)*(2^(B-1)))/2^(B-1);
????else
????????Qy(i)=-A*Qy(i-1)+x(i);
????????Qy(i)=round(Qy(i)*(2^(B-1)))/2^(B-1);
????end
end
Qy4=Qy;
B=6;
%經過量化處理的運算
for?i=1:length(x);
????if?i==1
????????Qy(i)=x(i);
????????Qy(i)=round(Qy(i)*(2^(B-1)))/2^(B-1);
????else
????????Qy(i)=-A*Qy(i-1)+x(i);
????????Qy(i)=round(Qy(i)*(2^(B-1)))/2^(B-1);
????end
end
Qy6=Qy;
xa=0:1:length(x)-1;
plot(xay‘-‘xaQy2‘--‘xaQy4‘O‘xaQy6‘+‘);
legend(‘原系統運算結果‘‘2bit量化運算結果‘‘4bit量化運算結果‘‘6bit量化運算結果‘)
xlabel(‘運算次數‘);ylabel(‘濾波結果‘);
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件????????155??2016-01-25?09:46??數字通信同步技術的MATLAB與FPGA實現——AlteraVerilog版\Chapter_2\E2_1_SymbExam\db\SymbExam.db_info
?????文件????????178??2016-01-25?09:46??數字通信同步技術的MATLAB與FPGA實現——AlteraVerilog版\Chapter_2\E2_1_SymbExam\db\SymbExam.ipinfo
?????文件????????217??2016-01-25?09:46??數字通信同步技術的MATLAB與FPGA實現——AlteraVerilog版\Chapter_2\E2_1_SymbExam\db\SymbExam.sld_design_entry.sci
?????文件????????155??2016-01-25?09:46??數字通信同步技術的MATLAB與FPGA實現——AlteraVerilog版\Chapter_2\E2_1_SymbExam\incremental_db\compiled_partitions\SymbExam.db_info
?????文件?????????33??2014-08-16?15:17??數字通信同步技術的MATLAB與FPGA實現——AlteraVerilog版\Chapter_2\E2_1_SymbExam\incremental_db\compiled_partitions\SymbExam.root_partition.cmp.dfp
?????文件????????203??2014-08-16?15:17??數字通信同步技術的MATLAB與FPGA實現——AlteraVerilog版\Chapter_2\E2_1_SymbExam\incremental_db\compiled_partitions\SymbExam.root_partition.cmp.kpt
?????文件??????????4??2014-08-16?15:17??數字通信同步技術的MATLAB與FPGA實現——AlteraVerilog版\Chapter_2\E2_1_SymbExam\incremental_db\compiled_partitions\SymbExam.root_partition.cmp.logdb
?????文件????????662??2014-08-16?15:17??數字通信同步技術的MATLAB與FPGA實現——AlteraVerilog版\Chapter_2\E2_1_SymbExam\incremental_db\compiled_partitions\SymbExam.root_partition.map.dpi
?????文件????????208??2014-08-16?15:17??數字通信同步技術的MATLAB與FPGA實現——AlteraVerilog版\Chapter_2\E2_1_SymbExam\incremental_db\compiled_partitions\SymbExam.root_partition.map.kpt
?????文件????????653??2014-05-18?17:39??數字通信同步技術的MATLAB與FPGA實現——AlteraVerilog版\Chapter_2\E2_1_SymbExam\incremental_db\README
?????文件???????1182??2014-08-16?15:14??數字通信同步技術的MATLAB與FPGA實現——AlteraVerilog版\Chapter_2\E2_1_SymbExam\quartus_nativeli
?????文件??????11131??2014-08-17?11:49??數字通信同步技術的MATLAB與FPGA實現——AlteraVerilog版\Chapter_2\E2_1_SymbExam\simulation\modelsim\modelsim.ini
?????文件???????2180??2014-08-17?11:49??數字通信同步技術的MATLAB與FPGA實現——AlteraVerilog版\Chapter_2\E2_1_SymbExam\simulation\modelsim\msim_transc
?????文件????????386??2014-08-17?11:49??數字通信同步技術的MATLAB與FPGA實現——AlteraVerilog版\Chapter_2\E2_1_SymbExam\simulation\modelsim\rtl_work\@symb@exam\verilog.prw
?????文件???????4768??2014-08-17?11:49??數字通信同步技術的MATLAB與FPGA實現——AlteraVerilog版\Chapter_2\E2_1_SymbExam\simulation\modelsim\rtl_work\@symb@exam\verilog.psm
?????文件????????453??2014-08-17?11:49??數字通信同步技術的MATLAB與FPGA實現——AlteraVerilog版\Chapter_2\E2_1_SymbExam\simulation\modelsim\rtl_work\@symb@exam\_primary.dat
?????文件????????764??2014-08-17?11:49??數字通信同步技術的MATLAB與FPGA實現——AlteraVerilog版\Chapter_2\E2_1_SymbExam\simulation\modelsim\rtl_work\@symb@exam\_primary.dbs
?????文件????????340??2014-08-17?11:49??數字通信同步技術的MATLAB與FPGA實現——AlteraVerilog版\Chapter_2\E2_1_SymbExam\simulation\modelsim\rtl_work\@symb@exam\_primary.vhd
?????文件????????530??2014-08-17?11:49??數字通信同步技術的MATLAB與FPGA實現——AlteraVerilog版\Chapter_2\E2_1_SymbExam\simulation\modelsim\rtl_work\@symb@exam_vlg_tst\verilog.prw
?????文件???????8976??2014-08-17?11:49??數字通信同步技術的MATLAB與FPGA實現——AlteraVerilog版\Chapter_2\E2_1_SymbExam\simulation\modelsim\rtl_work\@symb@exam_vlg_tst\verilog.psm
?????文件????????795??2014-08-17?11:49??數字通信同步技術的MATLAB與FPGA實現——AlteraVerilog版\Chapter_2\E2_1_SymbExam\simulation\modelsim\rtl_work\@symb@exam_vlg_tst\_primary.dat
?????文件????????980??2014-08-17?11:49??數字通信同步技術的MATLAB與FPGA實現——AlteraVerilog版\Chapter_2\E2_1_SymbExam\simulation\modelsim\rtl_work\@symb@exam_vlg_tst\_primary.dbs
?????文件????????585??2014-08-17?11:49??數字通信同步技術的MATLAB與FPGA實現——AlteraVerilog版\Chapter_2\E2_1_SymbExam\simulation\modelsim\rtl_work\@symb@exam_vlg_tst\_primary.vhd
?????文件???????1529??2014-08-17?11:49??數字通信同步技術的MATLAB與FPGA實現——AlteraVerilog版\Chapter_2\E2_1_SymbExam\simulation\modelsim\rtl_work\_info
?????文件?????????26??2014-08-17?11:49??數字通信同步技術的MATLAB與FPGA實現——AlteraVerilog版\Chapter_2\E2_1_SymbExam\simulation\modelsim\rtl_work\_vmake
?????文件????????353??2014-08-16?15:17??數字通信同步技術的MATLAB與FPGA實現——AlteraVerilog版\Chapter_2\E2_1_SymbExam\simulation\modelsim\SymbExam.sft
?????文件??????11543??2014-08-16?15:17??數字通信同步技術的MATLAB與FPGA實現——AlteraVerilog版\Chapter_2\E2_1_SymbExam\simulation\modelsim\SymbExam.vo
?????文件???????2593??2014-05-18?18:11??數字通信同步技術的MATLAB與FPGA實現——AlteraVerilog版\Chapter_2\E2_1_SymbExam\simulation\modelsim\SymbExam.vt
?????文件???????3042??2014-05-18?17:53??數字通信同步技術的MATLAB與FPGA實現——AlteraVerilog版\Chapter_2\E2_1_SymbExam\simulation\modelsim\SymbExam.vt.bak
?????文件??????11560??2014-08-16?15:17??數字通信同步技術的MATLAB與FPGA實現——AlteraVerilog版\Chapter_2\E2_1_SymbExam\simulation\modelsim\SymbExam_8_1200mv_0c_slow.vo
............此處省略5026個文件信息
評論
共有 條評論