I am trying to address if Rocket Chip Generator supports a set-associative TLB (both for L1 and L2 TLB) but I cannot find any straightforward code about that in RocketCore.scala
or PTW.scala
. On the other hand changing the associativity of the Caches in HellaCache.scala
is pretty straight-forward.
From my understanding L1 TLB is fully-associative and L2 TLB is direct-mapped.
Is there a straightforward way to change the set-associativity of the TLB on Rocket Chip that I am missing? If not, are there any resources that you could provide in order to help me add these features in Rocket Chip?
Thank you.