Skip to content

Commit 7d6ba25

Browse files
committed
Change: rework a process to pass verilator compilation in simulation
1 parent 3ebf3df commit 7d6ba25

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

rtl/axicb_slv_ooo.sv

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -281,14 +281,19 @@ module axicb_slv_ooo
281281
// Granted completion is just the one active
282282
assign c_grant = c_valid;
283283

284-
always @ (*) begin
285-
// Read completion path also comprise the ALEN
286-
if (RD_PATH) begin
284+
if (RD_PATH) begin: C_LEN_RD_PATH
285+
always @ (*) begin
286+
// Read completion path also comprise the ALEN
287287
if (pipe_valid)
288288
c_len = pipe_out[(1+AXI_ID_W)+:8];
289289
else
290290
c_len = '0;
291291
end
292+
end else begin: NO_C_LEN_WR_PATH
293+
assign c_len = '0;
294+
end
295+
296+
always @ (*) begin
292297
// For read and write completion path
293298
// pass back the ID and misrouteed flag
294299
if (pipe_valid) begin
@@ -298,7 +303,6 @@ module axicb_slv_ooo
298303
c_id = '0;
299304
c_mr = '0;
300305
end
301-
302306
end
303307

304308
// OR > 1, Read completion path

0 commit comments

Comments
 (0)