diff --git a/src/ifu/bpred/bpred.sv b/src/ifu/bpred/bpred.sv index 355e30fc2..9d13c1fc4 100644 --- a/src/ifu/bpred/bpred.sv +++ b/src/ifu/bpred/bpred.sv @@ -28,7 +28,7 @@ `include "wally-config.vh" -`define INSTR_CLASS_PRED 1 +`define INSTR_CLASS_PRED 0 module bpred ( input logic clk, reset, @@ -138,7 +138,7 @@ module bpred ( .PCNextF, .PCM, .BPDirPredD(BPDirPredF), .BPDirPredWrongE, .BranchE, .BranchM, .PCSrcE); end else if (`BPRED_TYPE == "BP_LOCAL_REPAIR") begin:Predictor - localreapirbp #(`BPRED_NUM_LHR, `BPRED_SIZE) DirPredictor(.clk, .reset, + localrepairbp #(`BPRED_NUM_LHR, `BPRED_SIZE) DirPredictor(.clk, .reset, .StallF, .StallD, .StallE, .StallM, .StallW, .FlushD, .FlushE, .FlushM, .FlushW, .PCNextF, .PCE, .PCM, .BPDirPredD(BPDirPredF), .BPDirPredWrongE, .BranchD, .BranchE, .BranchM, .PCSrcE); diff --git a/src/ifu/bpred/localaheadbp.sv b/src/ifu/bpred/localaheadbp.sv index 67f8df8dd..1af589e16 100644 --- a/src/ifu/bpred/localaheadbp.sv +++ b/src/ifu/bpred/localaheadbp.sv @@ -1,13 +1,11 @@ /////////////////////////////////////////// -// gsharebasic.sv +// localaheadbp // // Written: Ross Thompson // Email: ross1728@gmail.com // Created: 16 March 2021 -// Adapted from ssanghai@hmc.edu (Shreya Sanghai) global history predictor implementation. -// Modified: 20 February 2023 // -// Purpose: Global History Branch predictor with parameterized global history register +// Purpose: local history branch predictor with ahead pipelining and SRAM memories. // // A component of the CORE-V-WALLY configurable RISC-V project. // diff --git a/src/ifu/bpred/localbpbasic.sv b/src/ifu/bpred/localbpbasic.sv index a874dfce2..071d890aa 100644 --- a/src/ifu/bpred/localbpbasic.sv +++ b/src/ifu/bpred/localbpbasic.sv @@ -1,13 +1,12 @@ /////////////////////////////////////////// -// gsharebasic.sv +// localbpbasic // // Written: Ross Thompson // Email: ross1728@gmail.com // Created: 16 March 2021 -// Adapted from ssanghai@hmc.edu (Shreya Sanghai) global history predictor implementation. -// Modified: 20 February 2023 // -// Purpose: Global History Branch predictor with parameterized global history register +// Purpose: Local history branch predictor. Basic implementation without any repair and flop memories. + // // A component of the CORE-V-WALLY configurable RISC-V project. // diff --git a/src/ifu/bpred/localrepairbp.sv b/src/ifu/bpred/localrepairbp.sv index 485214302..47cd2758c 100644 --- a/src/ifu/bpred/localrepairbp.sv +++ b/src/ifu/bpred/localrepairbp.sv @@ -1,13 +1,11 @@ /////////////////////////////////////////// -// gsharebasic.sv +// localrepairbp // // Written: Ross Thompson // Email: ross1728@gmail.com -// Created: 16 March 2021 -// Adapted from ssanghai@hmc.edu (Shreya Sanghai) global history predictor implementation. -// Modified: 20 February 2023 +// Created: 15 April 2023 // -// Purpose: Global History Branch predictor with parameterized global history register +// Purpose: Local history branch predictor with speculation and repair using CBH. // // A component of the CORE-V-WALLY configurable RISC-V project. // @@ -29,7 +27,7 @@ `include "wally-config.vh" -module localreapirbp #(parameter m = 6, // 2^m = number of local history branches +module localrepairbp #(parameter m = 6, // 2^m = number of local history branches parameter k = 10) ( // number of past branches stored input logic clk, input logic reset,