Commit | Line | Data |
---|---|---|
86530b38 AT |
1 | // ========== Copyright Header Begin ========================================== |
2 | // | |
3 | // OpenSPARC T2 Processor File: clkgen2x_rtx.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 | // | |
37 | // Copyright (C) 2003 by Sun Microsystems, Inc. | |
38 | // | |
39 | // All rights reserved. No part of this design may be reproduced, | |
40 | // stored in a retrieval system, or transmitted, in any form or by | |
41 | // any means, electronic, mechanical, photocopying, recording, or | |
42 | // otherwise, without prior written permission of Sun Microsystems, | |
43 | // Inc. | |
44 | // | |
45 | // Sun Proprietary/Confidential | |
46 | // | |
47 | // Filename: clkgen2x_rtx.v | |
48 | // Description: Wrapper around clkgen_rtx_io2x which | |
49 | // provides l2clks locally within clusters. | |
50 | // | |
51 | // Primary Contact: binh.pham@sun.com | |
52 | // | |
53 | // Revision History | |
54 | // | |
55 | ///////////////////////////////////////////////////////////////////////////////////// | |
56 | // `timescale 1ns/1ns | |
57 | ||
58 | module clkgen2x_rtx ( | |
59 | l1clk, | |
60 | aclk, | |
61 | bclk, | |
62 | scan_out, | |
63 | pce_ov, | |
64 | aclk_wmr, | |
65 | wmr_protect, | |
66 | wmr_, | |
67 | por_, | |
68 | cmp_slow_sync_en, | |
69 | slow_cmp_sync_en, | |
70 | tcu_clk_stop, | |
71 | tcu_pce_ov, | |
72 | rst_wmr_protect, | |
73 | rst_wmr_, | |
74 | rst_por_, | |
75 | ccu_cmp_slow_sync_en, | |
76 | ccu_slow_cmp_sync_en, | |
77 | tcu_div_bypass, | |
78 | ccu_div_ph, | |
79 | cluster_div_en, | |
80 | gclk, | |
81 | cluster_arst_l, | |
82 | clk_ext, | |
83 | ccu_serdes_dtm, | |
84 | tcu_aclk, | |
85 | tcu_bclk, | |
86 | scan_en, | |
87 | scan_in | |
88 | ||
89 | ); | |
90 | ||
91 | // ************************** | |
92 | // port declaration | |
93 | // ************************** | |
94 | ||
95 | // clock & test out | |
96 | output l1clk; | |
97 | output aclk; | |
98 | output bclk; | |
99 | output scan_out; | |
100 | output aclk_wmr; | |
101 | ||
102 | // pipelined out | |
103 | output pce_ov; | |
104 | output wmr_protect; | |
105 | output wmr_; | |
106 | output por_; | |
107 | output cmp_slow_sync_en; | |
108 | output slow_cmp_sync_en; | |
109 | ||
110 | // ctrl in (for pipelining) | |
111 | input tcu_clk_stop; | |
112 | input tcu_pce_ov; | |
113 | input rst_wmr_protect; | |
114 | input rst_wmr_; | |
115 | input rst_por_; | |
116 | input ccu_cmp_slow_sync_en; | |
117 | input ccu_slow_cmp_sync_en; | |
118 | ||
119 | input tcu_div_bypass; | |
120 | input ccu_div_ph; | |
121 | input cluster_div_en; | |
122 | ||
123 | // clock & test in | |
124 | input gclk; | |
125 | input cluster_arst_l; | |
126 | input ccu_serdes_dtm; | |
127 | input clk_ext; | |
128 | input scan_en; | |
129 | input scan_in; | |
130 | input tcu_aclk; | |
131 | input tcu_bclk; | |
132 | ||
133 | wire io2xl2clk; | |
134 | ||
135 | cl_a1_l1hdr_8x io_l1hdr ( | |
136 | .l2clk (io2xl2clk), | |
137 | .se (scan_en), | |
138 | .pce (1'b1), | |
139 | .pce_ov (pce_ov), | |
140 | .stop (tcu_clk_stop), | |
141 | .l1clk (l1clk) | |
142 | ); | |
143 | ||
144 | clkgen_rtx_io2x clkgen_rtx_io2x ( | |
145 | .l2clk (io2xl2clk), // outputs | |
146 | .aclk (aclk), | |
147 | .bclk (bclk), | |
148 | .scan_out (scan_out), | |
149 | .aclk_wmr (aclk_wmr), | |
150 | .pce_ov (pce_ov), | |
151 | .wmr_protect (wmr_protect), | |
152 | .wmr_ (wmr_), | |
153 | .por_ (por_), | |
154 | .cmp_slow_sync_en (cmp_slow_sync_en), | |
155 | .slow_cmp_sync_en (slow_cmp_sync_en), | |
156 | .tcu_clk_stop (tcu_clk_stop), // inputs | |
157 | .tcu_pce_ov (tcu_pce_ov), | |
158 | .rst_wmr_protect (rst_wmr_protect), | |
159 | .rst_wmr_ (rst_wmr_), | |
160 | .rst_por_ (rst_por_), | |
161 | .ccu_cmp_slow_sync_en (ccu_cmp_slow_sync_en), | |
162 | .ccu_slow_cmp_sync_en (ccu_slow_cmp_sync_en), | |
163 | .tcu_div_bypass (tcu_div_bypass), | |
164 | .ccu_div_ph (ccu_div_ph), | |
165 | .cluster_div_en (cluster_div_en), | |
166 | .gclk (gclk), | |
167 | .cluster_arst_l (cluster_arst_l), | |
168 | .ccu_serdes_dtm (ccu_serdes_dtm), | |
169 | .clk_ext (clk_ext), | |
170 | .scan_en (scan_en), | |
171 | .scan_in (scan_in), | |
172 | .tcu_aclk (tcu_aclk), | |
173 | .tcu_bclk (tcu_bclk) | |
174 | ); | |
175 | ||
176 | ||
177 | endmodule // clkgen2x_rtx | |
178 |