Commit | Line | Data |
---|---|---|
86530b38 AT |
1 | // ========== Copyright Header Begin ========================================== |
2 | // | |
3 | // OpenSPARC T2 Processor File: clkgen_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: clkgen_rtx.v | |
48 | // Description: Wrapper around clkgen_rtx_io 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 clkgen_rtx ( | |
59 | tcu_wr_inhibit, | |
60 | array_wr_inhibit, | |
61 | tcu_atpg_mode, | |
62 | l1clk, | |
63 | iol2clk, | |
64 | aclk, | |
65 | bclk, | |
66 | scan_out, | |
67 | pce_ov, | |
68 | aclk_wmr, | |
69 | wmr_protect, | |
70 | wmr_, | |
71 | por_, | |
72 | cmp_slow_sync_en, | |
73 | slow_cmp_sync_en, | |
74 | tcu_clk_stop, | |
75 | tcu_pce_ov, | |
76 | rst_wmr_protect, | |
77 | rst_wmr_, | |
78 | rst_por_, | |
79 | // ccu_cmp_slow_sync_en, | |
80 | // ccu_slow_cmp_sync_en, | |
81 | tcu_div_bypass, | |
82 | ccu_div_ph, | |
83 | cluster_div_en, | |
84 | gclk, | |
85 | cluster_arst_l, | |
86 | // clk_ext, | |
87 | // ccu_serdes_dtm, | |
88 | tcu_aclk, | |
89 | tcu_bclk, | |
90 | scan_en, | |
91 | scan_in | |
92 | ||
93 | ); | |
94 | ||
95 | // ************************** | |
96 | // port declaration | |
97 | // ************************** | |
98 | ||
99 | // clock & test out | |
100 | output array_wr_inhibit; | |
101 | output l1clk; | |
102 | output iol2clk; | |
103 | output aclk; | |
104 | output bclk; | |
105 | output scan_out; | |
106 | output aclk_wmr; | |
107 | ||
108 | // pipelined out | |
109 | output pce_ov; | |
110 | output wmr_protect; | |
111 | output wmr_; | |
112 | output por_; | |
113 | output cmp_slow_sync_en; | |
114 | output slow_cmp_sync_en; | |
115 | ||
116 | // ctrl in (for pipelining) | |
117 | input tcu_wr_inhibit; | |
118 | input tcu_atpg_mode; | |
119 | input tcu_clk_stop; | |
120 | input tcu_pce_ov; | |
121 | input rst_wmr_protect; | |
122 | input rst_wmr_; | |
123 | input rst_por_; | |
124 | // input ccu_cmp_slow_sync_en; | |
125 | // input ccu_slow_cmp_sync_en; | |
126 | ||
127 | input tcu_div_bypass; | |
128 | input ccu_div_ph; | |
129 | input cluster_div_en; | |
130 | ||
131 | // clock & test in | |
132 | input gclk; | |
133 | input cluster_arst_l; | |
134 | // input ccu_serdes_dtm; | |
135 | // input clk_ext; | |
136 | input scan_en; | |
137 | input scan_in; | |
138 | input tcu_aclk; | |
139 | input tcu_bclk; | |
140 | wire iol2clk; | |
141 | ||
142 | cl_a1_l1hdr_8x io_l1hdr ( | |
143 | .l2clk (iol2clk), | |
144 | .se (scan_en), | |
145 | .pce (1'b1), | |
146 | .pce_ov (pce_ov), | |
147 | .stop (1'b0), | |
148 | .l1clk (l1clk) | |
149 | ); | |
150 | ||
151 | clkgen_rtx_io clkgen_rtx_io ( | |
152 | .array_wr_inhibit (array_wr_inhibit), // I6.1 cluster header update | |
153 | .tcu_atpg_mode (tcu_atpg_mode), // I6.1 cluster header update | |
154 | .tcu_wr_inhibit (tcu_wr_inhibit), // I6.1 cluster header update | |
155 | .l2clk (iol2clk), // outputs | |
156 | .aclk (aclk), | |
157 | .bclk (bclk), | |
158 | .scan_out (scan_out), | |
159 | .aclk_wmr (aclk_wmr), | |
160 | .pce_ov (pce_ov), | |
161 | .wmr_protect (wmr_protect), | |
162 | .wmr_ (wmr_), | |
163 | .por_ (por_), | |
164 | .cmp_slow_sync_en (cmp_slow_sync_en), | |
165 | .slow_cmp_sync_en (slow_cmp_sync_en), | |
166 | .tcu_clk_stop (tcu_clk_stop), // inputs | |
167 | .tcu_pce_ov (tcu_pce_ov), | |
168 | .rst_wmr_protect (rst_wmr_protect), | |
169 | .rst_wmr_ (rst_wmr_), | |
170 | .rst_por_ (rst_por_), | |
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 | // following two pins remove from I6.1 n2_clk_clstr_hdr_cust | |
179 | // .ccu_serdes_dtm (ccu_serdes_dtm), | |
180 | // .clk_ext (clk_ext), | |
181 | .scan_en (scan_en), | |
182 | .scan_in (scan_in), | |
183 | .tcu_aclk (tcu_aclk), | |
184 | .tcu_bclk (tcu_bclk) | |
185 | ); | |
186 | ||
187 | ||
188 | endmodule // clkgen_rtx | |
189 |