Changed config to L1D Block-1 prefetcher and fixed potential bug
This commit is contained in:
@@ -45,9 +45,9 @@ SIM_LLC_ARBITER_LAT ?=
|
||||
# default check cache deadlock and rename error
|
||||
CHECK_DEADLOCK ?= true
|
||||
RENAME_DEBUG ?= false
|
||||
INSTR_PREFETCHER_LOCATION ?= LL
|
||||
INSTR_PREFETCHER_LOCATION ?= NONE
|
||||
INSTR_PREFETCHER_TYPE ?= NEXT_LINE_ON_MISS
|
||||
DATA_PREFETCHER_LOCATION ?= NONE
|
||||
DATA_PREFETCHER_LOCATION ?= L1
|
||||
DATA_PREFETCHER_TYPE ?= BLOCK
|
||||
|
||||
# clk frequency depends on core size
|
||||
|
||||
@@ -959,12 +959,12 @@ module mkMarkovPrefetcher(Prefetcher) provisos
|
||||
endmodule
|
||||
|
||||
module mkBlockPrefetcher(Prefetcher) provisos (
|
||||
NumAlias#(numLinesEachWay, 2),
|
||||
NumAlias#(numLinesEachWay, 1),
|
||||
Alias#(lineCountT, Bit#(TLog#(TAdd#(numLinesEachWay, 1))))
|
||||
);
|
||||
Reg#(Bool) nextIsForward <- mkReg(?);
|
||||
Reg#(LineAddr) prefetchAround <- mkReg(?);
|
||||
Reg#(lineCountT) linesEachWayPrefetched <- mkReg(?);
|
||||
Reg#(lineCountT) linesEachWayPrefetched <- mkReg(fromInteger(valueOf(numLinesEachWay)));
|
||||
method Action reportAccess(Addr addr, HitOrMiss hitMiss);
|
||||
if (hitMiss == MISS) begin
|
||||
$display("%t Prefetcher report MISS %h", $time, addr);
|
||||
|
||||
Reference in New Issue
Block a user