-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathccx_arbc.v
More file actions
195 lines (159 loc) · 6.69 KB
/
ccx_arbc.v
File metadata and controls
195 lines (159 loc) · 6.69 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
// ========== Copyright Header Begin ==========================================
//
// OpenSPARC T1 Processor File: ccx_arbc.v
// Copyright (c) 2006 Sun Microsystems, Inc. All Rights Reserved.
// DO NOT ALTER OR REMOVE COPYRIGHT NOTICES.
//
// The above named program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public
// License version 2 as published by the Free Software Foundation.
//
// The above named program is distributed in the hope that it will be
// useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// General Public License for more details.
//
// You should have received a copy of the GNU General Public
// License along with this work; if not, write to the Free Software
// Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
//
// ========== Copyright Header End ============================================
////////////////////////////////////////////////////////////////////////
// Global header file includes
////////////////////////////////////////////////////////////////////////
`include "sys.h" // system level definition file which contains the
// time scale definition
`include "iop.h"
////////////////////////////////////////////////////////////////////////
// Local header file includes / local defines
////////////////////////////////////////////////////////////////////////
// Code start here
//
module ccx_arbc(/*AUTOARG*/
// Outputs
scan_out, ccx_dest_data_rdy_x, arb_src5_grant_a, arb_src4_grant_a,
arb_src3_grant_a, arb_src2_grant_a, arb_src1_grant_a,
arb_src0_grant_a, arb_dp_grant_a, arb_dp_q0_hold_a,
arb_dp_qsel0_a, arb_dp_qsel1_a, arb_dp_shift_x,
// Inputs
src5_arb_req_q, src5_arb_atom_q, src4_arb_req_q, src4_arb_atom_q,
src3_arb_req_q, src3_arb_atom_q, src2_arb_req_q, src2_arb_atom_q,
src1_arb_req_q, src1_arb_atom_q, src0_arb_req_q, src0_arb_atom_q,
se, scan_in, reset_l, rclk, adbginit_l
);
/*AUTOOUTPUT*/
// Beginning of automatic outputs (from unused autoinst outputs)
output arb_src0_grant_a; // From ccx_arb of ccx_arb.v
output arb_src1_grant_a; // From ccx_arb of ccx_arb.v
output arb_src2_grant_a; // From ccx_arb of ccx_arb.v
output arb_src3_grant_a; // From ccx_arb of ccx_arb.v
output arb_src4_grant_a; // From ccx_arb of ccx_arb.v
output arb_src5_grant_a; // From ccx_arb of ccx_arb.v
output ccx_dest_data_rdy_x; // From ccx_arb of ccx_arb.v
output scan_out; // From ccx_arb of ccx_arb.v
// End of automatics
output [5:0] arb_dp_grant_a;
output [5:0] arb_dp_q0_hold_a;
output [5:0] arb_dp_qsel0_a;
output [5:0] arb_dp_qsel1_a;
output [5:0] arb_dp_shift_x;
/*AUTOINPUT*/
// Beginning of automatic inputs (from unused autoinst inputs)
input adbginit_l; // To ccx_arb of ccx_arb.v
input rclk; // To ccx_arb of ccx_arb.v
input reset_l; // To ccx_arb of ccx_arb.v
input scan_in; // To ccx_arb of ccx_arb.v
input se; // To ccx_arb of ccx_arb.v
input src0_arb_atom_q; // To ccx_arb of ccx_arb.v
input src0_arb_req_q; // To ccx_arb of ccx_arb.v
input src1_arb_atom_q; // To ccx_arb of ccx_arb.v
input src1_arb_req_q; // To ccx_arb of ccx_arb.v
input src2_arb_atom_q; // To ccx_arb of ccx_arb.v
input src2_arb_req_q; // To ccx_arb of ccx_arb.v
input src3_arb_atom_q; // To ccx_arb of ccx_arb.v
input src3_arb_req_q; // To ccx_arb of ccx_arb.v
input src4_arb_atom_q; // To ccx_arb of ccx_arb.v
input src4_arb_req_q; // To ccx_arb of ccx_arb.v
input src5_arb_atom_q; // To ccx_arb of ccx_arb.v
input src5_arb_req_q; // To ccx_arb of ccx_arb.v
// End of automatics
wire src6_arb_atom_q ;
wire src6_arb_req_q ;
wire src7_arb_atom_q ;
wire src7_arb_req_q ;
wire stall1_q ;
wire stall2_q ;
wire [1:0] sinka;
wire [1:0] sinkb;
wire [1:0] sinkc;
wire [1:0] sinkd;
wire [1:0] sinke;
/*AUTOWIRE*/
// Beginning of automatic wires (for undeclared instantiated-module outputs)
// End of automatics
assign src6_arb_atom_q = 1'b0;
assign src6_arb_req_q = 1'b0;
assign src7_arb_atom_q = 1'b0;
assign src7_arb_req_q = 1'b0;
assign stall1_q = 1'b0;
assign stall2_q = 1'b0;
// commented out - backend does not like this
// sink #(2) sink1(.in (sinka[1:0]));
// sink #(2) sink2(.in (sinkb[1:0]));
// sink #(2) sink3(.in (sinkc[1:0]));
// sink #(2) sink4(.in (sinkd[1:0]));
// sink #(2) sink5(.in (sinke[1:0]));
/*
ccx_arb AUTO_TEMPLATE(
.ccx_dest_atom_x (),
.arb_dp_grant_a ({sinka[0], sinka[1],arb_dp_grant_a[5:0]}),
.arb_dp_q0_hold_a ({sinkb[0], sinkb[1],arb_dp_q0_hold_a[5:0]}),
.arb_dp_qsel0_a ({sinkc[0], sinkc[1],arb_dp_qsel0_a[5:0]}),
.arb_dp_qsel1_a ({sinkd[0], sinkd[1],arb_dp_qsel1_a[5:0]}),
.arb_dp_shift_x ({sinke[0], sinke[1],arb_dp_shift_x[5:0]}),
.arb_src6_grant_a (),
.arb_src7_grant_a ());
*/
ccx_arb ccx_arb(/*AUTOINST*/
// Outputs
.arb_dp_grant_a ({sinka[0], sinka[1],arb_dp_grant_a[5:0]}), // Templated
.arb_dp_q0_hold_a ({sinkb[0], sinkb[1],arb_dp_q0_hold_a[5:0]}), // Templated
.arb_dp_qsel0_a ({sinkc[0], sinkc[1],arb_dp_qsel0_a[5:0]}), // Templated
.arb_dp_qsel1_a ({sinkd[0], sinkd[1],arb_dp_qsel1_a[5:0]}), // Templated
.arb_dp_shift_x ({sinke[0], sinke[1],arb_dp_shift_x[5:0]}), // Templated
.arb_src0_grant_a (arb_src0_grant_a),
.arb_src1_grant_a (arb_src1_grant_a),
.arb_src2_grant_a (arb_src2_grant_a),
.arb_src3_grant_a (arb_src3_grant_a),
.arb_src4_grant_a (arb_src4_grant_a),
.arb_src5_grant_a (arb_src5_grant_a),
.arb_src6_grant_a (), // Templated
.arb_src7_grant_a (), // Templated
.ccx_dest_atom_x (), // Templated
.ccx_dest_data_rdy_x (ccx_dest_data_rdy_x),
.scan_out (scan_out),
// Inputs
.adbginit_l (adbginit_l),
.rclk (rclk),
.reset_l (reset_l),
.src0_arb_atom_q (src0_arb_atom_q),
.src0_arb_req_q (src0_arb_req_q),
.src1_arb_atom_q (src1_arb_atom_q),
.src1_arb_req_q (src1_arb_req_q),
.src2_arb_atom_q (src2_arb_atom_q),
.src2_arb_req_q (src2_arb_req_q),
.src3_arb_atom_q (src3_arb_atom_q),
.src3_arb_req_q (src3_arb_req_q),
.src4_arb_atom_q (src4_arb_atom_q),
.src4_arb_req_q (src4_arb_req_q),
.src5_arb_atom_q (src5_arb_atom_q),
.src5_arb_req_q (src5_arb_req_q),
.src6_arb_atom_q (src6_arb_atom_q),
.src6_arb_req_q (src6_arb_req_q),
.src7_arb_atom_q (src7_arb_atom_q),
.src7_arb_req_q (src7_arb_req_q),
.stall1_q (stall1_q),
.stall2_q (stall2_q),
.scan_in (scan_in),
.se (se));
endmodule // ccx_arb