当前位置:网站首页>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仿真结果

边栏推荐
- In the first half of the year, the shipment volume has exceeded that of the whole year of last year, and centritec millimeter wave radar has "captured" the international giant
- MES管理系统有什么应用价值
- Alibaba cloud technology expert Qin long: reliability assurance is a must - how to carry out chaos engineering on the cloud?
- srec_cat 常用参数的使用
- The difference between PHP equal to = = and identity equal to = = =
- 「跨链互连智能合约」解读
- 弱网测试工具-QNET
- How to create an effective help document?
- 【云原生之kubernetes】kubernetes集群下Secret存储对象的管理
- With a financing of 200million yuan, the former online bookstore is now closed nationwide, with only 3 stores left in 60 stores
猜你喜欢

The understanding of domain adaptation in transfer learning and the introduction of three technologies

阿里云技术专家秦隆:可靠性保障必备——云上如何进行混沌工程?

Everyone can participate in the official launch of open source activities. We sincerely invite you to experience!

Pymoo学习 (5):收敛性分析

歌曲转调之后和弦如何转换

Circulaindicator component, which makes the indicator style more diversified

SQL Server 2019 安装教程

上半年出货量已超去年全年,森思泰克毫米波雷达“夺食”国际巨头

Real estate enterprises have launched a "war of guarantee"

With 8 years of product experience, I have summarized these practical experience of continuous and efficient research and development
随机推荐
[applet development] page navigation details
The difference between PHP equal to = = and identity equal to = = =
Twitter acquired a public opinion war, which was turned into a child quarrel by musk
Typescript对象代理器Proxy使用
Cross Site Request Forgery in PHP
How to design product help center? The following points cannot be ignored
接口自动化测试平台FasterRunner系列(一)- 简介、安装部署、启动服务、访问地址、配置补充
Virtual machine VMware installation steps (how to install software in virtual machine)
Vc/pe is running towards Qingdao
蓝牙协议详解(蓝牙是什么)
The understanding of domain adaptation in transfer learning and the introduction of three technologies
"Wdsr-3" Penglai pharmaceutical Bureau solution
怎样设计产品帮助中心?以下几点不可忽视
乐理基础 调式
MySQL sub query (selected 20 sub query exercises)
SQL Server 2019 安装教程
淦,为什么 ““ .length !== 3 ??
MySQL子查询篇(精选20道子查询练习题)
Korean AI team plagiarizes shock academia! One tutor with 51 students, or plagiarism recidivist
JMeter performance test actual video (what are the common performance test tools)