Initial commit of OpenSPARC T2 design and verification files.
[OpenSPARC-T2-DV] / design / sys / iop / l2t / rtl / l2t_vuadio_dp.v
CommitLineData
86530b38
AT
1// ========== Copyright Header Begin ==========================================
2//
3// OpenSPARC T2 Processor File: l2t_vuadio_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 l2t_vuadio_dp (
36 data_out_col1,
37 data_out_col2,
38 array_data_in,
39 vuadio_data_out_io,
40 vuadio_array_data_in_buf,
41 vuad_mux_sel);
42
43
44input [38:0] data_out_col1; // from vuadcl
45input [38:0] data_out_col2; // from vuadcl
46
47input [38:0] array_data_in;
48
49output [38:0] vuadio_data_out_io ; // output to vuad dp.
50output [38:0] vuadio_array_data_in_buf;
51
52input [1:0] vuad_mux_sel; // 2-1 mux output to vuad dp.
53
54
55// assign vuadio_array_data_in_buf = array_data_in ;
56
57l2t_vuadio_dp_buff_macro__dbuff_32x__stack_40c__width_39 vuadio_array_buffer
58 (
59 .dout (vuadio_array_data_in_buf[38:0]),
60 .din (array_data_in[38:0])
61 );
62
63//mux_macro mux_vuadio_data_out_io (width=39,ports=2,mux=aonpe,stack=39c,dmux=8x)
64// (
65// .dout (vuadio_data_out_io[38:0]),
66// .din0 (data_out_col1[38:0]),
67// .din1 (data_out_col2[38:0]),
68// .sel0 (vuad_mux_sel[0]),
69// .sel1 (vuad_mux_sel[1])
70// );
71//
72
73l2t_vuadio_dp_mux_macro__dmux_32x__mux_pgpe__ports_2__stack_39c__width_39 mux_vuadio_data_out_io
74 (
75 .dout (vuadio_data_out_io[38:0]),
76 .din0 (data_out_col1[38:0]),
77 .din1 (data_out_col2[38:0]),
78 .sel0 (vuad_mux_sel[0])
79 );
80
81endmodule
82
83
84//
85// buff macro
86//
87//
88
89
90
91
92
93module l2t_vuadio_dp_buff_macro__dbuff_32x__stack_40c__width_39 (
94 din,
95 dout);
96 input [38:0] din;
97 output [38:0] dout;
98
99
100
101
102
103
104buff #(39) d0_0 (
105.in(din[38:0]),
106.out(dout[38:0])
107);
108
109
110
111
112
113
114
115
116endmodule
117
118
119
120
121
122// general mux macro for pass-gate and and-or muxes with/wout priority encoders
123// also for pass-gate with decoder
124
125
126
127
128
129// any PARAMS parms go into naming of macro
130
131module l2t_vuadio_dp_mux_macro__dmux_32x__mux_pgpe__ports_2__stack_39c__width_39 (
132 din0,
133 din1,
134 sel0,
135 dout);
136wire psel0_unused;
137wire psel1;
138
139 input [38:0] din0;
140 input [38:0] din1;
141 input sel0;
142 output [38:0] dout;
143
144
145
146
147
148cl_dp1_penc2_8x c0_0 (
149 .sel0(sel0),
150 .psel0(psel0_unused),
151 .psel1(psel1)
152);
153
154mux2e #(39) d0_0 (
155 .sel(psel1),
156 .in0(din0[38:0]),
157 .in1(din1[38:0]),
158.dout(dout[38:0])
159);
160
161
162
163
164
165
166
167
168
169
170
171
172
173endmodule
174