From 699b586036a3bab8ca559a56d5ca475210c53536 Mon Sep 17 00:00:00 2001 From: Andrea Date: Tue, 1 Oct 2024 15:15:44 +0200 Subject: [PATCH] Fixed btb for FPGA targets --- core/frontend/btb.sv | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/frontend/btb.sv b/core/frontend/btb.sv index 24f9e59e98..139f6558c7 100644 --- a/core/frontend/btb.sv +++ b/core/frontend/btb.sv @@ -90,7 +90,7 @@ module btb #( for (genvar i = 0; i < CVA6Cfg.INSTR_PER_FETCH; i++) begin : gen_btb_output assign btb_ram_csel_prediction[i] = 1'b1; assign btb_ram_we_prediction[i] = 1'b0; - assign btb_ram_wdata_prediction = '0; + assign btb_ram_wdata_prediction[i*BRAM_WORD_BITS+:BRAM_WORD_BITS] = '0; assign btb_ram_addr_prediction[i*$clog2(NR_ROWS)+:$clog2(NR_ROWS)] = index; assign btb_prediction_o[i] = btb_ram_rdata_prediction[i*BRAM_WORD_BITS+:BRAM_WORD_BITS]; end