Skip to content

Commit 250bd19

Browse files
mszalkowski-antkgugala
authored andcommitted
ic_mem: Update wb_dout_hold_up indexing
1 parent 0077d52 commit 250bd19

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

design/ifu/el2_ifu_ic_mem.sv

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -396,15 +396,15 @@ import el2_pkg::*;
396396
.*, .en(write_bypass_en_up[i][k][l]), .din(ic_b_rw_addr_up[i][k]), .dout(wb_index_hold_up[i][k][l])
397397
);
398398
rvdffe #(68) rd_data_hold_ff (
399-
.*, .en(write_bypass_en_ff_up[i][k][l]), .din(wb_dout_pre_up[k]), .dout(wb_dout_hold_up[k][l])
399+
.*, .en(write_bypass_en_ff_up[i][k][l]), .din(wb_dout_pre_up[k]), .dout(wb_dout_hold_up[l])
400400
);
401401
end
402402
always_comb begin
403403
any_bypass_up[i][k] = '0;
404404
sel_bypass_data_up[i][k] = '0;
405405
for (int l=0; l<pt.ICACHE_NUM_BYPASS; l++) begin
406406
any_bypass_up[i][k] |= sel_bypass_ff_up[i][k][l];
407-
sel_bypass_data_up[i][k] |= (sel_bypass_ff_up[i][k][l]) ? wb_dout_hold_up[k][l] : '0;
407+
sel_bypass_data_up[i][k] |= (sel_bypass_ff_up[i][k][l]) ? wb_dout_hold_up[l] : '0;
408408
end
409409
wb_dout[i][k] = any_bypass_up[i][k] ? sel_bypass_data_up[i][k] : wb_dout_pre_up[k];
410410
end

0 commit comments

Comments
 (0)