基于Verilog的BPSK
基于verilog的BPSK,正弦波为载波,调制信号为PN序列,附硬件调频
代码片段和文件信息
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2019-03-02 11:40 bpsk7.0.PN
文件 469 2019-02-27 22:52 bpsk7.0.PNAD.V
文件 412 2019-01-05 23:21 bpsk7.0.PNAD.V.bak
文件 1083 2019-01-01 15:52 bpsk7.0.PNpsk.bdf
文件 2646 2018-12-31 21:33 bpsk7.0.PNpsk.bsf
文件 1441 2019-01-05 18:42 bpsk7.0.PNpsk.mif
文件 1339 2018-12-31 17:32 bpsk7.0.PNpsk.qpf
文件 13884 2019-03-02 11:40 bpsk7.0.PNpsk.qsf
文件 3944 2019-03-02 11:40 bpsk7.0.PNpsk.qws
文件 3007 2019-03-01 14:36 bpsk7.0.PNpsk.v
文件 3095 2019-01-07 10:53 bpsk7.0.PNpsk.v.bak
文件 55624 2019-01-18 14:05 bpsk7.0.PNpsk_assignment_defaults.qdf
文件 1097 2019-03-02 07:38 bpsk7.0.PNpsk_nativelink_simulation.rpt
文件 4875 2019-03-02 07:37 bpsk7.0.PNc5_pin_model_dump.txt
文件 3988 2019-01-18 08:41 bpsk7.0.PNclk_pill.bsf
文件 286 2019-01-18 08:41 bpsk7.0.PNclk_pill.cmp
文件 491 2019-01-18 08:41 bpsk7.0.PNclk_pill.ppf
文件 54648 2019-01-18 08:41 bpsk7.0.PNclk_pill.qip
文件 514 2019-01-18 08:41 bpsk7.0.PNclk_pill.sip
文件 187 2019-01-18 08:41 bpsk7.0.PNclk_pill.spd
文件 17438 2019-01-18 08:41 bpsk7.0.PNclk_pill.v
文件 25 2019-01-18 08:41 bpsk7.0.PNclk_pill_sim.f
文件 2633 2018-12-31 21:36 bpsk7.0.PNController.bsf
文件 1707 2019-02-26 13:33 bpsk7.0.PNController.v
文件 0 2018-12-31 18:43 bpsk7.0.PNController.v.bak
文件 2158 2018-12-31 21:36 bpsk7.0.PNcounter.bsf
文件 669 2019-02-26 00:40 bpsk7.0.PNcounter.v
文件 0 2018-12-31 18:04 bpsk7.0.PNcounter.v.bak
文件 0 2019-02-26 13:30 bpsk7.0.PNDA.v
文件 0 2019-01-07 10:15 bpsk7.0.PNDA.v.bak
目录 0 2019-03-02 11:40 bpsk7.0.PNdb
............此处省略786个文件信息
%
%THIS IS A WIZARD GENERATED FILE. DO NOT EDIT THIS FILE!
%
%---------------------------------------------------------------------------------------------------------
%This is a filter with fixed coefficients.
%This Model Only Support Single Channel Input Data.
%Please input:
%data vector: stimulation(1:n)
% This Model Only Support FIR_WIDTH to 51 Bits
%FILTER PARAMETER
%Input Data Width: 16
%Interpolation Factor: 1
%Decimation Factor: 1
%FIR Width (Full Calculation Width Before Output Width Adjust) :37
%-----------------------------------------------------------------------------------------------------------
%MegaWizard Scaled Coefficient Values
function output = lp_fir_mlab(stimulation bank);
coef_matrix_in= [25772596265227442872303632353469373840404376474451435573603265207035757781438732934399751062611294119781267613386141071483615573163151706117808185551930020041207762150422223229302362524305249692561526241268472743027989285232903029509299593037930768311253144831738319933221232396325443265532729327673276732729326553254432396322123199331738314483112530768303792995929509290302852327989274302684726241256152496924305236252293022223215042077620041193001855517808170611631515573148361410713386126761197811294106269975934387328143757770356520603255735143474443764040373834693235303628722744265225962577];
INTER_FACTOR = 1;
DECI_FACTOR = 1;
MSB_RM = 2;
MSB_TYPE = 0;
LSB_RM = 0;
LSB_TYPE = 0;
FIR_WIDTH = 37 + MSB_RM + LSB_RM;
OUT_WIDTH = 37 ; %37
DATA_WIDTH = 16;
% check size of inputs.
DY = size(stimulation 2);
CY = size(coef_matrix_in 2);
if CY ~= DY * INTER_FACTOR
fprintf(‘WARNING : coef_matrix size and input data size does not match
‘);
end
%fill coef_matrix to length of data with the latest coef set
if CY < DY * INTER_FACTOR
coef_matrix = coef_matrix_in(bank + 1 :);
end
% check if input is integer
int_sti=round(stimulation);
T = (int_sti ~= stimulation);
if (max(T)~=0)
fprintf(‘WARNING : Integer Input Expected: Rounding Fractional Input to Nearest Integer...
‘);
end
%Input overflow check
%set max/min for signed
maxdat = 2^(DATA_WIDTH-1)-1;
mindat = -maxdat-1;
%Saturating Input Value
a=find(int_sti>maxdat);
b=find(int_sti if (~isempty(a)|~isempty(b))
fprintf(‘WARNING : Input Amplitude Exceeds MAXIMUM/MINIMUM allowable values - saturating input values...
‘);
lena = length (a);
lenb = length (b);
for i =1:lena
fprintf(‘%d > %d
‘ int_sti(a(i)) maxdat);
int_sti(a(i)) = maxdat;
end
for i =1:lenb
fprintf(‘%d < %d
‘ int_sti(b(i)) mindat);
int_sti(b(i)) = mindat;
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2019-03-02 11:40 bpsk7.0.PN
文件 469 2019-02-27 22:52 bpsk7.0.PNAD.V
文件 412 2019-01-05 23:21 bpsk7.0.PNAD.V.bak
文件 1083 2019-01-01 15:52 bpsk7.0.PNpsk.bdf
文件 2646 2018-12-31 21:33 bpsk7.0.PNpsk.bsf
文件 1441 2019-01-05 18:42 bpsk7.0.PNpsk.mif
文件 1339 2018-12-31 17:32 bpsk7.0.PNpsk.qpf
文件 13884 2019-03-02 11:40 bpsk7.0.PNpsk.qsf
文件 3944 2019-03-02 11:40 bpsk7.0.PNpsk.qws
文件 3007 2019-03-01 14:36 bpsk7.0.PNpsk.v
文件 3095 2019-01-07 10:53 bpsk7.0.PNpsk.v.bak
文件 55624 2019-01-18 14:05 bpsk7.0.PNpsk_assignment_defaults.qdf
文件 1097 2019-03-02 07:38 bpsk7.0.PNpsk_nativeli
文件 4875 2019-03-02 07:37 bpsk7.0.PNc5_pin_model_dump.txt
文件 3988 2019-01-18 08:41 bpsk7.0.PNclk_pill.bsf
文件 286 2019-01-18 08:41 bpsk7.0.PNclk_pill.cmp
文件 491 2019-01-18 08:41 bpsk7.0.PNclk_pill.ppf
文件 54648 2019-01-18 08:41 bpsk7.0.PNclk_pill.qip
文件 514 2019-01-18 08:41 bpsk7.0.PNclk_pill.sip
文件 187 2019-01-18 08:41 bpsk7.0.PNclk_pill.spd
文件 17438 2019-01-18 08:41 bpsk7.0.PNclk_pill.v
文件 25 2019-01-18 08:41 bpsk7.0.PNclk_pill_sim.f
文件 2633 2018-12-31 21:36 bpsk7.0.PNController.bsf
文件 1707 2019-02-26 13:33 bpsk7.0.PNController.v
文件 0 2018-12-31 18:43 bpsk7.0.PNController.v.bak
文件 2158 2018-12-31 21:36 bpsk7.0.PNcounter.bsf
文件 669 2019-02-26 00:40 bpsk7.0.PNcounter.v
文件 0 2018-12-31 18:04 bpsk7.0.PNcounter.v.bak
文件 0 2019-02-26 13:30 bpsk7.0.PNDA.v
文件 0 2019-01-07 10:15 bpsk7.0.PNDA.v.bak
目录 0 2019-03-02 11:40 bpsk7.0.PNdb
............此处省略786个文件信息
版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件举报,一经查实,本站将立刻删除。
评论列表(条)