第一范文网 - 专业文章范例文档资料分享平台

基于VHDL的2FSK调制与解调

来源:用户分享 时间:2025/5/15 14:36:09 本文由loading 分享 下载这篇文档手机版
说明:文章内容仅供预览,部分内容可能不全,需要完整文档或者需要复制内容,请下载word后使用。下载word有问题请添加微信号:xxxxxxx或QQ:xxxxxx 处理(尽可能给您提供完整文档),感谢您的支持与谅解。

河北大学工商学院2012届本科生毕业论文(设计)

附 录

调制部分程序 libraryieee;

useieee.std_logic_arith.all; useieee.std_logic_1164.all; useieee.std_logic_unsigned.all; entityPPPL_FSKis port(clk:instd_logic; start:instd_logic; x:instd_logic; y:outstd_logic); endPPPL_FSK;

architecturebehavofPPPL_FSKis signalq1:integerrange0to15; signalq2:integerrange0to3; signalf1,f2:std_logic; begin process(clk) begin

ifclk'eventandclk='1'then ifstart='0'thenq1<=0;

elsifq1<=7thenf1<='1';q1<=q1+1;

elsifq1=15thenf1<='0';q1<=0; elsef1<='0';q1<=q1+1; endif endif; endprocess; process(clk) begin

ifclk'eventandclk='1'then ifstart='0'thenq2<=0;

elsifq2<=0thenf2<='1';q2<=q2+1; elsifq2=1thenf2<='0';q2<=0;

21

河北大学工商学院2012届本科生毕业论文(设计)

elsef2<='0';q2<=q2+1; endif; endif; endprocess; process(clk,x) begin

ifclk'eventandclk='1'then ifx='0'theny<=f1; elsey<=f2; endif; endif; endprocess; endbehav;

解调部分程序

libraryieee;

useieee.std_logic_arith.all; useieee.std_logic_1164.all; useieee.std_logic_unsigned.all; entityDL_FSKis port(clk:instd_logic; start:instd_logic; x:instd_logic; y:outstd_logic); endDL_FSK;

architecturebehavofDL_FSKis signalq:integerrange0to15; signalxx:std_logic; signalm:integerrange0to5; begin process(clk) begin

ifclk'eventandclk='1'thenxx<=x; ifstart='0'thenq<=0; elsifq=15thenq<=0;

22

河北大学工商学院2012届本科生毕业论文(设计)

elseq<=q+1; endif; endif; endprocess; process(xx,q) begin

ifq=15thenm<=0; elsifq=10then ifm<=3theny<='0'; elsey<='1'; endif;

elsifxx'eventandxx='1'thenm<=m+1; endif; endprocess; endbehav;

23

搜索更多关于: 基于VHDL的2FSK调制与解调 的文档
基于VHDL的2FSK调制与解调.doc 将本文的Word文档下载到电脑,方便复制、编辑、收藏和打印
本文链接:https://www.diyifanwen.net/c255628d01062a888ee7k_6.html(转载请注明文章来源)
热门推荐
Copyright © 2012-2023 第一范文网 版权所有 免责声明 | 联系我们
声明 :本网站尊重并保护知识产权,根据《信息网络传播权保护条例》,如果我们转载的作品侵犯了您的权利,请在一个月内通知我们,我们会及时删除。
客服QQ:xxxxxx 邮箱:xxxxxx@qq.com
渝ICP备2023013149号
Top