Professional Documents
Culture Documents
1
Machine Translated by Google
Table of contents
2
Machine Translated by Google
This document implements creating a new FPGA development project under VIVADO, and then calling the clock phase-locked loop IP through the input 50M
The clock generates a clock source of 100M or even higher. While learning the use of the 7 series always phase-locked loop IP, learn how to use it under VIVADO
Call the IP core. Achievement effect: PLL clock output, and finally drive the water lamp module. For the method of creating a new project, please refer to the document "Development Software
Software Installation and Introduction/Introduction to VIVADO and New ZYNQ Project Tutorial under the Software".
Speed->7010 selection-1,7020
Click Next->
NewProjectSummary (new project overview) Confirm project information, type selection, etc., click Finish to complete
ÿ Click Add Sources in the project management bar to add a new file: pll_clock_top.v, module name pll_clock_top, after the addition is
completed, click IP Catalog under PROJECT MANAGER in the project management bar:
3
Machine Translated by Google
Call the IP core. We adjust the window layout and maximize the newly pop-up IP Catalog window. When
using VIVADO, readers should familiarize themselves with the software interface. In many cases, the interface
layout, toolbar, and function navigation interface are somewhat different from the traditional ones. What's novel, just
use it more. We enter clock in the IP Catalog, find the clocking wizard on the pull-down interface and double-click it
4
Machine Translated by Google
The output clock configuration is as follows, only output one clock, 100M frequency:
Pull down the interface on the right, set the reset signal as low effective at the bottom, and finally click OK to complete the configuration:
5
Machine Translated by Google
When we go back to the Sources interface, we can see that the IP core of clk_wiz_0 has been added to Design Sources. Click the arrow of
6
Machine Translated by Google
A top-level .v file of a clock module appears under the IP core of Design Sources under Sources. we double click
Open it, you can see the name of the module and the interface signal. We instantiate this clock module into pll_clock_top.v.
7
Machine Translated by Google
module pll_clock_top(
output reg [3:0] led, // LED4 --- LED1, 1 on, 0 off input
clk, // FPGA PLreset
clock,input
pin 50 MHz input rst_n // FPGA
);
wire clk_out1;
parameter CLOCK_FREQ =100000000;
parameter COUNTER_MAX_CNT=CLOCK_FREQ/2-1;//change time 0.5s
else begin
cnt <= cnt + 1'b1;
end
end
Synthesize first, then bind pins, and save the pin constraint file name pll_test_top. Finally, the comprehensive layout and routing generates
a bit file, which we download to the board. We can see that the running water lamp is twice as fast as our previous experiment. Because our clock is
multiplied at 100M speed, while the clock of the running water lamp used the external crystal oscillator directly, and the speed was 50M.