Initial commit of OpenSPARC T2 design and verification files.
[OpenSPARC-T2-DV] / design / sys / iop / tds / rtl / tds_l2l1clk_io2x.v
CommitLineData
86530b38
AT
1// ========== Copyright Header Begin ==========================================
2//
3// OpenSPARC T2 Processor File: tds_l2l1clk_io2x.v
4// Copyright (C) 1995-2007 Sun Microsystems, Inc. All Rights Reserved
5// 4150 Network Circle, Santa Clara, California 95054, U.S.A.
6//
7// * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
8//
9// This program is free software; you can redistribute it and/or modify
10// it under the terms of the GNU General Public License as published by
11// the Free Software Foundation; version 2 of the License.
12//
13// This program is distributed in the hope that it will be useful,
14// but WITHOUT ANY WARRANTY; without even the implied warranty of
15// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16// GNU General Public License for more details.
17//
18// You should have received a copy of the GNU General Public License
19// along with this program; if not, write to the Free Software
20// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
21//
22// For the avoidance of doubt, and except that if any non-GPL license
23// choice is available it will apply instead, Sun elects to use only
24// the General Public License version 2 (GPLv2) at this time for any
25// software where a choice of GPL license versions is made
26// available with the language indicating that GPLv2 or any later version
27// may be used, or where a choice of which version of the GPL is applied is
28// otherwise unspecified.
29//
30// Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
31// CA 95054 USA or visit www.sun.com if you need additional information or
32// have any questions.
33//
34// ========== Copyright Header End ============================================
35///////////////////////////////////////////////////////////////////////////////
36// tds_l2l1clk_io
37///////////////////////////////////////////////////////////////////////////////
38
39module tds_l2l1clk_io2x (
40 l1clk,
41 aclk,
42 bclk,
43 scan_out,
44 pce_ov,
45 aclk_wmr,
46 wmr_protect,
47 wmr_,
48 por_,
49 cmp_slow_sync_en,
50 slow_cmp_sync_en,
51 tcu_clk_stop,
52 tcu_pce_ov,
53 rst_wmr_protect,
54 rst_wmr_,
55 rst_por_,
56// ccu_cmp_slow_sync_en,
57// ccu_slow_cmp_sync_en,
58 tcu_div_bypass,
59 ccu_div_ph,
60 cluster_div_en,
61 gclk,
62 cluster_arst_l,
63 clk_ext,
64 ccu_serdes_dtm,
65 tcu_aclk,
66 tcu_bclk,
67 scan_en,
68 scan_in
69);
70
71
72// **************************
73// port declaration
74// **************************
75
76// clock & test out
77output l1clk; // assume we do not need aclk, bclk outputs
78output aclk; // buffered version of aclk
79output bclk; // buffered version of bclk
80output scan_out; // unused as of today - feb 10, 05
81output aclk_wmr;
82
83// pipelined out
84output pce_ov; // pce override to l1 header
85output wmr_protect; // warm reset protect
86output wmr_; // warm reset (active low)
87output por_; // power-on-reset
88output cmp_slow_sync_en; // cmp->slow clk sync pulse
89output slow_cmp_sync_en; // slow->cmp clk sync pulse
90
91// ctrl in (for pipelining)
92input tcu_clk_stop;
93input tcu_pce_ov;
94input rst_wmr_protect;
95input rst_wmr_;
96input rst_por_;
97// input ccu_cmp_slow_sync_en;
98// input ccu_slow_cmp_sync_en;
99// ctrl in (for clock gen)
100input tcu_div_bypass; // bypasses clk divider to mux in ext clk
101input ccu_div_ph; // phase signal from ccu (div/4 or div/2)
102input cluster_div_en; // if enabled, l2clk is divided down
103
104// clock & test in
105input gclk; // global clk - this is either cmp or dr
106input cluster_arst_l;
107input ccu_serdes_dtm;
108input clk_ext; // external clk muxed in for ioclk bypass
109input scan_en; // unused as of today - feb 10, 05
110input scan_in; // unused as of today - feb 10, 05
111input tcu_aclk;
112input tcu_bclk;
113
114
115// **************************
116// wire declaration
117// **************************
118wire io2xl2clk;
119wire aclk;
120wire bclk;
121wire scan_out;
122wire aclk_wmr;
123wire pce_ov;
124wire wmr_protect;
125wire wmr_;
126wire por_;
127wire cmp_slow_sync_en;
128wire slow_cmp_sync_en;
129wire tcu_clk_stop;
130wire tcu_pce_ov;
131wire rst_wmr_protect;
132wire rst_wmr_;
133wire rst_por_;
134// wire ccu_cmp_slow_sync_en;
135// wire ccu_slow_cmp_sync_en;
136wire tcu_div_bypass;
137wire ccu_div_ph;
138wire cluster_div_en;
139wire gclk;
140wire cluster_arst_l;
141wire clk_ext;
142wire ccu_serdes_dtm;
143wire scan_en;
144wire scan_in;
145wire tcu_aclk;
146wire tcu_bclk;
147
148// **************************
149// instantiations
150// **************************
151 clkgen_tds_io2x clkgen_tds_io2x (
152
153 .l2clk(io2xl2clk),
154 .aclk(aclk),
155 .bclk(bclk),
156 .scan_out(scan_out),
157 .pce_ov(pce_ov),
158 .aclk_wmr(aclk_wmr),
159 .wmr_protect(wmr_protect),
160 .wmr_(wmr_),
161 .por_(por_),
162 .cmp_slow_sync_en(cmp_slow_sync_en),
163 .slow_cmp_sync_en(slow_cmp_sync_en),
164 .tcu_clk_stop(tcu_clk_stop),
165 .tcu_pce_ov(tcu_pce_ov),
166 .rst_wmr_protect(rst_wmr_protect),
167 .rst_wmr_(rst_wmr_),
168 .rst_por_(rst_por_),
169// .ccu_cmp_slow_sync_en(ccu_cmp_slow_sync_en),
170// .ccu_slow_cmp_sync_en(ccu_slow_cmp_sync_en),
171 .ccu_cmp_slow_sync_en(1'b0),
172 .ccu_slow_cmp_sync_en(1'b0),
173 .tcu_div_bypass(tcu_div_bypass),
174 .ccu_div_ph(ccu_div_ph),
175 .cluster_div_en(cluster_div_en),
176 .gclk(gclk),
177 .cluster_arst_l(cluster_arst_l),
178
179 .clk_ext(clk_ext),
180 .ccu_serdes_dtm(ccu_serdes_dtm),
181
182 .tcu_aclk(tcu_aclk),
183 .tcu_bclk(tcu_bclk),
184 .scan_en(scan_en),
185 .scan_in(scan_in) );
186
187
188 cl_a1_l1hdr_8x tds_l1clk_1 ( .l2clk(io2xl2clk), .se(scan_en), .pce(1'b1),
189 .pce_ov(pce_ov), .stop(tcu_clk_stop), .l1clk(l1clk) );
190
191
192endmodule
193