当前位置:网站首页>Modelsim and quartus jointly simulate PLL FIFO and other IP cores
Modelsim and quartus jointly simulate PLL FIFO and other IP cores
2022-07-25 19:05:00 【FPGA teenagers at the foot of Danxia Mountain】
Joint simulation steps :
1、quartus Build a project **
**
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、 After setting up the project , Compiler Engineering 
3、 Write test files 
`timescale 1 ns/1 ns
module tb_pll();
// Clock and reset
reg clk ;
reg rst_n;
// Clock cycle , Unit is ns, You can modify the clock cycle here .
parameter CYCLE = 10;
// Reset time , At this time, it means reset 3 The time of a clock cycle .
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)
);
// Generate local clock 50M
initial begin
clk = 0;
forever
#(CYCLE/2)
clk=~clk;
end
// Generate reset signal
initial begin
rst_n = 1;
#2;
rst_n = 0;
#(CYCLE*RST_TIME);
rst_n = 1;
end
endmodule
4、 Select emulator and simulation file 



5、 Run the test 
6、 Produce results
pll Simulation results 
bt1120 Interface FIFO Simulation results 

边栏推荐
- Share six practical applet plug-ins
- Interface automation test platform fasterrunner series (II) - function module
- Gan, why ".Length! == 3??
- The difference between PHP equal to = = and identity equal to = = =
- Yyds dry inventory interview must brush top101: reverse linked list
- qt exec和show的区别
- 怎么禁止使用360浏览器(怎么才能把自带的浏览器停用)
- JS 基本类型 引用类型 深/浅克隆复制
- SQL 实现 Excel 的10个常用功能,附面试原题
- Is Cinda securities a state-owned enterprise? Is it safe to open an account in Cinda securities?
猜你喜欢
随机推荐
How to design product help center? The following points cannot be ignored
基于Mysql-Exporter监控Mysql
Single arm routing experiment demonstration (Huawei router device configuration)
QT compiled successfully, but the program could not run
Yyds dry inventory interview must brush top101: reverse linked list
Typescript object proxy use
How to change the chords after the tune of the song is changed
阿里云技术专家郝晨栋:云上可观测能力——问题的发现与定位实践
Basic mode of music theory
【小程序开发】你了解小程序开发吗?
乐理基础 调式
Yarn 安装与使用教程[通俗易懂]
【小程序开发】常用组件及基本使用详解
[web technology] 1391 page visualization building tool, previous life and present life
The Yellow Crane Tower has a super shocking perspective. You've never seen such a VR panorama!
Alibaba cloud technology expert Qin long: reliability assurance is a must - how to carry out chaos engineering on the cloud?
App test point (mind map)
Detailed explanation of Bluetooth protocol (what is Bluetooth)
srec_cat 常用参数的使用
How to prohibit the use of 360 browser (how to disable the built-in browser)








