From 9bfaf4cbf00dd5272e70f8e8a64488a1214cab90 Mon Sep 17 00:00:00 2001 From: Jonathan Woodruff Date: Fri, 25 Mar 2022 14:03:06 +0000 Subject: [PATCH] Swap poliarity of prediction for comparison with upstream. --- src_Core/RISCY_OOO/procs/lib/TourPred.bsv | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src_Core/RISCY_OOO/procs/lib/TourPred.bsv b/src_Core/RISCY_OOO/procs/lib/TourPred.bsv index 02c1463..91f9987 100644 --- a/src_Core/RISCY_OOO/procs/lib/TourPred.bsv +++ b/src_Core/RISCY_OOO/procs/lib/TourPred.bsv @@ -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;