DataCache now allocate ways randomly

This commit is contained in:
Charles Papon 2019-05-25 00:28:30 +02:00
parent 4a40184b35
commit 38a464a829
1 changed files with 4 additions and 2 deletions

View File

@ -678,11 +678,13 @@ class DataCache(p : DataCacheConfig) extends Component{
tagsWriteCmd.data.error := error || io.mem.rsp.error
tagsWriteCmd.way := waysAllocator
waysAllocator := (waysAllocator ## waysAllocator.msb).resized
error := False
}
when(!valid){
waysAllocator := (waysAllocator ## waysAllocator.msb).resized
}
io.cpu.redo setWhen(valid)
stageB.mmuRspFreeze setWhen(stageB.loaderValid || valid)
}