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

边栏推荐
- Huawei switch system software upgrade and security vulnerability repair tutorial
- 如何创建一个有效的帮助文档?
- 聊聊sql优化的15个小技巧
- kubernetes RBAC
- Interface automation test platform fasterrunner series (III) - operation examples
- Interface automation test platform fasterrunner series (IV) - continuous integration and solution of multi domain names
- 接口自动化测试平台FasterRunner系列(四)- 持续集成、解决多域名
- 7/24 training log
- Hough transform understanding [easy to understand]
- 【Web技术】1391- 页面可视化搭建工具前生今世
猜你喜欢

Basic mode of music theory

高并发下如何保证数据库和缓存双写一致性?

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

这种动态规划你见过吗——状态机动态规划之股票问题(上)
![[919. Complete binary tree inserter]](/img/d9/15a9af50893db955d9ebb4d7d4e3d1.png)
[919. Complete binary tree inserter]

乐理基础 调式
![[encryption weekly] has the encryption market recovered? The cold winter has not thawed yet! Check the major events in the encryption market last week!](/img/6d/b037208996ce52016d014062deaa1f.jpg)
[encryption weekly] has the encryption market recovered? The cold winter has not thawed yet! Check the major events in the encryption market last week!

MES管理系统有什么应用价值

Based on easycv to reproduce Detr and dab-detr, the correct opening method of object query

Alibaba cloud technology expert haochendong: cloud observability - problem discovery and positioning practice
随机推荐
微软Azure和易观分析联合发布《企业级云原生平台驱动数字化转型》报告
Ping command details [easy to understand]
[encryption weekly] has the encryption market recovered? The cold winter has not thawed yet! Check the major events in the encryption market last week!
一个函数中写多少行代码比较合适呢? 代码整洁之道
浅析IM即时通讯开发出现上网卡顿?网络掉线?
“未来杯”第二届知识图谱锦标赛正式启动
【小程序开发】常用组件及基本使用详解
【加密周报】加密市场有所回温?寒冬仍未解冻!盘点上周加密市场发生的重大事件!
The bank's wealth management subsidiary accumulates power to distribute a shares; The rectification of cash management financial products was accelerated
接口自动化测试平台FasterRunner系列(二)- 功能模块
Communication between processes (pipeline communication)
果链“围城”:傍上苹果,是一场甜蜜与苦楚交错的旅途
一个免费的镜像下载仓库网站
SQL 实现 Excel 的10个常用功能,附面试原题
There are several browser cores. How to upgrade if the browser version is too low
Yarn installation and use tutorial [easy to understand]
Ping 命令详解[通俗易懂]
Software testing process (mind map)
[cloud native kubernetes] management of secret storage objects under kubernetes cluster
软件测试流程(思维导图)