当前位置:网站首页>modelsim和quartus联合仿真PLL FIFO等IP核
modelsim和quartus联合仿真PLL FIFO等IP核
2022-07-25 19:00:00 【丹霞山下的FPGA少年】
联合仿真步骤:
1、quartus建立一个工程**
**
module pll(
input clk,
input rst_n,
output clk_45p ,
output clk_90p ,
output clk_135p ,
output clk_180p ,
output clk_n45p ,
output clk_n90p ,
output clk_n135p ,
output clk_n180p
);
pll_clk u_pll_clk(
.refclk (clk ),// refclk.clk
.rst (~rst_n ),// reset.reset
.outclk_0(clk_45p ),// outclk0.clk
.outclk_1(clk_90p ),// outclk1.clk
.outclk_2(clk_135p ),// outclk2.clk
.outclk_3(clk_180p ),// outclk3.clk
.outclk_4(clk_n45p ),// outclk4.clk
.outclk_5(clk_n90p ),// outclk5.clk
.outclk_6(clk_n135p),// outclk6.clk
.outclk_7(clk_n180p) // outclk7.clk
);
endmodule
2、建立好工程后,编译工程
3、编写测试文件
`timescale 1 ns/1 ns
module tb_pll();
//时钟和复位
reg clk ;
reg rst_n;
//时钟周期,单位为ns,可在此修改时钟周期。
parameter CYCLE = 10;
//复位时间,此时表示复位3个时钟周期的时间。
parameter RST_TIME = 20 ;
pll u_pll(
.clk (clk ),
.rst_n (rst_n ),
.clk_45p (clk_45p ),
.clk_90p (clk_90p ),
.clk_135p (clk_135p ),
.clk_180p (clk_180p ),
.clk_n45p (clk_n45p ),
.clk_n90p (clk_n90p ),
.clk_n135p(clk_n135p),
.clk_n180p(clk_n180p)
);
//生成本地时钟50M
initial begin
clk = 0;
forever
#(CYCLE/2)
clk=~clk;
end
//产生复位信号
initial begin
rst_n = 1;
#2;
rst_n = 0;
#(CYCLE*RST_TIME);
rst_n = 1;
end
endmodule
4、选择仿真器和仿真文件



5、运行测试
6、出结果
pll的仿真结果
bt1120接口FIFO仿真结果

边栏推荐
- HTTP缓存通天篇,可能有你想要的
- F5: Six capabilities required for enterprise digital transformation
- 如何创建一个有效的帮助文档?
- 歌曲转调之后和弦如何转换
- What is hpapaas platform?
- 浅析IM即时通讯开发出现上网卡顿?网络掉线?
- Single arm routing experiment demonstration (Huawei router device configuration)
- 上半年出货量已超去年全年,森思泰克毫米波雷达“夺食”国际巨头
- Qtimgui compilation
- #yyds干货盘点# 面试必刷TOP101:反转链表
猜你喜欢

2022年IAA行业品类发展洞察系列报告·第二期

人人可参与开源活动正式上线,诚邀您来体验!

2022 IAA industry category development insight series report - phase II

Deng Qinglin, a technical expert of Alibaba cloud: Best Practices for disaster recovery and remote multi activity across availability zones on cloud

A brief history from object detection to image segmentation

Yyds dry inventory interview must brush top101: reverse linked list

How to design product help center? The following points cannot be ignored

CircleIndicator组件,使指示器风格更加多样化

华为交换机系统软件升级和安全漏洞修复教程

阿里云技术专家郝晨栋:云上可观测能力——问题的发现与定位实践
随机推荐
【iniparser】项目配置工具iniparser的简单使用
SQL Server 2019 安装教程
kubernetes RBAC
GDB help
银行理财子公司蓄力布局A股;现金管理类理财产品整改加速
Pymoo学习 (7):并行化Parallelization
The understanding of domain adaptation in transfer learning and the introduction of three technologies
A brief history from object detection to image segmentation
阿里云技术专家邓青琳:云上跨可用区容灾和异地多活最佳实践
Circulaindicator component, which makes the indicator style more diversified
"Wdsr-3" Penglai pharmaceutical Bureau solution
这种动态规划你见过吗——状态机动态规划之股票问题(上)
「Wdsr-3」蓬莱药局 题解
C 调的满级和玄
一个免费的镜像下载仓库网站
ES6 implements the observer mode through proxy and reflection
Weak network test tool -qnet
软件测试(思维导图)
A free image download warehouse website
HTTP cache tongtianpian, there may be something you want