Fixed bug with the btb's valid bit not beind held on a stall.

This commit is contained in:
Ross Thompson 2023-01-29 00:49:23 -06:00
parent f93eaeef8e
commit 1044c290c2

View File

@ -94,7 +94,7 @@ module btb
end else if ((UpdateEn) & ~StallM & ~FlushM) begin end else if ((UpdateEn) & ~StallM & ~FlushM) begin
ValidBits[PCEIndex] <= #1 |InstrClassE; ValidBits[PCEIndex] <= #1 |InstrClassE;
end end
TablePredValidF = ValidBits[PCNextFIndex]; if(~StallF | reset) TablePredValidF = ValidBits[PCNextFIndex];
end end
assign PredValidF = MatchXF ? 1'b1 : TablePredValidF; assign PredValidF = MatchXF ? 1'b1 : TablePredValidF;