Initial commit of OpenSPARC T2 design and verification files.
[OpenSPARC-T2-DV] / design / sys / iop / rdp / rtl / rdp_clkgen_rdp_io2x.v
CommitLineData
86530b38
AT
1// ========== Copyright Header Begin ==========================================
2//
3// OpenSPARC T2 Processor File: rdp_clkgen_rdp_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// This file is a wrapper instantiating the cluster
37// headers and 1 l1clk header
38////////////////////////////////
39module rdp_clkgen_rdp_io2x (
40 array_wr_inhibit,
41 tcu_atpg_mode,
42 tcu_wr_inhibit,
43
44 io2xl2clk,
45 aclk,
46 bclk,
47 scan_out,
48 aclk_wmr,
49 pce_ov,
50 wmr_protect,
51 wmr_,
52 por_,
53 cmp_slow_sync_en,
54 slow_cmp_sync_en,
55 tcu_clk_stop,
56 tcu_pce_ov,
57 rst_wmr_protect,
58 rst_wmr_,
59 rst_por_,
60 cluster_arst_l, // New
61 ccu_cmp_slow_sync_en,
62 ccu_slow_cmp_sync_en,
63 // ccu_serdes_dtm,
64 tcu_div_bypass,
65 ccu_div_ph,
66 cluster_div_en,
67 gclk,
68 // clk_ext,
69 tcu_aclk,
70 tcu_bclk,
71 tcu_scan_en,
72 scan_in
73);
74
75// **************************
76// port declaration
77// **************************
78
79// clock & test out
80output io2xl2clk; // assume we do not need aclk, bclk outputs
81output aclk; // buffered version of aclk
82output bclk; // buffered version of bclk
83output scan_out; // unused as of today - feb 10, 05
84
85// pipelined out
86output aclk_wmr; // New
87output pce_ov; // pce override to l1 header
88output wmr_protect; // warm reset protect
89output wmr_; // warm reset (active low)
90output por_; // power-on-reset
91output cmp_slow_sync_en; // cmp->slow clk sync pulse
92output slow_cmp_sync_en; // slow->cmp clk sync pulse
93
94// ctrl in (for pipelining)
95output array_wr_inhibit; // New
96input tcu_atpg_mode; // New
97input tcu_wr_inhibit; // New
98input tcu_clk_stop;
99input tcu_pce_ov;
100input rst_wmr_protect;
101input rst_wmr_;
102input rst_por_;
103input cluster_arst_l;
104input ccu_cmp_slow_sync_en;
105input ccu_slow_cmp_sync_en;
106// input ccu_serdes_dtm;
107
108// ctrl in (for clock gen)
109input tcu_div_bypass; // bypasses clk divider to mux in ext clk
110input ccu_div_ph; // phase signal from ccu (div/4 or div/2)
111input cluster_div_en; // if enabled, l2clk is divided down
112
113// clock & test in
114input gclk; // global clk - this is either cmp or dr
115// input clk_ext; // external clk muxed in for ioclk bypass
116input tcu_scan_en; // unused as of today - feb 10, 05
117input scan_in; // unused as of today - feb 10, 05
118input tcu_aclk;
119input tcu_bclk;
120
121// **************************
122// wire declaration
123// **************************
124//wire l2clk;
125wire aclk;
126wire bclk;
127wire scan_out;
128wire aclk_wmr;
129wire pce_ov;
130wire wmr_protect;
131wire wmr_;
132wire por_;
133wire cmp_slow_sync_en;
134wire slow_cmp_sync_en;
135wire tcu_clk_stop;
136wire tcu_pce_ov;
137wire rst_wmr_protect;
138wire rst_wmr_;
139wire rst_por_;
140wire cluster_arst_l;
141wire ccu_cmp_slow_sync_en;
142wire ccu_slow_cmp_sync_en;
143// wire ccu_serdes_dtm;
144wire tcu_div_bypass;
145wire ccu_div_ph;
146wire cluster_div_en;
147wire gclk;
148// wire clk_ext;
149wire tcu_scan_en; // tie-low, unused as of today - feb 10, 05
150wire scan_in; // tie-low, unused as of today - feb 10, 05
151wire tcu_aclk;
152wire tcu_bclk;
153wire io2xl2clk;
154
155////////////////////////////////////
156// cluster Header
157////////////////////////////////////
158
159clkgen_rdp_io2x clkgen_rdp_io2x (
160 .array_wr_inhibit (array_wr_inhibit),
161 .tcu_atpg_mode (tcu_atpg_mode),
162 .tcu_wr_inhibit (tcu_wr_inhibit),
163
164 .l2clk (io2xl2clk),
165 .aclk (aclk),
166 .bclk (bclk),
167 .scan_out (scan_out),
168 .aclk_wmr (aclk_wmr),
169 .pce_ov (pce_ov),
170 .wmr_protect (wmr_protect),
171 .wmr_ (wmr_),
172 .por_ (por_),
173 .cmp_slow_sync_en (cmp_slow_sync_en),
174 .slow_cmp_sync_en (slow_cmp_sync_en),
175 .tcu_clk_stop (tcu_clk_stop),
176 .tcu_pce_ov (tcu_pce_ov),
177 .rst_wmr_protect (rst_wmr_protect),
178 .rst_wmr_ (rst_wmr_),
179 .rst_por_ (rst_por_),
180 .cluster_arst_l (cluster_arst_l),
181 .ccu_cmp_slow_sync_en (ccu_cmp_slow_sync_en),
182 .ccu_slow_cmp_sync_en (ccu_slow_cmp_sync_en),
183 .ccu_serdes_dtm (1'b0),
184 .tcu_div_bypass (tcu_div_bypass),
185 .ccu_div_ph (ccu_div_ph),
186 .cluster_div_en (cluster_div_en),
187 .gclk (gclk),
188 .clk_ext (1'b0),
189 .scan_en (tcu_scan_en),
190 .scan_in (scan_in),
191 .tcu_aclk (tcu_aclk),
192 .tcu_bclk (tcu_bclk)
193 );
194
195////////////////////////////////////
196// l1clk Header
197/////////////////////////////////////
198//cl_a1_l1hdr_12x iol2clk_cl_a1_l1hdr_12x (
199 //.l2clk (io2xl2clk),
200 //.se (tcu_scan_en),
201 //.pce (1'b1),
202 //.pce_ov (pce_ov),
203 //.stop (tcu_clk_stop),
204 //.l1clk (l2clk)
205 //);
206
207endmodule