Tie off branch predictor signals when icache is used

Fix two Verilator lint warnings if icache is used. The branch predictor
is currently only used together with the prefetch buffer, and those
signals are unused in the icache configuration.
This commit is contained in:
Philipp Wagner 2020-10-27 11:03:45 +00:00 committed by Philipp Wagner
parent d977e146ba
commit 58e3cb5bf3

View file

@ -214,6 +214,10 @@ module ibex_if_stage #(
.icache_inval_i ( icache_inval_i ),
.busy_o ( prefetch_busy )
);
// Branch predictor tie-offs (which are unused when the instruction cache is enabled)
logic unused_nt_branch_mispredict, unused_predicted_branch;
assign unused_nt_branch_mispredict = nt_branch_mispredict_i;
assign unused_predicted_branch = predicted_branch;
end else begin : gen_prefetch_buffer
// prefetch buffer, caches a fixed number of instructions
ibex_prefetch_buffer #(