Swap poliarity of prediction for comparison with upstream.

This commit is contained in:
Jonathan Woodruff
2022-03-25 14:03:06 +00:00
parent 6d7f95571f
commit 9bfaf4cbf0

View File

@@ -69,9 +69,9 @@ module mkTourPred(DirPredictor#(TourTrainInfo));
endfunction
// common sat counter operations
function Bool isTaken(Int#(n) cnt) = (cnt >= 0);
function Bool isTaken(Int#(n) cnt) = (cnt < 0);
function Int#(n) updateCnt(Int#(n) cnt, Bool taken) =
boundedPlus(cnt, (taken) ? 1 : -1);
boundedPlus(cnt, (taken) ? -1 : 1);
TourGlobalHist curGHist = gHistReg.history; // global history: MSB is the latest branch
Reg#(Vector#(SupSize, Bool)) globalTakenVec <- mkRegU;