Go
back
73 // Glue logic between rv_plic_reg_top and others
74 1/1 assign cc_id = irq_id_o;
Tests: T4 T5 T6
75
76 always_comb begin
77 1/1 claim = '0;
Tests: T4 T5 T6
78 1/1 for (int i = 0 ; i < NumTarget ; i++) begin
Tests: T4 T5 T6
79 2/2 if (claim_re[i]) claim[claim_id[i]] = 1'b1;
Tests: T4 T5 T6 | T4 T5 T6
MISSING_ELSE
80 end
81 end
82 always_comb begin
83 1/1 complete = '0;
Tests: T4 T5 T6
84 1/1 for (int i = 0 ; i < NumTarget ; i++) begin
Tests: T4 T5 T6
85 2/2 if (complete_we[i]) complete[complete_id[i]] = 1'b1;
Tests: T4 T5 T6 | T4 T5 T6
MISSING_ELSE
86 end
87 end
88
89 //`ASSERT_PULSE(claimPulse, claim_re[i])
90 //`ASSERT_PULSE(completePulse, complete_we[i])
91
92 `ASSERT(onehot0Claim, $onehot0(claim_re))
93
94 `ASSERT(onehot0Complete, $onehot0(complete_we))
95
96 //////////////
97 // Priority //
98 //////////////
99 1/1 assign prio[0] = reg2hw.prio0.q;
Tests: T271 T33 T272
100 1/1 assign prio[1] = reg2hw.prio1.q;
Tests: T130 T131 T271
101 1/1 assign prio[2] = reg2hw.prio2.q;
Tests: T130 T131 T271
102 1/1 assign prio[3] = reg2hw.prio3.q;
Tests: T130 T131 T271
103 1/1 assign prio[4] = reg2hw.prio4.q;
Tests: T130 T131 T271
104 1/1 assign prio[5] = reg2hw.prio5.q;
Tests: T130 T131 T271
105 1/1 assign prio[6] = reg2hw.prio6.q;
Tests: T130 T131 T271
106 1/1 assign prio[7] = reg2hw.prio7.q;
Tests: T130 T131 T271
107 1/1 assign prio[8] = reg2hw.prio8.q;
Tests: T130 T131 T271
108 1/1 assign prio[9] = reg2hw.prio9.q;
Tests: T130 T131 T271
109 1/1 assign prio[10] = reg2hw.prio10.q;
Tests: T132 T271 T127
110 1/1 assign prio[11] = reg2hw.prio11.q;
Tests: T132 T271 T127
111 1/1 assign prio[12] = reg2hw.prio12.q;
Tests: T132 T271 T127
112 1/1 assign prio[13] = reg2hw.prio13.q;
Tests: T132 T271 T127
113 1/1 assign prio[14] = reg2hw.prio14.q;
Tests: T132 T271 T127
114 1/1 assign prio[15] = reg2hw.prio15.q;
Tests: T132 T271 T127
115 1/1 assign prio[16] = reg2hw.prio16.q;
Tests: T132 T271 T127
116 1/1 assign prio[17] = reg2hw.prio17.q;
Tests: T132 T271 T127
117 1/1 assign prio[18] = reg2hw.prio18.q;
Tests: T132 T271 T127
118 1/1 assign prio[19] = reg2hw.prio19.q;
Tests: T63 T271 T127
119 1/1 assign prio[20] = reg2hw.prio20.q;
Tests: T63 T271 T127
120 1/1 assign prio[21] = reg2hw.prio21.q;
Tests: T63 T271 T127
121 1/1 assign prio[22] = reg2hw.prio22.q;
Tests: T63 T271 T127
122 1/1 assign prio[23] = reg2hw.prio23.q;
Tests: T63 T271 T127
123 1/1 assign prio[24] = reg2hw.prio24.q;
Tests: T63 T271 T127
124 1/1 assign prio[25] = reg2hw.prio25.q;
Tests: T63 T271 T127
125 1/1 assign prio[26] = reg2hw.prio26.q;
Tests: T63 T271 T127
126 1/1 assign prio[27] = reg2hw.prio27.q;
Tests: T63 T271 T127
127 1/1 assign prio[28] = reg2hw.prio28.q;
Tests: T24 T29 T271
128 1/1 assign prio[29] = reg2hw.prio29.q;
Tests: T24 T29 T271
129 1/1 assign prio[30] = reg2hw.prio30.q;
Tests: T24 T29 T271
130 1/1 assign prio[31] = reg2hw.prio31.q;
Tests: T24 T29 T271
131 1/1 assign prio[32] = reg2hw.prio32.q;
Tests: T24 T29 T271
132 1/1 assign prio[33] = reg2hw.prio33.q;
Tests: T24 T29 T271
133 1/1 assign prio[34] = reg2hw.prio34.q;
Tests: T24 T29 T271
134 1/1 assign prio[35] = reg2hw.prio35.q;
Tests: T24 T29 T271
135 1/1 assign prio[36] = reg2hw.prio36.q;
Tests: T24 T29 T271
136 1/1 assign prio[37] = reg2hw.prio37.q;
Tests: T26 T271 T127
137 1/1 assign prio[38] = reg2hw.prio38.q;
Tests: T26 T271 T127
138 1/1 assign prio[39] = reg2hw.prio39.q;
Tests: T26 T271 T127
139 1/1 assign prio[40] = reg2hw.prio40.q;
Tests: T26 T271 T127
140 1/1 assign prio[41] = reg2hw.prio41.q;
Tests: T26 T271 T127
141 1/1 assign prio[42] = reg2hw.prio42.q;
Tests: T26 T271 T127
142 1/1 assign prio[43] = reg2hw.prio43.q;
Tests: T26 T271 T127
143 1/1 assign prio[44] = reg2hw.prio44.q;
Tests: T26 T271 T127
144 1/1 assign prio[45] = reg2hw.prio45.q;
Tests: T26 T271 T127
145 1/1 assign prio[46] = reg2hw.prio46.q;
Tests: T26 T271 T127
146 1/1 assign prio[47] = reg2hw.prio47.q;
Tests: T26 T271 T127
147 1/1 assign prio[48] = reg2hw.prio48.q;
Tests: T26 T271 T127
148 1/1 assign prio[49] = reg2hw.prio49.q;
Tests: T26 T271 T127
149 1/1 assign prio[50] = reg2hw.prio50.q;
Tests: T26 T271 T127
150 1/1 assign prio[51] = reg2hw.prio51.q;
Tests: T26 T271 T127
151 1/1 assign prio[52] = reg2hw.prio52.q;
Tests: T26 T271 T127
152 1/1 assign prio[53] = reg2hw.prio53.q;
Tests: T26 T271 T127
153 1/1 assign prio[54] = reg2hw.prio54.q;
Tests: T26 T271 T127
154 1/1 assign prio[55] = reg2hw.prio55.q;
Tests: T26 T271 T127
155 1/1 assign prio[56] = reg2hw.prio56.q;
Tests: T26 T271 T127
156 1/1 assign prio[57] = reg2hw.prio57.q;
Tests: T26 T271 T127
157 1/1 assign prio[58] = reg2hw.prio58.q;
Tests: T26 T271 T127
158 1/1 assign prio[59] = reg2hw.prio59.q;
Tests: T26 T271 T127
159 1/1 assign prio[60] = reg2hw.prio60.q;
Tests: T26 T271 T127
160 1/1 assign prio[61] = reg2hw.prio61.q;
Tests: T26 T271 T127
161 1/1 assign prio[62] = reg2hw.prio62.q;
Tests: T26 T271 T127
162 1/1 assign prio[63] = reg2hw.prio63.q;
Tests: T26 T271 T127
163 1/1 assign prio[64] = reg2hw.prio64.q;
Tests: T26 T271 T127
164 1/1 assign prio[65] = reg2hw.prio65.q;
Tests: T26 T271 T127
165 1/1 assign prio[66] = reg2hw.prio66.q;
Tests: T26 T271 T127
166 1/1 assign prio[67] = reg2hw.prio67.q;
Tests: T26 T271 T127
167 1/1 assign prio[68] = reg2hw.prio68.q;
Tests: T26 T271 T127
168 1/1 assign prio[69] = reg2hw.prio69.q;
Tests: T13 T26 T10
169 1/1 assign prio[70] = reg2hw.prio70.q;
Tests: T13 T271 T127
170 1/1 assign prio[71] = reg2hw.prio71.q;
Tests: T13 T271 T127
171 1/1 assign prio[72] = reg2hw.prio72.q;
Tests: T13 T10 T11
172 1/1 assign prio[73] = reg2hw.prio73.q;
Tests: T13 T10 T11
173 1/1 assign prio[74] = reg2hw.prio74.q;
Tests: T13 T271 T127
174 1/1 assign prio[75] = reg2hw.prio75.q;
Tests: T271 T127 T324
175 1/1 assign prio[76] = reg2hw.prio76.q;
Tests: T271 T127 T324
176 1/1 assign prio[77] = reg2hw.prio77.q;
Tests: T57 T271 T127
177 1/1 assign prio[78] = reg2hw.prio78.q;
Tests: T57 T271 T127
178 1/1 assign prio[79] = reg2hw.prio79.q;
Tests: T271 T127 T324
179 1/1 assign prio[80] = reg2hw.prio80.q;
Tests: T57 T271 T127
180 1/1 assign prio[81] = reg2hw.prio81.q;
Tests: T57 T271 T127
181 1/1 assign prio[82] = reg2hw.prio82.q;
Tests: T57 T271 T127
182 1/1 assign prio[83] = reg2hw.prio83.q;
Tests: T57 T271 T127
183 1/1 assign prio[84] = reg2hw.prio84.q;
Tests: T57 T271 T127
184 1/1 assign prio[85] = reg2hw.prio85.q;
Tests: T271 T127 T324
185 1/1 assign prio[86] = reg2hw.prio86.q;
Tests: T57 T58 T271
186 1/1 assign prio[87] = reg2hw.prio87.q;
Tests: T58 T271 T127
187 1/1 assign prio[88] = reg2hw.prio88.q;
Tests: T271 T127 T324
188 1/1 assign prio[89] = reg2hw.prio89.q;
Tests: T58 T271 T127
189 1/1 assign prio[90] = reg2hw.prio90.q;
Tests: T58 T271 T127
190 1/1 assign prio[91] = reg2hw.prio91.q;
Tests: T58 T271 T127
191 1/1 assign prio[92] = reg2hw.prio92.q;
Tests: T59 T271 T127
192 1/1 assign prio[93] = reg2hw.prio93.q;
Tests: T59 T271 T127
193 1/1 assign prio[94] = reg2hw.prio94.q;
Tests: T271 T127 T324
194 1/1 assign prio[95] = reg2hw.prio95.q;
Tests: T59 T271 T127
195 1/1 assign prio[96] = reg2hw.prio96.q;
Tests: T59 T271 T127
196 1/1 assign prio[97] = reg2hw.prio97.q;
Tests: T59 T271 T127
197 1/1 assign prio[98] = reg2hw.prio98.q;
Tests: T59 T271 T127
198 1/1 assign prio[99] = reg2hw.prio99.q;
Tests: T59 T271 T127
199 1/1 assign prio[100] = reg2hw.prio100.q;
Tests: T271 T127 T324
200 1/1 assign prio[101] = reg2hw.prio101.q;
Tests: T59 T271 T127
201 1/1 assign prio[102] = reg2hw.prio102.q;
Tests: T271 T127 T324
202 1/1 assign prio[103] = reg2hw.prio103.q;
Tests: T271 T127 T324
203 1/1 assign prio[104] = reg2hw.prio104.q;
Tests: T271 T127 T324
204 1/1 assign prio[105] = reg2hw.prio105.q;
Tests: T271 T127 T324
205 1/1 assign prio[106] = reg2hw.prio106.q;
Tests: T271 T127 T324
206 1/1 assign prio[107] = reg2hw.prio107.q;
Tests: T61 T271 T127
207 1/1 assign prio[108] = reg2hw.prio108.q;
Tests: T61 T271 T127
208 1/1 assign prio[109] = reg2hw.prio109.q;
Tests: T271 T127 T324
209 1/1 assign prio[110] = reg2hw.prio110.q;
Tests: T61 T271 T127
210 1/1 assign prio[111] = reg2hw.prio111.q;
Tests: T61 T271 T127
211 1/1 assign prio[112] = reg2hw.prio112.q;
Tests: T61 T271 T127
212 1/1 assign prio[113] = reg2hw.prio113.q;
Tests: T61 T271 T127
213 1/1 assign prio[114] = reg2hw.prio114.q;
Tests: T61 T271 T127
214 1/1 assign prio[115] = reg2hw.prio115.q;
Tests: T271 T127 T324
215 1/1 assign prio[116] = reg2hw.prio116.q;
Tests: T61 T271 T127
216 1/1 assign prio[117] = reg2hw.prio117.q;
Tests: T271 T127 T324
217 1/1 assign prio[118] = reg2hw.prio118.q;
Tests: T271 T127 T324
218 1/1 assign prio[119] = reg2hw.prio119.q;
Tests: T271 T127 T324
219 1/1 assign prio[120] = reg2hw.prio120.q;
Tests: T271 T127 T324
220 1/1 assign prio[121] = reg2hw.prio121.q;
Tests: T271 T127 T324
221 1/1 assign prio[122] = reg2hw.prio122.q;
Tests: T28 T271 T127
222 1/1 assign prio[123] = reg2hw.prio123.q;
Tests: T28 T271 T127
223 1/1 assign prio[124] = reg2hw.prio124.q;
Tests: T271 T127 T324
224 1/1 assign prio[125] = reg2hw.prio125.q;
Tests: T271 T127 T324
225 1/1 assign prio[126] = reg2hw.prio126.q;
Tests: T271 T127 T324
226 1/1 assign prio[127] = reg2hw.prio127.q;
Tests: T41 T80 T82
227 1/1 assign prio[128] = reg2hw.prio128.q;
Tests: T41 T80 T82
228 1/1 assign prio[129] = reg2hw.prio129.q;
Tests: T41 T80 T82
229 1/1 assign prio[130] = reg2hw.prio130.q;
Tests: T41 T80 T82
230 1/1 assign prio[131] = reg2hw.prio131.q;
Tests: T10 T11 T271
231 1/1 assign prio[132] = reg2hw.prio132.q;
Tests: T10 T11 T271
232 1/1 assign prio[133] = reg2hw.prio133.q;
Tests: T271 T127 T324
233 1/1 assign prio[134] = reg2hw.prio134.q;
Tests: T271 T127 T324
234 1/1 assign prio[135] = reg2hw.prio135.q;
Tests: T271 T127 T324
235 1/1 assign prio[136] = reg2hw.prio136.q;
Tests: T271 T127 T324
236 1/1 assign prio[137] = reg2hw.prio137.q;
Tests: T271 T127 T324
237 1/1 assign prio[138] = reg2hw.prio138.q;
Tests: T271 T127 T324
238 1/1 assign prio[139] = reg2hw.prio139.q;
Tests: T271 T127 T324
239 1/1 assign prio[140] = reg2hw.prio140.q;
Tests: T271 T127 T324
240 1/1 assign prio[141] = reg2hw.prio141.q;
Tests: T271 T127 T324
241 1/1 assign prio[142] = reg2hw.prio142.q;
Tests: T271 T127 T324
242 1/1 assign prio[143] = reg2hw.prio143.q;
Tests: T271 T127 T324
243 1/1 assign prio[144] = reg2hw.prio144.q;
Tests: T271 T127 T324
244 1/1 assign prio[145] = reg2hw.prio145.q;
Tests: T271 T127 T324
245 1/1 assign prio[146] = reg2hw.prio146.q;
Tests: T271 T127 T324
246 1/1 assign prio[147] = reg2hw.prio147.q;
Tests: T271 T127 T324
247 1/1 assign prio[148] = reg2hw.prio148.q;
Tests: T271 T127 T324
248 1/1 assign prio[149] = reg2hw.prio149.q;
Tests: T271 T127 T324
249 1/1 assign prio[150] = reg2hw.prio150.q;
Tests: T271 T127 T324
250 1/1 assign prio[151] = reg2hw.prio151.q;
Tests: T271 T127 T324
251 1/1 assign prio[152] = reg2hw.prio152.q;
Tests: T271 T127 T324
252 1/1 assign prio[153] = reg2hw.prio153.q;
Tests: T4 T5 T6
253 1/1 assign prio[154] = reg2hw.prio154.q;
Tests: T66 T271 T127
254 1/1 assign prio[155] = reg2hw.prio155.q;
Tests: T138 T271 T127
255 1/1 assign prio[156] = reg2hw.prio156.q;
Tests: T41 T80 T82
256 1/1 assign prio[157] = reg2hw.prio157.q;
Tests: T41 T254 T80
257 1/1 assign prio[158] = reg2hw.prio158.q;
Tests: T176 T271 T127
258 1/1 assign prio[159] = reg2hw.prio159.q;
Tests: T271 T127 T324
259 1/1 assign prio[160] = reg2hw.prio160.q;
Tests: T122 T145 T334
260 1/1 assign prio[161] = reg2hw.prio161.q;
Tests: T122 T145 T334
261 1/1 assign prio[162] = reg2hw.prio162.q;
Tests: T122 T145 T334
262 1/1 assign prio[163] = reg2hw.prio163.q;
Tests: T122 T145 T334
263 1/1 assign prio[164] = reg2hw.prio164.q;
Tests: T122 T145 T334
264 1/1 assign prio[165] = reg2hw.prio165.q;
Tests: T271 T127 T324
265 1/1 assign prio[166] = reg2hw.prio166.q;
Tests: T280 T335 T271
266 1/1 assign prio[167] = reg2hw.prio167.q;
Tests: T280 T335 T271
267 1/1 assign prio[168] = reg2hw.prio168.q;
Tests: T271 T127 T324
268 1/1 assign prio[169] = reg2hw.prio169.q;
Tests: T271 T127 T324
269 1/1 assign prio[170] = reg2hw.prio170.q;
Tests: T271 T127 T324
270 1/1 assign prio[171] = reg2hw.prio171.q;
Tests: T271 T127 T324
271 1/1 assign prio[172] = reg2hw.prio172.q;
Tests: T160 T271 T127
272 1/1 assign prio[173] = reg2hw.prio173.q;
Tests: T271 T127 T324
273 1/1 assign prio[174] = reg2hw.prio174.q;
Tests: T271 T127 T324
274 1/1 assign prio[175] = reg2hw.prio175.q;
Tests: T271 T127 T324
275 1/1 assign prio[176] = reg2hw.prio176.q;
Tests: T271 T127 T324
276 1/1 assign prio[177] = reg2hw.prio177.q;
Tests: T271 T127 T324
277 1/1 assign prio[178] = reg2hw.prio178.q;
Tests: T271 T127 T324
278 1/1 assign prio[179] = reg2hw.prio179.q;
Tests: T271 T127 T324
279 1/1 assign prio[180] = reg2hw.prio180.q;
Tests: T271 T127 T324
280 1/1 assign prio[181] = reg2hw.prio181.q;
Tests: T271 T127 T324
281 1/1 assign prio[182] = reg2hw.prio182.q;
Tests: T271 T127 T324
282 1/1 assign prio[183] = reg2hw.prio183.q;
Tests: T271 T127 T324
283 1/1 assign prio[184] = reg2hw.prio184.q;
Tests: T271 T127 T324
284 1/1 assign prio[185] = reg2hw.prio185.q;
Tests: T271 T127 T324
285
286 //////////////////////
287 // Interrupt Enable //
288 //////////////////////
289 for (genvar s = 0; s < 186; s++) begin : gen_ie0
290 186/186 assign ie[0][s] = reg2hw.ie0[s].q;
Tests: T271 T272 T428 | T130 T131 T271 | T130 T131 T271 | T130 T131 T271 | T130 T131 T271 | T130 T131 T271 | T130 T131 T271 | T130 T131 T271 | T130 T131 T271 | T130 T131 T271 | T132 T271 T127 | T132 T271 T127 | T132 T271 T127 | T132 T271 T127 | T132 T271 T127 | T132 T271 T127 | T132 T271 T127 | T132 T271 T127 | T132 T271 T127 | T63 T271 T127 | T63 T271 T127 | T63 T271 T127 | T63 T271 T127 | T63 T271 T127 | T63 T271 T127 | T63 T271 T127 | T63 T271 T127 | T63 T271 T127 | T24 T29 T271 | T24 T29 T271 | T24 T29 T271 | T24 T29 T271 | T24 T29 T271 | T24 T29 T271 | T24 T29 T271 | T24 T29 T271 | T24 T29 T271 | T26 T271 T127 | T26 T271 T127 | T26 T271 T127 | T26 T271 T127 | T26 T271 T127 | T26 T271 T127 | T26 T271 T127 | T26 T271 T127 | T26 T271 T127 | T26 T271 T127 | T26 T271 T127 | T26 T271 T127 | T26 T271 T127 | T26 T271 T127 | T26 T271 T127 | T26 T271 T127 | T26 T271 T127 | T26 T271 T127 | T26 T271 T127 | T26 T271 T127 | T26 T271 T127 | T26 T271 T127 | T26 T271 T127 | T26 T271 T127 | T26 T271 T127 | T26 T271 T127 | T26 T271 T127 | T26 T271 T127 | T26 T271 T127 | T26 T271 T127 | T26 T271 T127 | T26 T271 T127 | T13 T26 T10 | T13 T271 T127 | T13 T271 T127 | T13 T10 T11 | T13 T10 T11 | T13 T271 T127 | T271 T127 T324 | T271 T127 T324 | T57 T271 T127 | T57 T271 T127 | T271 T127 T324 | T57 T271 T127 | T57 T271 T127 | T57 T271 T127 | T57 T271 T127 | T57 T271 T127 | T271 T127 T324 | T57 T58 T271 | T58 T271 T127 | T271 T127 T324 | T58 T271 T127 | T58 T271 T127 | T58 T271 T127 | T59 T271 T127 | T59 T271 T127 | T271 T127 T324 | T59 T271 T127 | T59 T271 T127 | T59 T271 T127 | T59 T271 T127 | T59 T271 T127 | T271 T127 T324 | T59 T271 T127 | T271 T127 T324 | T271 T127 T324 | T271 T127 T324 | T271 T127 T324 | T271 T127 T324 | T61 T271 T127 | T61 T271 T127 | T271 T127 T324 | T61 T271 T127 | T61 T271 T127 | T61 T271 T127 | T61 T271 T127 | T61 T271 T127 | T271 T127 T324 | T61 T271 T127 | T271 T127 T324 | T271 T127 T324 | T271 T127 T324 | T271 T127 T324 | T271 T127 T324 | T28 T271 T127 | T28 T271 T127 | T271 T127 T324 | T271 T127 T324 | T271 T127 T324 | T41 T80 T82 | T41 T80 T82 | T41 T80 T82 | T41 T80 T82 | T10 T11 T271 | T10 T11 T271 | T271 T127 T324 | T271 T127 T324 | T271 T127 T324 | T271 T127 T324 | T271 T127 T324 | T271 T127 T324 | T271 T127 T324 | T271 T127 T324 | T271 T127 T324 | T271 T127 T324 | T271 T127 T324 | T271 T127 T324 | T271 T127 T324 | T271 T127 T324 | T271 T127 T324 | T271 T127 T324 | T271 T127 T324 | T271 T127 T324 | T271 T127 T324 | T271 T127 T324 | T4 T5 T6 | T66 T271 T127 | T138 T271 T127 | T41 T80 T82 | T41 T254 T80 | T176 T271 T127 | T271 T127 T324 | T122 T145 T334 | T122 T145 T334 | T122 T145 T334 | T122 T145 T334 | T122 T145 T334 | T271 T127 T324 | T280 T335 T271 | T280 T335 T271 | T271 T127 T324 | T271 T127 T324 | T271 T127 T324 | T271 T127 T324 | T160 T271 T127 | T271 T127 T324 | T271 T127 T324 | T271 T127 T324 | T271 T127 T324 | T271 T127 T324 | T271 T127 T324 | T271 T127 T324 | T271 T127 T324 | T271 T127 T324 | T271 T127 T324 | T271 T127 T324 | T271 T127 T324 | T271 T127 T324
291 end
292
293 ////////////////////////
294 // THRESHOLD register //
295 ////////////////////////
296 1/1 assign threshold[0] = reg2hw.threshold0.q;
Tests: T33
297
298 /////////////////
299 // CC register //
300 /////////////////
301 1/1 assign claim_re[0] = reg2hw.cc0.re;
Tests: T4 T5 T6
302 1/1 assign claim_id[0] = irq_id_o[0];
Tests: T4 T5 T6
303 1/1 assign complete_we[0] = reg2hw.cc0.qe;
Tests: T4 T5 T6
304 1/1 assign complete_id[0] = reg2hw.cc0.q;
Tests: T4 T5 T6
305 1/1 assign hw2reg.cc0.d = cc_id[0];
Tests: T4 T5 T6
306
307 ///////////////////
308 // MSIP register //
309 ///////////////////
310 1/1 assign msip_o[0] = reg2hw.msip0.q;
Tests: T271 T272 T273
311
312 ////////
313 // IP //
314 ////////
315 for (genvar s = 0; s < 186; s++) begin : gen_ip
316 assign hw2reg.ip[s].de = 1'b1; // Always write
317 185/186 ==> assign hw2reg.ip[s].d = ip[s];
Tests: T130 T131 T324 | T130 T131 T324 | T130 T131 T324 | T130 T131 T324 | T324 T325 T326 | T324 T325 T326 | T324 T325 T326 | T324 T325 T326 | T130 T131 T324 | T132 T324 T119 | T132 T324 T119 | T132 T324 T119 | T132 T324 T119 | T324 T325 T326 | T324 T325 T326 | T324 T325 T326 | T324 T325 T326 | T132 T324 T119 | T63 T324 T64 | T63 T324 T64 | T63 T324 T64 | T63 T324 T64 | T324 T325 T326 | T324 T325 T326 | T324 T325 T326 | T324 T325 T326 | T63 T324 T64 | T24 T29 T324 | T24 T29 T324 | T24 T29 T324 | T24 T29 T324 | T324 T325 T326 | T324 T325 T326 | T324 T325 T326 | T324 T325 T326 | T24 T29 T324 | T26 T327 T39 | T26 T327 T39 | T26 T327 T39 | T26 T327 T39 | T26 T327 T39 | T26 T327 T39 | T26 T327 T39 | T26 T327 T39 | T26 T327 T39 | T26 T327 T39 | T26 T327 T39 | T26 T327 T39 | T26 T327 T39 | T26 T327 T39 | T26 T327 T39 | T26 T327 T39 | T26 T327 T39 | T26 T327 T39 | T26 T327 T39 | T26 T327 T39 | T26 T327 T39 | T26 T327 T39 | T26 T327 T39 | T26 T327 T39 | T26 T327 T39 | T26 T327 T39 | T26 T327 T39 | T26 T327 T39 | T26 T327 T39 | T26 T327 T39 | T26 T327 T39 | T26 T327 T39 | T10 T127 T221 | T127 T186 T187 | T127 T186 T187 | T127 T186 T187 | T127 T186 T187 | T13 T127 T48 | T127 T186 T187 | T127 T186 T187 | T57 T327 T137 | T57 T327 T137 | T327 T328 T329 | T327 T328 T329 | T327 T328 T329 | T327 T328 T329 | T327 T328 T329 | T327 T328 T329 | T327 T328 T329 | T57 T58 T327 | T327 T328 T329 | T327 T328 T329 | T327 T328 T329 | T327 T328 T329 | T327 T328 T329 | T59 T327 T60 | T59 T327 T60 | T327 T328 T329 | T327 T328 T329 | T327 T328 T329 | T327 T328 T329 | T327 T328 T329 | T327 T328 T329 | T327 T328 T329 | T59 T327 T60 | T327 T328 T329 | T327 T328 T329 | T327 T328 T329 | T327 T328 T329 | T327 T328 T329 | T61 T327 T62 | T61 T327 T62 | T327 T328 T329 | T327 T328 T329 | T327 T328 T329 | T327 T328 T329 | T327 T328 T329 | T327 T328 T329 | T327 T328 T329 | T61 T327 T62 | T327 T328 T329 | T327 T328 T329 | T327 T328 T329 | T327 T328 T329 | T327 T328 T329 | T127 T186 T187 | T28 T127 T134 | T126 T127 T128 | T127 T186 T187 | T127 T186 T187 | T41 T82 T232 | T188 T330 T189 | T80 T327 T331 | T189 T327 T105 | T127 T186 T187 | T127 T33 T186 | T127 T186 T187 | T127 T186 T187 | T324 T325 T326 | T324 T325 T326 | T324 T325 T326 | T324 T325 T326 | T324 T325 T326 | T324 T325 T326 | T324 T325 T326 | T324 T325 T326 | T324 T325 T326 | T324 T325 T326 | T324 T325 T326 | T324 T325 T326 | T324 T325 T326 | T324 T325 T326 | T324 T325 T326 | T324 T325 T326 | T324 T325 T326 | T324 T325 T326 | T4 T5 T6 | T66 T324 T230 | T138 T327 T139 | T332 T32 T255 | T254 T255 T256 | T176 T127 T33 | T127 T186 T187 | T122 T145 T334 | T122 T145 T334 | T145 T334 T327 | T145 T334 T327 | T122 T145 T334 | T327 T328 T329 | T280 T335 T327 | T327 T328 T329 | T327 T328 T329 | T127 T186 T187 | T127 T186 T187 | T127 T186 T187 | T160 T127 T180 | T127 T186 T187 | T327 T328 T329 | T336 T327 T337 | T327 T328 T329 | T327 T328 T329 | T327 T328 T329 | T327 T328 T329 | T327 T328 T329 | T327 T328 T329 | T336 T327 T337 | T327 T328 T329 | T336 T327 T337 | T327 T328 T329
318 end
319
320 //////////////
321 // Gateways //
322 //////////////
323
324 // Synchronize all incoming interrupt requests.
325 logic [NumSrc-1:0] intr_src_synced;
326 prim_flop_2sync #(
327 .Width(NumSrc)
328 ) u_prim_flop_2sync (
329 .clk_i,
330 .rst_ni,
331 .d_i(intr_src_i),
332 .q_o(intr_src_synced)
333 );
334
335 rv_plic_gateway #(
336 .N_SOURCE (NumSrc)
337 ) u_gateway (
338 .clk_i,
339 .rst_ni,
340
341 .src_i (intr_src_synced),
342 .le_i (LevelEdgeTrig),
343
344 .claim_i (claim),
345 .complete_i (complete),
346
347 .ip_o (ip)
348 );
349
350 ///////////////////////////////////
351 // Target interrupt notification //
352 ///////////////////////////////////
353 for (genvar i = 0 ; i < NumTarget ; i++) begin : gen_target
354 rv_plic_target #(
355 .N_SOURCE (NumSrc),
356 .MAX_PRIO (MAX_PRIO)
357 ) u_target (
358 .clk_i,
359 .rst_ni,
360
361 .ip_i (ip),
362 .ie_i (ie[i]),
363
364 .prio_i (prio),
365 .threshold_i (threshold[i]),
366
367 .irq_o (irq_o[i]),
368 .irq_id_o (irq_id_o[i])
369
370 );
371 end
372
373 ////////////
374 // Alerts //
375 ////////////
376
377 logic [NumAlerts-1:0] alert_test, alerts;
378
379 1/1 assign alert_test = {
Tests: T4 T5 T6