mirror of
https://github.com/openhwgroup/cvw
synced 2025-02-11 06:05:49 +00:00
fixed bugs in global history to read latest GHRE
This commit is contained in:
parent
cdb7d15709
commit
65e9747752
@ -97,5 +97,5 @@
|
|||||||
|
|
||||||
`define TWO_BIT_PRELOAD "../config/rv64icfd/twoBitPredictor.txt"
|
`define TWO_BIT_PRELOAD "../config/rv64icfd/twoBitPredictor.txt"
|
||||||
`define BTB_PRELOAD "../config/rv64icfd/BTBPredictor.txt"
|
`define BTB_PRELOAD "../config/rv64icfd/BTBPredictor.txt"
|
||||||
`define BPTYPE "BPGSHARE" // BPGLOBAL or BPTWOBIT or BPGSHARE
|
`define BPTYPE "BPGLOBAL" // BPGLOBAL or BPTWOBIT or BPGSHARE
|
||||||
`define TESTSBP 1
|
`define TESTSBP 1
|
||||||
|
@ -41,12 +41,13 @@ module globalHistoryPredictor
|
|||||||
input logic [1:0] UpdatePrediction
|
input logic [1:0] UpdatePrediction
|
||||||
|
|
||||||
);
|
);
|
||||||
logic [k-1:0] GHRF, GHRD, GHRE;
|
logic [k-1:0] GHRF, GHRD, GHRE, GHRENext;
|
||||||
|
assign GHRENext = {PCSrcE, GHRE[k-1:1]};
|
||||||
|
|
||||||
flopenr #(k) GlobalHistoryRegister(.clk(clk),
|
flopenr #(k) GlobalHistoryRegister(.clk(clk),
|
||||||
.reset(reset),
|
.reset(reset),
|
||||||
.en(UpdateEN),
|
.en(UpdateEN),
|
||||||
.d({PCSrcE, GHRF[k-1:1] }),
|
.d(GHRENext),
|
||||||
.q(GHRF));
|
.q(GHRF));
|
||||||
|
|
||||||
|
|
||||||
@ -66,8 +67,8 @@ module globalHistoryPredictor
|
|||||||
.reset(reset),
|
.reset(reset),
|
||||||
.RA1(GHRF),
|
.RA1(GHRF),
|
||||||
.RD1(PredictionMemory),
|
.RD1(PredictionMemory),
|
||||||
.REN1(1'b1),
|
.REN1(~StallF),
|
||||||
.WA1(GHRE),
|
.WA1(GHRENext),
|
||||||
.WD1(UpdatePrediction),
|
.WD1(UpdatePrediction),
|
||||||
.WEN1(UpdateEN),
|
.WEN1(UpdateEN),
|
||||||
.BitWEN1(2'b11));
|
.BitWEN1(2'b11));
|
||||||
|
Loading…
Reference in New Issue
Block a user