当前位置:网站首页>PLL of IP core
PLL of IP core
2022-07-27 06:20:00 【Three assassins】
PLL IP Introduction to nuclear

PLL Schematic diagram of structural model
PLL frequency doubling

PLL frequency division

PLL Basic configuration











PLL IP Kernel call
pll_ip pll_ip_inst (
.inclk0 ( inclk0_sig ),
.c0 ( c0_sig ),
.c1 ( c1_sig ),
.c2 ( c2_sig ),
.c3 ( c3_sig ),
.locked ( locked_sig )
);
The following are instantiations PLL IP Core and application code writing
module pll
(
input wire sys_clk, // The system clock 50MHz
input wire sys_rst_n,
output wire clk_mul_2, // The system clock passes 2 Clock after frequency doubling
output wire clk_div, // The system clock passes 2 The clock after frequency division
output wire clk_pha_90, // The system clock is phase shifted 90° After the clock
output wire clk_duc_20, // The system clock becomes duty cycle 20% The clock of
output reg [1:0] cnt,
output wire locked // Check whether the PLL is locked , The output clock is stable only when the signal is high
);
pll_ip pll_ip_inst (
.inclk0 ( sys_clk ),
.c0 ( clk_mul_2 ),
.c1 ( clk_div ),
.c2 ( clk_pha_90 ),
.c3 ( clk_duc_20 ),
.locked ( locked )
);
[email protected](posedge clk_div or negedge sys_rst_n)
if(sys_rst_n == 1'b0)
cnt <= 2'd0;
else
cnt <= cnt + 1'b1;
endmodule
PLL IP Nuclear simulation
`timescale 1ns/1ns
module tb_pll();
reg sys_clk;
wire clk_mul_2;
wire clk_div;
wire clk_pha_90;
wire clk_duc_20;
wire locked;
// Initialize the system clock
initial sys_clk = 1'b1;
//sys_clk: Analog system clock , Every time 10ns Level flip once , The period is 20ns, The frequency is 50MHz
always #10 sys_clk = ~sys_clk;
pll pll_inst
(
.sys_clk (sys_clk),
.clk_mul_2 (clk_mul_2),
.clk_div (clk_div),
.clk_pha_90(clk_pha_90),
.clk_duc_20(clk_duc_20),
.locked (locked)
);
endmodule
Then add the prepared simulation file to the project , Conduct simulation , Check the waveform .
边栏推荐
猜你喜欢
Acwing the number of square arrays of one question per day

Learning the operation environment needs to be equipped during software testing

Unable to start program, access denied?

ROM of IP core

OSG environment construction (win10+vs2019)

wireshark图形界面抓包

Reading and writing of file content - data flow

5G网络身份识别---详解5G-GUTI

IP核之RAM

Osg环境搭建(Win10+Vs2019)
随机推荐
Robot navigation
Unityshader depth texture (understanding and problems encountered)
SQL初识
Ulcl function --5gc
文件内容的读写——数据流
5g's past and present life -- a brief introduction to the development of mobile communication
Remote sensing image recognition misclassification under multi class recognition
Callback uses lambda
ROS运行管理之launch文件
无法启动程序,拒绝访问?
非真实感渲染(NPR)论文理解及其复现(Unity) - 《Stylized Highlights for Cartoon Rendering and Animation》
Brief introduction to unity window interface
Dynamic programming for solving problems (2)
Linear progression for face recognition
数据库的索引和事务(重点)
Unity shader overview
SQL novice
Comparison of communication mechanisms
软件测试基础概念篇
软件测试用里篇