-
Notifications
You must be signed in to change notification settings - Fork 2
/
clockman.v
55 lines (46 loc) · 1.52 KB
/
clockman.v
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
//--------------------------------------------------------------------------------
// clockman.vhd
//
// Author: Michael "Mr. Sump" Poppitz
//
// Details: http://www.sump.org/projects/analyzer/
//
// This is only a wrapper for Xilinx' DCM component so it doesn't
// have to go in the main code and can be replaced more easily.
//
// Creates 100Mhz core clk0 from 50Mhz input reference clock.
//
//--------------------------------------------------------------------------------
//
// 12/29/2010 - Verilog Version created by Ian Davis - mygizmos.org
//
`timescale 1ns/100ps
module pll_wrapper (clkin, clk0);
input clkin; // clock input
output clk0; // double clock rate output
parameter TRUE = 1'b1;
parameter FALSE = 1'b0;
wire clkin;
wire clk0;
wire clkfb;
wire clkfbbuf;
// DCM: Digital Clock Manager Circuit for Virtex-II/II-Pro and Spartan-3/3E
// Xilinx HDL Language Template version 8.1i
DCM DCM_baseClock (
.CLKIN(clkin), // Clock input (from IBUFG, BUFG or DCM)
.PSCLK(1'b 0), // Dynamic phase adjust clock input
.PSEN(1'b 0), // Dynamic phase adjust enable input
.PSINCDEC(1'b 0), // Dynamic phase adjust increment/decrement
.RST(1'b 0), // DCM asynchronous reset input
.CLK2X(clk0),
.CLK0(clkfb),
.CLKFB(clkfbbuf));
// synthesis attribute declarations
/* synopsys attribute
DESKEW_ADJUST "SYSTEM_SYNCHRONOUS"
DLL_FREQUENCY_MODE "LOW"
DUTY_CYCLE_CORRECTION "TRUE"
STARTUP_WAIT "TRUE"
*/
BUFG BUFG_clkfb(.I(clkfb), .O(clkfbbuf));
endmodule