DataCache now allocate ways randomly
This commit is contained in:
parent
4a40184b35
commit
38a464a829
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue