当前位置:网站首页>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缓存通天篇,可能有你想要的
- SQL Server 2019 安装教程
- kubernetes RBAC
- 从目标检测到图像分割简要发展史
- Interface automation test platform fasterrunner series (III) - operation examples
- Osmosis extends its cross chain footprint to poca through integration with axelar and moonbeam
- Weak network test tool -qnet
- 如何创建一个有效的帮助文档?
- 终极套娃 2.0 | 云原生交付的封装
- Ultimate doll 2.0 | cloud native delivery package
猜你喜欢

果链“围城”:傍上苹果,是一场甜蜜与苦楚交错的旅途

Alibaba cloud technology expert Qin long: reliability assurance is a must - how to carry out chaos engineering on the cloud?

Process communication (Systemv communication mode: shared memory, message queue, semaphore)

HTTP cache tongtianpian, there may be something you want

Add a little surprise to life and be a prototype designer of creative life -- sharing with X contestants in the programming challenge

Dachang cloud business adjustment, a new round of war turn

Yyds dry inventory interview must brush top101: reverse linked list

Analysis of the internet jam in IM development? Network disconnection?

SQL 实现 Excel 的10个常用功能,附面试原题

Baklib: make excellent product instruction manual
随机推荐
How to design product help center? The following points cannot be ignored
With a market value of 30billion yuan, the largest IPO in Europe in the past decade was re launched on the New York Stock Exchange
Fruit chain "siege": it's a journey of sweetness and bitterness next to apples
"Wdsr-3" Penglai pharmaceutical Bureau solution
Interface automation test platform fasterrunner series (II) - function module
常用的开发软件下载地址
有孚网络受邀参加2022全国CIO大会并荣获“CIO信赖品牌”称号
Youth, oh, youth
阿里云技术专家秦隆:可靠性保障必备——云上如何进行混沌工程?
A brief history from object detection to image segmentation
Virtual machine VMware installation steps (how to install software in virtual machine)
这种动态规划你见过吗——状态机动态规划之股票问题(上)
【Web技术】1391- 页面可视化搭建工具前生今世
Deng Qinglin, a technical expert of Alibaba cloud: Best Practices for disaster recovery and remote multi activity across availability zones on cloud
[cloud native kubernetes] management of secret storage objects under kubernetes cluster
基础乐理之音程的度数
600000 pieces of data are made from March 1 to March 31. Videodate requires starting time from 00:00 to 24:00 on March 1 to 31, which is only for notes
[applet development] page navigation details
基于Mysql-Exporter监控Mysql
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