Initial commit of OpenSPARC T2 design and verification files.
[OpenSPARC-T2-DV] / design / sys / iop / spc / rtl / spc_msf1_dp.v
CommitLineData
86530b38
AT
1// ========== Copyright Header Begin ==========================================
2//
3// OpenSPARC T2 Processor File: spc_msf1_dp.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 ============================================
35module spc_msf1_dp (
36 l2clk,
37 tcu_pce_ov,
38 spc_aclk,
39 spc_bclk,
40 tcu_se_scancollar_out,
41 scan_in,
42 scan_out,
43 tcu_spc_mbist_start,
44 spc_mbist_fail_buf,
45 spc_mbist_done_buf,
46 tcu_spc_mbist_start_ff,
47 spc_mbist_fail_ff,
48 spc_mbist_done_ff);
49wire pce_ov;
50wire stop;
51wire siclk;
52wire soclk;
53wire en;
54wire clk;
55wire tcu_spc_mbist_start_rep0;
56wire bank0_lat_scanin;
57wire bank0_lat_scanout;
58
59
60input l2clk;
61input tcu_pce_ov;
62input spc_aclk;
63input spc_bclk;
64input tcu_se_scancollar_out;
65input scan_in;
66output scan_out;
67
68// Core I/O before the MSFF
69input tcu_spc_mbist_start;
70input spc_mbist_fail_buf;
71input spc_mbist_done_buf;
72
73// Core I/O after the MSFF
74output tcu_spc_mbist_start_ff;
75output spc_mbist_fail_ff;
76output spc_mbist_done_ff;
77
78//////////////////////////////////////////////////////////////////////
79
80assign pce_ov = tcu_pce_ov;
81assign stop = 1'b0;
82assign siclk = spc_aclk;
83assign soclk = spc_bclk;
84assign en = 1'b1;
85assign clk = l2clk;
86
87
88
89//////////////////////////////////////////////////////////////////////
90
91
92spc_msf1_dpbuff_macro__dbuff_32x__rep_1__stack_none__width_1 chip_io_rep0 (
93 .din(tcu_spc_mbist_start),
94 .dout(tcu_spc_mbist_start_rep0)
95);
96
97spc_msf1_dpmsff_macro__stack_8r__width_3 bank0_lat (
98 .scan_in(bank0_lat_scanin),
99 .scan_out(bank0_lat_scanout),
100 .se ( tcu_se_scancollar_out ),
101 .din ({tcu_spc_mbist_start_rep0, spc_mbist_fail_buf, spc_mbist_done_buf}),
102 .dout ({tcu_spc_mbist_start_ff, spc_mbist_fail_ff, spc_mbist_done_ff} ),
103 .clk(clk),
104 .en(en),
105 .siclk(siclk),
106 .soclk(soclk),
107 .pce_ov(pce_ov),
108 .stop(stop)
109);
110
111
112// fixscan start:
113assign bank0_lat_scanin = scan_in ;
114assign scan_out = bank0_lat_scanout ;
115// fixscan end:
116endmodule
117
118
119//
120// buff macro
121//
122//
123
124
125
126
127
128module spc_msf1_dpbuff_macro__dbuff_32x__rep_1__stack_none__width_1 (
129 din,
130 dout);
131 input [0:0] din;
132 output [0:0] dout;
133
134
135
136
137
138
139buff #(1) d0_0 (
140.in(din[0:0]),
141.out(dout[0:0])
142);
143
144
145
146
147
148
149
150
151endmodule
152
153
154
155
156
157
158
159
160
161// any PARAMS parms go into naming of macro
162
163module spc_msf1_dpmsff_macro__stack_8r__width_3 (
164 din,
165 clk,
166 en,
167 se,
168 scan_in,
169 siclk,
170 soclk,
171 pce_ov,
172 stop,
173 dout,
174 scan_out);
175wire l1clk;
176wire siclk_out;
177wire soclk_out;
178wire [1:0] so;
179
180 input [2:0] din;
181
182
183 input clk;
184 input en;
185 input se;
186 input scan_in;
187 input siclk;
188 input soclk;
189 input pce_ov;
190 input stop;
191
192
193
194 output [2:0] dout;
195
196
197 output scan_out;
198
199
200
201
202cl_dp1_l1hdr_8x c0_0 (
203.l2clk(clk),
204.pce(en),
205.aclk(siclk),
206.bclk(soclk),
207.l1clk(l1clk),
208 .se(se),
209 .pce_ov(pce_ov),
210 .stop(stop),
211 .siclk_out(siclk_out),
212 .soclk_out(soclk_out)
213);
214dff #(3) d0_0 (
215.l1clk(l1clk),
216.siclk(siclk_out),
217.soclk(soclk_out),
218.d(din[2:0]),
219.si({scan_in,so[1:0]}),
220.so({so[1:0],scan_out}),
221.q(dout[2:0])
222);
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243endmodule
244
245
246
247
248
249
250
251