-
Notifications
You must be signed in to change notification settings - Fork 0
/
pll_syn.v
164 lines (141 loc) · 4.27 KB
/
pll_syn.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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
// Copyright (C) 1991-2012 Altera Corporation
// Your use of Altera Corporation's design tools, logic functions
// and other software and tools, and its AMPP partner logic
// functions, and any output files from any of the foregoing
// (including device programming or simulation files), and any
// associated documentation or information are expressly subject
// to the terms and conditions of the Altera Program License
// Subscription Agreement, Altera MegaCore Function License
// Agreement, or other applicable license agreement, including,
// without limitation, that your use is for the sole purpose of
// programming logic devices manufactured by Altera and sold by
// Altera or its authorized distributors. Please refer to the
// applicable agreement for further details.
// VENDOR "Altera"
// PROGRAM "Quartus II 64-Bit"
// VERSION "Version 12.1 Build 177 11/07/2012 SJ Full Version"
// DATE "03/26/2015 15:01:56"
//
// Device: Altera EP2C5T144C6 Package TQFP144
//
//
// This greybox netlist file is for third party Synthesis Tools
// for timing and resource estimation only.
//
module pll (
areset,
inclk0,
c0,
c1,
locked)/* synthesis synthesis_greybox=0 */;
input areset;
input inclk0;
output c0;
output c1;
output locked;
wire gnd;
wire vcc;
wire unknown;
assign gnd = 1'b0;
assign vcc = 1'b1;
// unknown value (1'bx) is not needed for this tool. Default to 1'b0
assign unknown = 1'b0;
wire \altpll_component|_locked ;
wire \altpll_component|_clk0 ;
wire \altpll_component|_clk1 ;
pll_altpll_1 altpll_component(
.locked(\altpll_component|_locked ),
._clk0(\altpll_component|_clk0 ),
._clk1(\altpll_component|_clk1 ),
.areset(areset),
.inclk({gnd,inclk0}));
assign c0 = \altpll_component|_clk0 ;
assign c1 = \altpll_component|_clk1 ;
assign locked = \altpll_component|_locked ;
endmodule
module pll_altpll_1 (
locked,
_clk0,
_clk1,
areset,
inclk)/* synthesis synthesis_greybox=0 */;
output locked;
output _clk0;
output _clk1;
input areset;
input [1:0] inclk;
wire gnd;
wire vcc;
wire unknown;
assign gnd = 1'b0;
assign vcc = 1'b1;
// unknown value (1'bx) is not needed for this tool. Default to 1'b0
assign unknown = 1'b0;
wire \pll~CLK2 ;
wire [2:0] pll_CLK_bus;
assign _clk0 = pll_CLK_bus[0];
assign _clk1 = pll_CLK_bus[1];
assign \pll~CLK2 = pll_CLK_bus[2];
cycloneii_pll pll(
.ena(vcc),
.clkswitch(gnd),
.areset(areset),
.pfdena(vcc),
.testclearlock(gnd),
.sbdin(gnd),
.inclk({gnd,inclk[0]}),
.locked(locked),
.testupout(),
.testdownout(),
.sbdout(),
.clk(pll_CLK_bus));
defparam pll.bandwidth = 0;
defparam pll.bandwidth_type = "low";
defparam pll.c0_high = 3;
defparam pll.c0_initial = 1;
defparam pll.c0_low = 3;
defparam pll.c0_mode = "even";
defparam pll.c0_ph = 0;
defparam pll.c1_high = 6;
defparam pll.c1_initial = 1;
defparam pll.c1_low = 6;
defparam pll.c1_mode = "even";
defparam pll.c1_ph = 0;
defparam pll.c2_mode = "bypass";
defparam pll.c2_ph = 0;
defparam pll.charge_pump_current = 80;
defparam pll.clk0_counter = "c0";
defparam pll.clk0_divide_by = 2;
defparam pll.clk0_duty_cycle = 50;
defparam pll.clk0_multiply_by = 5;
defparam pll.clk0_phase_shift = "0";
defparam pll.clk1_counter = "c1";
defparam pll.clk1_divide_by = 4;
defparam pll.clk1_duty_cycle = 50;
defparam pll.clk1_multiply_by = 5;
defparam pll.clk1_phase_shift = "0";
defparam pll.clk2_duty_cycle = 50;
defparam pll.clk2_phase_shift = "0";
defparam pll.compensate_clock = "clk0";
defparam pll.gate_lock_counter = 0;
defparam pll.gate_lock_signal = "no";
defparam pll.inclk0_input_frequency = 20000;
defparam pll.inclk1_input_frequency = 20000;
defparam pll.invalid_lock_multiplier = 5;
defparam pll.loop_filter_c = 3;
defparam pll.loop_filter_r = " 2.500000";
defparam pll.m = 15;
defparam pll.m_initial = 1;
defparam pll.m_ph = 0;
defparam pll.n = 1;
defparam pll.operation_mode = "normal";
defparam pll.pfd_max = 100000;
defparam pll.pfd_min = 2484;
defparam pll.self_reset_on_gated_loss_lock = "off";
defparam pll.sim_gate_lock_device_behavior = "off";
defparam pll.simulation_type = "timing";
defparam pll.valid_lock_multiplier = 1;
defparam pll.vco_center = 1333;
defparam pll.vco_max = 2000;
defparam pll.vco_min = 1000;
endmodule