Changed config to L1D Block-1 prefetcher and fixed potential bug

This commit is contained in:
Karlis Susters
2023-02-28 12:29:38 +00:00
parent 7a352d774e
commit 6509cf6445
2 changed files with 4 additions and 4 deletions

View File

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