From c8df460b2842f098a1215ce72599f5391108a967 Mon Sep 17 00:00:00 2001 From: Ross Thompson Date: Sun, 29 Jan 2023 00:49:23 -0600 Subject: [PATCH] Fixed bug with the btb's valid bit not beind held on a stall. --- pipelined/src/ifu/brpred/btb.sv | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pipelined/src/ifu/brpred/btb.sv b/pipelined/src/ifu/brpred/btb.sv index 20500226a..b8c5c6bcd 100644 --- a/pipelined/src/ifu/brpred/btb.sv +++ b/pipelined/src/ifu/brpred/btb.sv @@ -94,7 +94,7 @@ module btb end else if ((UpdateEn) & ~StallM & ~FlushM) begin ValidBits[PCEIndex] <= #1 |InstrClassE; end - TablePredValidF = ValidBits[PCNextFIndex]; + if(~StallF | reset) TablePredValidF = ValidBits[PCNextFIndex]; end assign PredValidF = MatchXF ? 1'b1 : TablePredValidF;