資源簡介
數字通信同步技術的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(‘濾波結果‘);
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件????????138??2014-05-18?17:39??數字通信同步技術的MATLAB與FPGA實現——AlteraVerilog版\Chapter_2\E2_1_SymbExam\incremental_db\compiled_partitions\SymbExam.db_info
?????文件????????278??2014-08-16?15:17??數字通信同步技術的MATLAB與FPGA實現——AlteraVerilog版\Chapter_2\E2_1_SymbExam\incremental_db\compiled_partitions\SymbExam.root_partition.cmp.ammdb
?????文件???????2567??2014-08-16?15:17??數字通信同步技術的MATLAB與FPGA實現——AlteraVerilog版\Chapter_2\E2_1_SymbExam\incremental_db\compiled_partitions\SymbExam.root_partition.cmp.cdb
?????文件?????????33??2014-08-16?15:17??數字通信同步技術的MATLAB與FPGA實現——AlteraVerilog版\Chapter_2\E2_1_SymbExam\incremental_db\compiled_partitions\SymbExam.root_partition.cmp.dfp
?????文件??????10438??2014-08-16?15:17??數字通信同步技術的MATLAB與FPGA實現——AlteraVerilog版\Chapter_2\E2_1_SymbExam\incremental_db\compiled_partitions\SymbExam.root_partition.cmp.hdb
?????文件????????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
?????文件???????2273??2014-08-16?15:17??數字通信同步技術的MATLAB與FPGA實現——AlteraVerilog版\Chapter_2\E2_1_SymbExam\incremental_db\compiled_partitions\SymbExam.root_partition.cmp.rcfdb
?????文件???????1486??2014-08-16?15:17??數字通信同步技術的MATLAB與FPGA實現——AlteraVerilog版\Chapter_2\E2_1_SymbExam\incremental_db\compiled_partitions\SymbExam.root_partition.map.cdb
?????文件????????662??2014-08-16?15:17??數字通信同步技術的MATLAB與FPGA實現——AlteraVerilog版\Chapter_2\E2_1_SymbExam\incremental_db\compiled_partitions\SymbExam.root_partition.map.dpi
?????文件????????629??2014-08-16?15:17??數字通信同步技術的MATLAB與FPGA實現——AlteraVerilog版\Chapter_2\E2_1_SymbExam\incremental_db\compiled_partitions\SymbExam.root_partition.map.hbdb.cdb
?????文件?????????46??2014-08-16?15:17??數字通信同步技術的MATLAB與FPGA實現——AlteraVerilog版\Chapter_2\E2_1_SymbExam\incremental_db\compiled_partitions\SymbExam.root_partition.map.hbdb.hb_info
?????文件???????9835??2014-08-16?15:17??數字通信同步技術的MATLAB與FPGA實現——AlteraVerilog版\Chapter_2\E2_1_SymbExam\incremental_db\compiled_partitions\SymbExam.root_partition.map.hbdb.hdb
?????文件?????????32??2014-08-16?15:17??數字通信同步技術的MATLAB與FPGA實現——AlteraVerilog版\Chapter_2\E2_1_SymbExam\incremental_db\compiled_partitions\SymbExam.root_partition.map.hbdb.sig
?????文件???????9933??2014-08-16?15:17??數字通信同步技術的MATLAB與FPGA實現——AlteraVerilog版\Chapter_2\E2_1_SymbExam\incremental_db\compiled_partitions\SymbExam.root_partition.map.hdb
?????文件????????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
............此處省略5028個文件信息
- 上一篇:CLBP人臉識別程序及運行結果
- 下一篇:調頻立體聲廣播MATLAB仿真
評論
共有 條評論