hybrid_correlating.py 519 Bytes
Newer Older
Alan Marchiori's avatar
Alan Marchiori committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
from twolevel import correlation_register
from local import saturating_counter


class hybrid_correlating_predictor():
    def __init__(self, global_history_bits = 2, local_pc_bits = 3):        
        self.global_indexes = 2**global_history_bits        
        self.local_indexes = 2**local_pc_bits
        self.bin_fmt = "{{:0{}b}}".format(global_history_bits)
        
    def predict(self, pc, target, outcome, verbose):        
        """TODO: complete this"""
        
            
        return "T"