Dear all, I currently integrate more than two ways in the caches of mor1kx. For this I already finished the LRU calculation in a separate combinational module. As this module might be relevant for other projects of you I just wanted to take the chance to point to this module: https://github.com/wallento/mor1kx/commit/c62d489cc403a45b74e1f42bc5e52b71cd4931d8
The documentation of the usage and the algorithm should be explaining enough to use it in other scenarios also. We for example have something like a context cache for NIC, where we will also use this module. Hope it helps anybody. Just summarizing the resource utilization to convince people of the efficiency: Spartan 6 LUTs 2 ways: 1 4 ways: 10 8 ways: 51 16 ways: 227 32 ways: 928 Xilinx 5 LUTs 2 ways: 1 4 ways: 9 8 ways: 49 16 ways: 205 32 ways: 876 The sizes reduce if you use only one the LRU vectors (before and after access). Bye, Stefan
smime.p7s
Description: S/MIME Cryptographic Signature
_______________________________________________ OpenRISC mailing list [email protected] http://lists.openrisc.net/listinfo/openrisc
