Commit | Line | Data |
---|---|---|
86530b38 AT |
1 | // ========== Copyright Header Begin ========================================== |
2 | // | |
3 | // OpenSPARC T2 Processor File: mmu_mbd_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 ============================================ | |
35 | module mmu_mbd_dp ( | |
36 | asi_mbd_scp_data, | |
37 | asi_compare_data, | |
38 | asi_mbd_sel_scp, | |
39 | ase_mbd_mbist_data, | |
40 | mbd_compare); | |
41 | wire [31:0] read_data; | |
42 | ||
43 | ||
44 | ||
45 | input [31:0] asi_mbd_scp_data; | |
46 | input [7:0] asi_compare_data; | |
47 | input asi_mbd_sel_scp; | |
48 | ||
49 | input [31:0] ase_mbd_mbist_data; // MBIST | |
50 | ||
51 | output mbd_compare; | |
52 | ||
53 | ||
54 | ||
55 | ||
56 | ////////////////////////////////////////////////////////////////////// | |
57 | ||
58 | ||
59 | ||
60 | mmu_mbd_dp_mux_macro__mux_aope__ports_2__stack_32r__width_32 read_data_mux ( | |
61 | .din0 (asi_mbd_scp_data [31:0] ), | |
62 | .din1 (ase_mbd_mbist_data [31:0] ), | |
63 | .sel0 (asi_mbd_sel_scp ), | |
64 | .dout (read_data [31:0] ) | |
65 | ); | |
66 | ||
67 | mmu_mbd_dp_cmp_macro__width_32 mbist_cmp ( | |
68 | .din0 (read_data [31:0] ), | |
69 | .din1 ({4 {asi_compare_data [7:0]}}), | |
70 | .dout (mbd_compare ) | |
71 | ||
72 | ); | |
73 | ||
74 | ||
75 | ||
76 | ||
77 | ||
78 | endmodule | |
79 | ||
80 | ||
81 | ||
82 | ||
83 | // general mux macro for pass-gate and and-or muxes with/wout priority encoders | |
84 | // also for pass-gate with decoder | |
85 | ||
86 | ||
87 | ||
88 | ||
89 | ||
90 | // any PARAMS parms go into naming of macro | |
91 | ||
92 | module mmu_mbd_dp_mux_macro__mux_aope__ports_2__stack_32r__width_32 ( | |
93 | din0, | |
94 | din1, | |
95 | sel0, | |
96 | dout); | |
97 | wire psel0; | |
98 | wire psel1; | |
99 | ||
100 | input [31:0] din0; | |
101 | input [31:0] din1; | |
102 | input sel0; | |
103 | output [31:0] dout; | |
104 | ||
105 | ||
106 | ||
107 | ||
108 | ||
109 | cl_dp1_penc2_8x c0_0 ( | |
110 | .sel0(sel0), | |
111 | .psel0(psel0), | |
112 | .psel1(psel1) | |
113 | ); | |
114 | ||
115 | mux2s #(32) d0_0 ( | |
116 | .sel0(psel0), | |
117 | .sel1(psel1), | |
118 | .in0(din0[31:0]), | |
119 | .in1(din1[31:0]), | |
120 | .dout(dout[31:0]) | |
121 | ); | |
122 | ||
123 | ||
124 | ||
125 | ||
126 | ||
127 | ||
128 | ||
129 | ||
130 | ||
131 | ||
132 | ||
133 | ||
134 | ||
135 | endmodule | |
136 | ||
137 | ||
138 | // | |
139 | // comparator macro (output is 1 if both inputs are equal; 0 otherwise) | |
140 | // | |
141 | // | |
142 | ||
143 | ||
144 | ||
145 | ||
146 | ||
147 | module mmu_mbd_dp_cmp_macro__width_32 ( | |
148 | din0, | |
149 | din1, | |
150 | dout); | |
151 | input [31:0] din0; | |
152 | input [31:0] din1; | |
153 | output dout; | |
154 | ||
155 | ||
156 | ||
157 | ||
158 | ||
159 | ||
160 | cmp #(32) m0_0 ( | |
161 | .in0(din0[31:0]), | |
162 | .in1(din1[31:0]), | |
163 | .out(dout) | |
164 | ); | |
165 | ||
166 | ||
167 | ||
168 | ||
169 | ||
170 | ||
171 | ||
172 | ||
173 | ||
174 | ||
175 | endmodule | |
176 | ||
177 | ||
178 | ||
179 |