%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Altera NCO Compiler version 2.3.1
% file : nco_tb.m
%
% Description : The following Matlab testbench excercises the NCO model nco_model.m
% generated by Altera's NCO Compiler Megacore and outputs the sine and cosine waveforms
% to the variables sin_out and cos_out respectively
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Parameter description
% N : the length of input and output arrays
% fs : the desired sampling rate. For Multi-channel NCO's the channelized sample rate is fs/M
% ehre M is the number of channels
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
N=2048*1;
fs = 5.0E7;
% Input arrays
% phi_inc_i : input phase increment : Length N (required)
phi_inc_i = 171798692.*ones(1,N);
% freq_mod_i : frequency modulation input : Length N (optional)
freq_mod_i = zeros(1,N);
% phase_mod_i : phase modulation input : Length N (optional)
phase_mod_i = zeros(1,N);
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% function call to generated nco function
[sin_out,cos_out] = nco_model(phi_inc_i,phase_mod_i,freq_mod_i);
fid_s = fopen('fsin_o_nco_matlab.txt','w');
for i=1:N
fprintf(fid_s,'%f\n',sin_out(i));
end
% Plot Channel 0 Time-Domain Output
xvalst = (0:1/fs:((N/1)-1)/fs);
figure,stairs(xvalst,sin_out(1:1:N),'r');
title ('Time-Domain Plot of NCO Channel 0 Output');
grid on;
zoom on;
xlabel ('Time');
ylabel ('Amplitude');
ncofftwinplot(sin_out(1:1:N),fs,0,'r');
没有合适的资源?快使用搜索试试~ 我知道了~
FM.rar_FM VHDL_FM调频_quartus FM_vhdl FM_vhdl语言调频
共175个文件
tdf:61个
vhd:22个
bsf:18个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 179 浏览量
2022-09-24
17:13:34
上传
评论
收藏 463KB RAR 举报
温馨提示
在quartus ii下完成的用VHDL语言编写的数字式调频系统
资源推荐
资源详情
资源评论
收起资源包目录
FM.rar_FM VHDL_FM调频_quartus FM_vhdl FM_vhdl语言调频 (175个子文件)
FM.bdf 25KB
FM_nco.bdf 16KB
FM_nco_new.bdf 16KB
intergate_test.bdf 7KB
ASI1.bsf 3KB
nco.bsf 3KB
altpll0.bsf 3KB
lpm_add_sub11.bsf 3KB
lpm_add_sub1.bsf 2KB
adder1.bsf 2KB
adder.bsf 2KB
dds_rom_12bit.bsf 2KB
source_sine.bsf 2KB
lpm_dff0.bsf 2KB
index_control_for_new_intergater.bsf 2KB
index_control.bsf 2KB
counter.bsf 2KB
index_control_addonly.bsf 2KB
length_transform.bsf 2KB
truncation.bsf 2KB
div_2.bsf 2KB
div_10.bsf 2KB
FM.cdf 298B
ASI1.cmp 2KB
nco.cmp 2KB
lpm_add_sub1.cmp 1014B
adder1.cmp 1011B
lpm_add_sub11.cmp 1000B
dds_rom_12bit.cmp 999B
source_sine.cmp 996B
adder.cmp 968B
lpm_dff0.cmp 958B
counter.cmp 912B
altpll0.cmp 907B
FM.db_info 137B
nco_wave.do 991B
FM.done 26B
FM.dpf 239B
nco.html 4KB
ASI1.html 3KB
dds_rom_12bit_waveforms.html 1KB
altpll0_waveforms.html 441B
nco_st.inc 1KB
lpm_add_sub1.inc 892B
lpm_add_sub11.inc 891B
dds_rom_12bit.inc 890B
adder1.inc 889B
source_sine.inc 887B
adder.inc 870B
lpm_dff0.inc 867B
altpll0.inc 853B
counter.inc 852B
dds_rom_12bit_wave0.jpg 105KB
altpll0_wave0.jpg 47KB
nco_tb.m 2KB
nco_model.m 1KB
dds_rom.mif 11KB
sinrom.mif 362B
FM.pin 89KB
FM.pof 1MB
altpll0.ppf 352B
FM_assignment_defaults.qdf 37KB
altpll0.qip 623B
dds_rom_12bit.qip 471B
source_sine.qip 463B
prev_cmp_FM.qmsg 82KB
prev_cmp_FM.fit.qmsg 82KB
prev_cmp_FM.map.qmsg 81KB
prev_cmp_FM.asm.qmsg 2KB
FM.qpf 900B
FM.qsf 4KB
FM.sim.rpt 4.05MB
FM.tan.rpt 509KB
FM.fit.rpt 260KB
FM.map.rpt 127KB
FM.flow.rpt 7KB
FM.asm.rpt 7KB
FM.fit.smsg 629B
FM.sof 944KB
FM.tan.summary 4KB
FM.fit.summary 488B
FM.map.summary 362B
nco_vho_msim.tcl 1KB
nco_vo_msim.tcl 480B
altsyncram_m4l1.tdf 97KB
altsyncram_r4l1.tdf 89KB
altsyncram_o4l1.tdf 88KB
altsyncram_qro3.tdf 86KB
altsyncram_q4l1.tdf 79KB
altsyncram_c4l1.tdf 62KB
altsyncram_8981.tdf 19KB
mux_cnc.tdf 19KB
altsyncram_sa71.tdf 11KB
altsyncram_4t71.tdf 10KB
altsyncram_pra1.tdf 9KB
altsyncram_1771.tdf 9KB
altsyncram_9571.tdf 9KB
altsyncram_j271.tdf 9KB
altsyncram_9p71.tdf 8KB
add_sub_mhf.tdf 7KB
共 175 条
- 1
- 2
资源评论
御道御小黑
- 粉丝: 62
- 资源: 1万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 国家开放大学电大化工制图形考任务答案
- 基于python+sqlite实现知识图谱的农作物病虫害防治智能问答平台
- 移动通信系统ofdm的STO和CFO matlab
- 2024年全国职业院校技能大赛集成电路应用开发赛项竞赛试题(03卷)
- 基于CRT(远程访问终端)+ARM(GEC)+Linux+C语言的视频监控系统源码+文档说明.zip
- 用vue.js开发微信app
- CentOS-7-x86-64-Minimal-2009-迷你版系统镜像
- wireshark抓包软件
- Cookie Maker 工作室
- Screenshot_20240605_211604_com.netease.edu.ucmooc.jpg
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功