Update tests for singlewindow-target

This commit is contained in:
Karlis Susters
2023-05-10 23:51:16 +01:00
parent 0554fad990
commit 05e5ad5076

View File

@@ -453,23 +453,26 @@ module mkBRAMSingleWindowTargetPrefetcherTest(Empty);
action
p.reportAccess('h80000140, MISS); //Report miss back home
endaction
action
let x <- p.getNextPrefetchAddr;
doAssert(x == 'h80000180, "test fail!"); // window addresss recommended
endaction
action
let x <- p.getNextPrefetchAddr; //target address recommended
doAssert(x == 'h81000200, "test fail!");
endaction
action
let x <- p.getNextPrefetchAddr;
doAssert(x == 'h80000180, "test fail!"); // window addresss recommended
endaction
action
p.reportAccess('h80000140, HIT); //Report miss back home
endaction
action
p.reportAccess('h81000200, HIT);
endaction
action
p.reportAccess('h80000140, HIT); //overwrite last target entry
endaction
action
let x <- p.getNextPrefetchAddr; //target addresss recommended
doAssert(x == 'h800001c0, "test fail!");
doAssert(x == 'h81000200, "test fail!");
endaction
endseq
);