Least Recently Used
The cache ways are parameterizable!
Design a Least Recently Used module for a N-way set associative cache. The number of ways for the cache are parameterized but will always be a power of 2.
All the flops (if any) should be positive edge triggered with asynchronous resets.
Interface Definition
ls_valid_i → Indicates a valid operation
ls_op_i → Operation type: can be either read, write or an invalidation operation
ls_way_i → Gives the way information for read and invalidation operation
lru_valid_o → The output way information is valid on this cycle
lru_way_o[N-1:0] → The one-hot decoded way for the current operationLoading the interactive workspace...