Updated headers to local branch history predictors.

This commit is contained in:
Ross Thompson 2023-05-24 12:52:42 -05:00
parent 69a9bf7055
commit 80aa0888f3
4 changed files with 11 additions and 16 deletions

View File

@ -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);

View File

@ -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.
//

View File

@ -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.
//

View File

@ -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,