Fix DataCache flush on the last line

This commit is contained in:
Charles Papon 2019-04-05 20:02:57 +02:00
parent 8459d423b8
commit 5a6665e57f
1 changed files with 1 additions and 1 deletions

View File

@ -448,9 +448,9 @@ class DataCache(p : DataCacheConfig) extends Component{
tagsWriteCmd.address := mmuRsp.physicalAddress(lineRange)
tagsWriteCmd.way.setAll()
tagsWriteCmd.data.valid := False
io.cpu.writeBack.haltIt := True
when(mmuRsp.physicalAddress(lineRange) =/= wayLineCount - 1) {
mmuRsp.physicalAddress.getDrivingReg(lineRange) := mmuRsp.physicalAddress(lineRange) + 1
io.cpu.writeBack.haltIt := True
} otherwise {
valid := False
}