Fix d$ generation crash
This commit is contained in:
parent
1f9fce6388
commit
cb5597818d
|
@ -983,7 +983,8 @@ class DataCache(val p : DataCacheConfig, mmuParameter : MemoryTranslatorBusParam
|
||||||
|
|
||||||
when(bypassCache){
|
when(bypassCache){
|
||||||
io.cpu.writeBack.data := ioMemRspMuxed
|
io.cpu.writeBack.data := ioMemRspMuxed
|
||||||
if(catchAccessError) io.cpu.writeBack.accessError := !request.wr && pending.last && io.mem.rsp.valid && io.mem.rsp.error
|
def isLast = if(pending != null) pending.last else True
|
||||||
|
if(catchAccessError) io.cpu.writeBack.accessError := !request.wr && isLast && io.mem.rsp.valid && io.mem.rsp.error
|
||||||
} otherwise {
|
} otherwise {
|
||||||
io.cpu.writeBack.data := dataMux
|
io.cpu.writeBack.data := dataMux
|
||||||
if(catchAccessError) io.cpu.writeBack.accessError := (waysHits & B(tagsReadRsp.map(_.error))) =/= 0
|
if(catchAccessError) io.cpu.writeBack.accessError := (waysHits & B(tagsReadRsp.map(_.error))) =/= 0
|
||||||
|
|
Loading…
Reference in New Issue