toffee.utils package

Submodules

toffee.utils.lfsr_64 module

class toffee.utils.lfsr_64.LFSR_64(seed: int = 1)[源代码]

基类:object

property rand
step()[源代码]

toffee.utils.plru module

class toffee.utils.plru.PLRU(ways_num)[源代码]

基类:object

Pseudo Least Recently Used replacement policy

get()[源代码]
update(way)[源代码]

toffee.utils.two_bits_counter module

class toffee.utils.two_bits_counter.TwoBitsCounter(init_value=2)[源代码]

基类:object

Two bit saturation counter 00 <-> 01 <-> 10 <-> 11

00: Strongly not taken 01: Weakly not taken 10: Weakly taken 11: Strongly taken

get_prediction()[源代码]
update(taken)[源代码]

Module contents

class toffee.utils.LFSR_64(seed: int = 1)[源代码]

基类:object

property rand
step()[源代码]
class toffee.utils.PLRU(ways_num)[源代码]

基类:object

Pseudo Least Recently Used replacement policy

get()[源代码]
update(way)[源代码]
class toffee.utils.TwoBitsCounter(init_value=2)[源代码]

基类:object

Two bit saturation counter 00 <-> 01 <-> 10 <-> 11

00: Strongly not taken 01: Weakly not taken 10: Weakly taken 11: Strongly taken

get_prediction()[源代码]
update(taken)[源代码]